hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL COUNT( * ) * + - 21 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL COUNT ( * ) * + - 21 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT ALL - 3 AS col1, - 71 + CAST( NULL AS SIGNED ) col0 FROM tab2
----
-3
NULL
-3
NULL
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1
SELECT ALL - 3 AS col1, - 71 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
-3
NULL
-3
NULL
-3
NULL

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

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL MAX ( ALL 11 ) AS col2 FROM tab2
----
11

query I rowsort
SELECT ALL - ( 38 ) FROM tab0 AS cor0
----
-38
-38
-38

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT DISTINCT COUNT( + col2 ), - MIN( DISTINCT - 14 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6
SELECT DISTINCT COUNT ( + col2 ), - MIN ( DISTINCT - 14 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT ALL + 2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - 8 + + ( + - col2 ) FROM tab2
----
-31
-48
-66

query I rowsort
SELECT DISTINCT - 87 + - col2 AS col2 FROM tab2 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT 65 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-10
SELECT 65 / - col0 FROM tab1 AS cor0
----
-1
0
0

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

query I rowsort
SELECT ALL col1 + - - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + ( - MIN( ALL 20 ) ) AS col2 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-13
SELECT + ( - MIN ( ALL 20 ) ) AS col2 FROM tab2 AS cor0
----
-20

query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 * + col1 FROM tab1 AS cor0
----
-51
196
-85
25
-91
2209

query I rowsort
SELECT ALL - col2 + 27 AS col1 FROM tab1 AS cor0
----
-32
-41
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 < - 30 / + + col0 + + - 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT DISTINCT col2 DIV + + ( col1 ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-17
SELECT DISTINCT col2 / + + ( col1 ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
6

query I rowsort
SELECT ALL - - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT COUNT( DISTINCT ( col2 ) ) * + - 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-19
SELECT COUNT ( DISTINCT ( col2 ) ) * + - 15 FROM tab1
----
-45

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

query I rowsort
SELECT ALL - 8 * - - col0 FROM tab0 AS cor0
----
-120
-696
-776

query I rowsort
SELECT - 86 * + 31 FROM tab1 AS cor0
----
-2666
-2666
-2666

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) * - - col2 + 86 + ( 57 ) * + col1 * - col1 IS NOT NULL
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL - SUM( + 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - SUM ( + 30 ) FROM tab1
----
-90

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT - col1 - + - col1 NOT BETWEEN + 68 / + col1 + + col0 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 84 ) + + 5 col1 FROM tab2 cor0
----
-79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 76 col0 FROM tab2 cor0
----
-116
-134
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 * - col1 + col2, + col0 col0 FROM tab0 AS cor0
----
-1040
87
-4003
15
49
97

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

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

query I rowsort
SELECT ALL + ( + - 95 ) AS col0 FROM tab0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT - 51 - - - 56 DIV + col0 FROM tab0
----
-51
-54

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - 51 - - - 56 / + col0 FROM tab0
----
-51
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT 40 * - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
-360

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT 40 * - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
-360

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-40
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST( - + col0 AS DECIMAL ) + + col1 - - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-40
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST ( - + col0 AS REAL ) + + col1 - - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - ( - col0 ) * - col2 - + col1 + - - 14 FROM tab0 AS cor0
----
-772
-877
-9590

query I rowsort
SELECT 13 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col1 * + 76 AS col0 FROM tab1 cor0
----
1064
3572
380

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

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

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

query I rowsort
SELECT ( - ( - - col0 ) ) * - col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT DISTINCT + MIN( DISTINCT col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
1

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

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

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

query I rowsort
SELECT - 58 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2645
-559
-5741

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

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

query II rowsort
SELECT DISTINCT + + col0 + col0 AS col1, 69 AS col0 FROM tab1 AS cor0
----
102
69
170
69
182
69

query I rowsort
SELECT ALL col1 + - + 99 FROM tab0 AS cor0
----
-18
-78
-98

query II rowsort
SELECT col0 * + - col2 - col1 AS col1, + 1 AS col0 FROM tab1
----
-4910
1
-5020
1
-6235
1

query III rowsort
SELECT * FROM tab2 WHERE 84 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-59
SELECT DISTINCT CAST( - 86 AS SIGNED ) FROM tab1
----
-86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT col1 + - 47 + + - col0 DIV + - col2 AS col1 FROM tab2
----
21
31
6

skipif mysql # not compatible
query I rowsort label-60
SELECT col1 + - 47 + + - col0 / + - col2 AS col1 FROM tab2
----
21
31
6

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + col2
----

query I rowsort
SELECT DISTINCT 27 FROM tab2 WHERE NOT NULL NOT IN ( ( col0 ), 70 + - + 46 + - 97, + 10 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT col1 DIV 51 + + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-65
SELECT col1 / 51 + + + col2 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab0 WHERE NOT + 96 + - col2 * + col2 BETWEEN NULL AND - 69
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL ( - - COUNT( + + col2 ) ) * + - SUM( - + 42 ) FROM tab1
----
378

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL ( - - COUNT ( + + col2 ) ) * + - SUM ( - + 42 ) FROM tab1
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT DISTINCT 77 * - CAST( - 15 AS SIGNED ) * CAST( - - col2 AS SIGNED ) FROM tab0
----
114345
11550
54285

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT 77 * - CAST ( - 15 AS INTEGER ) * CAST ( - - col2 AS INTEGER ) FROM tab0
----
114345
11550
54285

query I rowsort
SELECT - - 13 * ( 18 ) FROM tab1 AS cor0
----
234
234
234

query II rowsort
SELECT ALL - col2 AS col2, 93 AS col0 FROM tab1 AS cor0
----
-59
93
-68
93
-96
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL + - SUM( DISTINCT 32 ) col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-73
SELECT ALL + - SUM ( DISTINCT 32 ) col0 FROM tab1 AS cor0
----
-32

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

query II rowsort
SELECT col1 + - col1, + ( + col1 ) FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT 5 + + col0 * - col1 AS col0 FROM tab1
----
-420
-4272
-709

onlyif mysql # DIV for integer division: 
query II rowsort label-79
SELECT ALL - 42 DIV + - col2, - col0 AS col2 FROM tab2
----
0
-75
1
-46
1
-64

skipif mysql # not compatible
query II rowsort label-79
SELECT ALL - 42 / + - col2, - col0 AS col2 FROM tab2
----
0
-75
1
-46
1
-64

query II rowsort
SELECT + col0 + + col2 AS col2, - ( - + col0 ) AS col2 FROM tab1
----
144
85
147
51
159
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT ALL - col0 + + col0 + - 65 * + - CAST( col0 AS SIGNED ) FROM tab0
----
5655
6305
975

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - col0 + + col0 + - 65 * + - CAST ( col0 AS INTEGER ) FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( + col2 ) * + 18 + - + 84 FROM tab2
----
330

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( + col2 ) * + 18 + - + 84 FROM tab2
----
330

query I rowsort
SELECT DISTINCT 41 * - + col2 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT ALL - - 88 + 97 AS col1 FROM tab2 AS cor0
----
185
185
185

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT COUNT( * ) * + 64 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT COUNT ( * ) * + 64 FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-86
SELECT ALL 37, - CAST( - col0 AS SIGNED ) - col2 + - col1 AS col2 FROM tab0
----
37
-113
37
-3
37
56

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL 37, - CAST ( - col0 AS INTEGER ) - col2 + - col1 AS col2 FROM tab0
----
37
-113
37
-3
37
56

query I rowsort
SELECT ALL + ( + col0 ) + - + col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> - col0 + + + 11 + 76
----

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

query I rowsort
SELECT ALL + - col1 + - + 63 + ( - col0 ) FROM tab0 AS cor0
----
-159
-161
-171

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE col1 + 63 / - 34 NOT BETWEEN + col0 AND col2
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + COUNT( * ) + - - 99 FROM tab0 AS cor0 WHERE ( NOT + col1 * col1 IS NOT NULL )
----
99

skipif mysql # not compatible
query I rowsort label-92
SELECT + COUNT ( * ) + - - 99 FROM tab0 AS cor0 WHERE ( NOT + col1 * col1 IS NOT NULL )
----
99

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

query III rowsort
SELECT * FROM tab0 WHERE + 51 + + - col1 / col1 > - - col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col2 * + + col2 - + col1 + + col2 AS col1 FROM tab2
----
1563
3355
501

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

query I rowsort
SELECT 45 * col0 AS col1 FROM tab2
----
2070
2880
3375

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-99
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + 71
----

skipif mysql # not compatible
query III rowsort label-99
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + 71
----

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

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

query II rowsort
SELECT + 80 AS col0, 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b0cb110b746f4d3620ada02ec3f7f229

query I rowsort
SELECT ( - 43 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query II rowsort
SELECT ALL + 11, col1 AS col0 FROM tab1
----
11
14
11
47
11
5

onlyif mysql # aggregate syntax: 
query III rowsort label-104
SELECT DISTINCT - - 19 AS col1, SUM( col1 ) AS col1, - - COUNT( * ) FROM tab0 AS cor0
----
19
103
3

skipif mysql # not compatible
query III rowsort label-104
SELECT DISTINCT - - 19 AS col1, SUM ( col1 ) AS col1, - - COUNT ( * ) FROM tab0 AS cor0
----
19
103
3

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT MAX( - - 45 ) col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-105
SELECT MAX ( - - 45 ) col1 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL COUNT( * ) * - 86 AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL COUNT ( * ) * - 86 AS col1 FROM tab2
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT DISTINCT - 81 DIV + - ( - - 89 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-108
SELECT DISTINCT - 81 / + - ( - - 89 ) col1 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL SUM( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL SUM ( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) )
----
NULL

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

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

query I rowsort
SELECT + col1 * + 36 * + col1 AS col1 FROM tab2 AS cor0
----
161604
213444
93636

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-115
SELECT 4 - COUNT ( 3 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT 6 * col1 + + col2 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
174
231
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( CAST( - + ( + + col1 ) AS SIGNED ) ) - + + 23 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( CAST ( - + ( + + col1 ) AS INTEGER ) ) - + + 23 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-118
SELECT ALL * FROM tab0 WHERE NULL > + CAST( - - col1 AS SIGNED ) - - col1 + col1 / - 91 / 63
----

skipif mysql # not compatible
query III rowsort label-118
SELECT ALL * FROM tab0 WHERE NULL > + CAST ( - - col1 AS INTEGER ) - - col1 + col1 / - 91 / 63
----

query I rowsort
SELECT col1 * - col2 * - col1 AS col1 FROM tab0
----
308367
4410
99

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2
----
88
88
88

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

query II rowsort
SELECT + col1, + col1 * + 19 FROM tab1
----
14
266
47
893
5
95

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

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

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

query I rowsort
SELECT + col2 * 75 AS col1 FROM tab0 WHERE NOT ( NULL ) < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT 1 + COUNT( ALL + col0 ) col1 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-127
SELECT 1 + COUNT ( ALL + col0 ) col1 FROM tab1
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 WHERE 27 + col2 * - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-130
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE 27 + col2 * - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - col0 * - 55 col0 FROM tab1
----
2091
4250
728

query I rowsort
SELECT DISTINCT 61 * col1 + - col2 AS col2 FROM tab0
----
-38
1271
4894

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL ( + COUNT( * ) ) col0 FROM tab0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-135
SELECT ALL ( + COUNT ( * ) ) col0 FROM tab0 WHERE NULL < NULL
----
0

query I rowsort
SELECT ALL + col2 / - col2 FROM tab0 WHERE col1 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-138
SELECT DISTINCT COUNT( ALL 60 ) DIV COUNT( * ) - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT COUNT ( ALL 60 ) / COUNT ( * ) - COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE 51 + col1 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE 51 + col1 <= ( NULL )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-142
SELECT CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) * 7 FROM tab2 WHERE + col2 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-142
SELECT CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) * 7 FROM tab2 WHERE + col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col0 * + 62 AS col0 FROM tab0
----
5394
6014
930

query I rowsort
SELECT DISTINCT 37 * col2 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE - 36 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 36 + col0 IS NULL
----
0

query I rowsort
SELECT ALL + col2 + 27 FROM tab2 AS cor0
----
50
67
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-147
SELECT ALL - 68 DIV + ( COUNT( ALL + 60 ) ) + 70 AS col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - 68 / + ( COUNT ( ALL + 60 ) ) + 70 AS col0 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 < ( 33 - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 < ( 33 - 47 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT col0 DIV col1 - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-149
SELECT col0 / col1 - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT COUNT( * ) + + 94 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-150
SELECT COUNT ( * ) + + 94 FROM tab2
----
97

query I rowsort
SELECT DISTINCT col1 * 57 FROM tab1 AS cor0
----
2679
285
798

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT ALL - + col2 DIV + 2 FROM tab2 cor0
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL - + col2 / + 2 FROM tab2 cor0
----
-11
-20
-29

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

query I rowsort
SELECT + 72 * col1 AS col2 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT DISTINCT + col1 * - col2 * col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT col0 * - col1 + + 82 FROM tab0 WHERE NOT ( col2 - col2 ) IS NULL
----
-1133
-15
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL - SUM( DISTINCT + + col1 ) * COUNT( * ) col2 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-159
SELECT ALL - SUM ( DISTINCT + + col1 ) * COUNT ( * ) col2 FROM tab1
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT ALL - 13 * - - CAST( col2 AS SIGNED ) col0 FROM tab0
----
-1287
-130
-611

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-160
SELECT ALL - 13 * - - CAST ( col2 AS INTEGER ) col0 FROM tab0
----
-1287
-130
-611

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

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

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

query I rowsort
SELECT 21 FROM tab1 WHERE NOT + 12 NOT BETWEEN + col1 AND ( col2 * + col2 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT - - 40 * COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - - 40 * COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - 47 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - 47 / col2 AS col1 FROM tab0 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT ALL - - ( + 2 ) DIV SUM( - ( + col2 ) * 51 ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-166
SELECT ALL - - ( + 2 ) / SUM ( - ( + col2 ) * 51 ) col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT DISTINCT - 16 + 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( ( CAST( - col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - 16 + 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( ( CAST ( - col0 AS INTEGER ) ) )
----

query I rowsort
SELECT ALL - 10 + 25 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-171
SELECT DISTINCT * FROM tab2 WHERE - 1 * - col2 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-171
SELECT DISTINCT * FROM tab2 WHERE - 1 * - col2 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT ALL + col2 DIV col0 + - col1 * + col0 FROM tab0
----
-1212
-1827
-96

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + col2 / col0 + - col1 * + col0 FROM tab0
----
-1212
-1827
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 0 - + col0
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col1 > 72
----

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

query I rowsort
SELECT ALL - + col2 * col2 + 60 + col2 * 4 * - col1 AS col1 FROM tab1 AS cor0
----
-14532
-17348
-4601

query I rowsort
SELECT 75 AS col2 FROM tab2 cor0
----
75
75
75

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT DISTINCT - col0 * + col2 + - CAST( + 29 AS SIGNED ) FROM tab0 AS cor0
----
-734
-899
-9632

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - col0 * + col2 + - CAST ( + 29 AS INTEGER ) FROM tab0 AS cor0
----
-734
-899
-9632

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-183
SELECT * FROM tab1 WHERE 84 >= ( - + CAST( - 98 AS SIGNED ) * - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-183
SELECT * FROM tab1 WHERE 84 >= ( - + CAST ( - 98 AS INTEGER ) * - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-184
SELECT ALL * FROM tab0 WHERE NOT ( 23 ) BETWEEN CAST( NULL AS SIGNED ) AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-184
SELECT ALL * FROM tab0 WHERE NOT ( 23 ) BETWEEN CAST ( NULL AS INTEGER ) AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + 52 IS NULL AND - 32 NOT BETWEEN 99 + col0 AND NULL
----

query I rowsort
SELECT + 51 + + 80 * - - col1 AS col1 FROM tab0
----
131
1731
6531

query I rowsort
SELECT - ( - + col1 ) + - ( + - col0 ) - + 59 AS col2 FROM tab0 AS cor0
----
37
39
49

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

query I rowsort
SELECT - 9 + 63 AS col1 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - col0 + + 5 FROM tab2 AS cor0
----
-41
-59
-70

query I rowsort
SELECT ALL - + col0 + + col1 * + 48 AS col2 FROM tab1 AS cor0
----
155
2165
621

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

query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT MAX( DISTINCT + 45 ) - + 80 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-194
SELECT MAX ( DISTINCT + 45 ) - + 80 FROM tab2
----
-35

query I rowsort
SELECT - + col1 * + col2 - col2 + - col2 FROM tab2 AS cor0
----
-1219
-3160
-4002

query II rowsort
SELECT 13 AS col0, - 48 FROM tab2 AS cor0
----
13
-48
13
-48
13
-48

query II rowsort
SELECT + 98 AS col1, - 10 + col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-198
SELECT + col1 DIV - CAST( - - 41 AS SIGNED ) AS col0, + col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-198
SELECT + col1 / - CAST ( - - 41 AS INTEGER ) AS col0, + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-1
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT ALL + 24 DIV SUM( - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + 24 / SUM ( - col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ( - + 33 ) DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-200
SELECT ( - + 33 ) / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL - COUNT( * ) * - + 19 AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - COUNT ( * ) * - + 19 AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT - 40 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 62 * - col1 IS NULL
----
24
35
6

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = + col2
----

query I rowsort
SELECT + 23 * + col2 AS col1 FROM tab0
----
1081
2277
230

query I rowsort
SELECT + 24 * + col2 AS col2 FROM tab2
----
1392
552
960

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT ( - col1 ) < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + 83 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT + MAX( + 44 ) * + + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
132

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + MAX ( + 44 ) * + + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
132

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL > NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL + + 74 DIV - + col1 FROM tab1 AS cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + + 74 / - + col1 FROM tab1 AS cor0
----
-1
-14
-5

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 * + 30 + - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT + + 15 + 7 DIV - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-217
SELECT + + 15 + 7 / - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 8 * col0 FROM tab0
----
120
696
776

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT ALL + col0 * col0 + col2 DIV - 69 AS col2 FROM tab0 AS cor0
----
225
7569
9408

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL + col0 * col0 + col2 / - 69 AS col2 FROM tab0 AS cor0
----
225
7569
9408

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

query I rowsort
SELECT - + 94 * - 91 + - - 28 FROM tab2 AS cor0
----
8582
8582
8582

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-222
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 * + + 92 * + col0 * + 38 / + col2 * + 68 * CAST( - 70 AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-222
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 * + + 92 * + col0 * + 38 / + col2 * + 68 * CAST ( - 70 AS INTEGER ) + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 + - col2 col1 FROM tab2 AS cor0
----
-119
-136
-154

query I rowsort
SELECT ALL - 87 * 93 * - - 76 + + col0 FROM tab1 cor0
----
-614825
-614831
-614865

query I rowsort
SELECT col0 * 30 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
1530
2550
2730

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

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

query II rowsort
SELECT DISTINCT - 5 AS col2, - ( 63 ) + + col2 + + + 23 AS col2 FROM tab2
----
-5
-17
-5
0
-5
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-230
SELECT + MIN( ALL - - 20 ) DIV 22 col2, 75 * + + COUNT( * ) FROM tab2
----
0
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-230
SELECT + MIN ( ALL - - 20 ) / 22 col2, 75 * + + COUNT ( * ) FROM tab2
----
0
225

query I rowsort
SELECT - ( 47 ) FROM tab1 AS cor0 WHERE col1 / - ( + col2 ) IN ( + col0 * - col1 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT ALL + col0 - col1 * col0 DIV - 55 AS col0 FROM tab1 AS cor0
----
168
63
92

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + col0 - col1 * col0 / - 55 AS col0 FROM tab1 AS cor0
----
168
63
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT - CAST( ( - COUNT( * ) ) AS SIGNED ) - - - 68 AS col0 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-233
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - - 68 AS col0 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + - SUM( DISTINCT - 49 ) + + ( - 57 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + - SUM ( DISTINCT - 49 ) + + ( - 57 ) FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT + CAST( - + 78 AS SIGNED ) + + COUNT( * ) col0 FROM tab1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-235
SELECT + CAST ( - + 78 AS INTEGER ) + + COUNT ( * ) col0 FROM tab1
----
-75

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

skipif mysql # not compatible
query I rowsort label-236
SELECT ( MIN ( DISTINCT - 46 ) ) AS col1 FROM tab1
----
-46

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-238
SELECT ALL + 54 * + + CAST( NULL AS DECIMAL ) * - - col1 / 50 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + 54 * + + CAST ( NULL AS REAL ) * - - col1 / 50 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL + COUNT( DISTINCT 75 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL + COUNT ( DISTINCT 75 ) FROM tab2 cor0
----
1

query I rowsort
SELECT - - col1 * 27 FROM tab0 AS cor0
----
2187
27
567

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

skipif mysql # not compatible
query I rowsort label-241
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-243
SELECT MIN ( ALL - 30 ) AS col0 FROM tab2
----
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL COUNT( * ) * + - COUNT( * ) * - 68 FROM tab1
----
612

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * - 68 FROM tab1
----
612

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

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

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

query I rowsort
SELECT ALL 13 * ( - col2 ) FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL SUM( ALL - 72 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL SUM ( ALL - 72 ) FROM tab0
----
-216

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

query I rowsort
SELECT ALL 79 * + 28 + + + 1 AS col0 FROM tab2 AS cor0
----
2213
2213
2213

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-254
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + MAX( - 0 ) * - ( - 90 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT + MAX ( - 0 ) * - ( - 90 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) < NULL
----
NULL

query I rowsort
SELECT + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT - col2 + - - 59 FROM tab1
----
-37
-9
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT - + 76 AS col1, MIN( ALL - col1 ) * + - 82 * CAST( + 53 AS SIGNED ) FROM tab2 AS cor0
----
-76
334642

skipif mysql # not compatible
query II rowsort label-259
SELECT - + 76 AS col1, MIN ( ALL - col1 ) * + - 82 * CAST ( + 53 AS INTEGER ) FROM tab2 AS cor0
----
-76
334642

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 - - ( - + col0 ) FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT 46 + + col2 + - - 50 * + - col1 FROM tab0 AS cor0
----
-3957
-994
95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT - - SUM( + col0 ) + 2 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - - CAST( 37 AS SIGNED ) ) + CAST( - ( col0 ) AS SIGNED ) + CAST( - 35 AS SIGNED ) + + col1 / + + col0 + 16 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT - - SUM ( + col0 ) + 2 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - - CAST ( 37 AS INTEGER ) ) + CAST ( - ( col0 ) AS INTEGER ) + CAST ( - 35 AS INTEGER ) + + col1 / + + col0 + 16 <> NULL
----
NULL

query II rowsort
SELECT ALL - + col0 AS col0, 81 FROM tab0 AS cor0
----
-15
81
-87
81
-97
81

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COUNT( * ) * + + MAX( ALL - 45 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( * ) * + + MAX ( ALL - 45 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-405

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

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

query I rowsort
SELECT 39 + + 63 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-269
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + - - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-269
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + - - CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT col2 * + 13 FROM tab1
----
1248
767
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT COUNT( + + CAST( NULL AS SIGNED ) ) + 6 AS col1 FROM tab2
----
6

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 97 * - - 9 * + col2 IS NOT NULL
----

query I rowsort
SELECT col1 + - 13 AS col0 FROM tab0
----
-12
68
8

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

query I rowsort
SELECT ALL col0 + ( + col2 ) + ( - col0 ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * ( 9 ) FROM tab0 AS cor0
----
-189
-729
-9

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

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE 78 >= - 39
----
1
21
81

query I rowsort
SELECT ALL - + ( + + 10 ) * + col2 * + col0 + + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-47616
-49855
-58684

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL - ( - COUNT( - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - ( - COUNT ( - col1 ) ) FROM tab2
----
3

query I rowsort
SELECT col1 + + 50 AS col0 FROM tab1
----
55
64
97

query I rowsort
SELECT 41 + col1 AS col2 FROM tab1
----
46
55
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col1 * + col1 col2, col0 + - col2 * + 61 AS col0 FROM tab1 AS cor0
----
110
-3514
2300
-4057
247
-5805

query I rowsort
SELECT DISTINCT - - col2 - + 1 AS col1 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MIN( DISTINCT 26 ) + + COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-286
SELECT MIN ( DISTINCT 26 ) + + COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT - - 91 - + + col0 FROM tab2 AS cor0
----
16
27
45

query I rowsort
SELECT + col1 * + col0 * + - 5 FROM tab1
----
-2125
-21385
-3570

query I rowsort
SELECT - 62 * - 55 * - 99 FROM tab0
----
-337590
-337590
-337590

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT COUNT( + col2 ) * + + ( + 48 ) + - + 13 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-290
SELECT COUNT ( + col2 ) * + + ( + 48 ) + - + 13 FROM tab2
----
131

query I rowsort
SELECT DISTINCT col0 * + + 47 AS col0 FROM tab1
----
2397
3995
4277

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT - MAX( DISTINCT - col2 ) * + + 27 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * + + 27 FROM tab0 AS cor0
----
270

query I rowsort
SELECT ALL col1 * - - col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - 2 + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-298
SELECT * FROM tab1 WHERE NOT col2 - + CAST( - col2 AS SIGNED ) * + 45 <> + col1
----

skipif mysql # not compatible
query III rowsort label-298
SELECT * FROM tab1 WHERE NOT col2 - + CAST ( - col2 AS INTEGER ) * + 45 <> + col1
----

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

query I rowsort
SELECT DISTINCT - col0 * 58 + - - col1 AS col0 FROM tab2 AS cor0
----
-2617
-3635
-4283

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

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

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

skipif mysql # not compatible
query I rowsort label-302
SELECT CAST ( - + 82 AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
-246

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / - + 38 - + col2 + - - 17 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT - 21, COUNT( * ) AS col2 FROM tab1
----
-21
3

skipif mysql # not compatible
query II rowsort label-304
SELECT - 21, COUNT ( * ) AS col2 FROM tab1
----
-21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE + CAST( col0 AS SIGNED ) + col1 * 48 >= col0 + - col2 * + col1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) + col1 * 48 >= col0 + - col2 * + col1
----
-14
-47
-5

query I rowsort
SELECT + + ( - col0 ) + 4 FROM tab0 AS cor0
----
-11
-83
-93

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

query III rowsort
SELECT * FROM tab0 WHERE + col2 < - + 17
----

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

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

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

query I rowsort
SELECT - 69 - + + col1 FROM tab1 AS cor0
----
-116
-74
-83

query I rowsort
SELECT DISTINCT + col0 * + col0 - + col1 AS col2 FROM tab1 AS cor0
----
2587
7220
8234

query I rowsort
SELECT ALL + col2 * - 37 FROM tab0 AS cor0 WHERE ( + 71 + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + COUNT( * ) + SUM( ALL - + 40 ) AS col1 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + COUNT ( * ) + SUM ( ALL - + 40 ) AS col1 FROM tab1 AS cor0
----
-117

query II rowsort
SELECT col0 - + col0 + + - 41 * - - col0 * col1, - col0 * 89 AS col2 FROM tab1 AS cor0
----
-17425
-7565
-175357
-8099
-29274
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - - SUM( DISTINCT 95 ) - COUNT( * ) FROM tab0 cor0
----
92

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - - SUM ( DISTINCT 95 ) - COUNT ( * ) FROM tab0 cor0
----
92

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + col0 + + + 61 * + 1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT 53 * + col2 + - col1 DIV + col2 AS col0 FROM tab2
----
1217
2119
3073

skipif mysql # not compatible
query I rowsort label-318
SELECT 53 * + col2 + - col1 / + col2 AS col0 FROM tab2
----
1217
2119
3073

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - - col1 )
----

query I rowsort
SELECT + 91 FROM tab2 WHERE NOT - col2 + 49 = - col1 * col1
----
91
91
91

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

onlyif mysql # DIV for integer division: 
query II rowsort label-323
SELECT DISTINCT + ( col0 ) DIV - 80 AS col1, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
0
-81

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT + ( col0 ) / - 80 AS col1, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
0
-81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT + MIN( + 5 ), 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5
65

skipif mysql # not compatible
query II rowsort label-325
SELECT + MIN ( + 5 ), 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5
65

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 * - col0 + + 83 + ( - + col1 ) / + + col0 * 64 * + + 84 <= ( NULL ) )
----

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

query II rowsort
SELECT - col1 AS col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL + + 57 AS col2 FROM tab2 AS cor0
----
57
57
57

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

query I rowsort
SELECT DISTINCT col1 + - - col1 * col2 / - col1 AS col1 FROM tab1 WHERE + col0 + + col0 <= col0
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 = 22
----

query II rowsort
SELECT DISTINCT col0 + - col1, ( - col0 ) AS col1 FROM tab1
----
37
-51
44
-91
80
-85

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

query I rowsort
SELECT + + 78 FROM tab0 cor0 WHERE ( col2 ) * + - col2 * col2 / + col0 + - 54 * - - col0 IS NOT NULL
----
78
78
78

query I rowsort
SELECT DISTINCT - - col1 + - - col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT col2 DIV col2 AS col0 FROM tab1 AS cor0 WHERE + 59 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-339
SELECT col2 / col2 AS col0 FROM tab1 AS cor0 WHERE + 59 IS NOT NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 + col2 + + 56 * 38, - col0 * - - ( - - col1 ) * - - col0 col1 FROM tab0
----
2218
-158949
2255
-18225
2307
-9409

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT - 6 * COUNT( * ) FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - 6 * COUNT ( * ) FROM tab2 cor0
----
-18

query I rowsort
SELECT ALL col0 + + - 68 AS col2 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL - MAX( ALL + col0 ) * + 87 - - MIN( + CAST( col0 AS SIGNED ) ) * + COUNT( - + col1 ) * - 90 AS col1 FROM tab2 AS cor0
----
-18945

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - MAX ( ALL + col0 ) * + 87 - - MIN ( + CAST ( col0 AS INTEGER ) ) * + COUNT ( - + col1 ) * - 90 AS col1 FROM tab2 AS cor0
----
-18945

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

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

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

query I rowsort
SELECT ALL col2 + + ( col1 ) + 38 AS col0 FROM tab0 AS cor0
----
138
166
69

query II rowsort
SELECT - 96 AS col2, - 85 AS col1 FROM tab0 AS cor0
----
-96
-85
-96
-85
-96
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + SUM( 3 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-351
SELECT + SUM ( 3 ) FROM tab0
----
9

query I rowsort
SELECT - - col1 + - 71 + - col0 FROM tab0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT ALL + col1 * + - 73 FROM tab2
----
-3723
-4891
-5621

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

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

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

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT ( - + 79 ) * col1 AS col0 FROM tab0 AS cor0
----
-1659
-6399
-79

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

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

query I rowsort
SELECT - + 64 AS col1 FROM tab0 AS cor0
----
-64
-64
-64

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

query I rowsort
SELECT DISTINCT col1 * 81 + - + 59 FROM tab0 AS cor0
----
1642
22
6502

query I rowsort
SELECT DISTINCT - 39 + + - 6 + - 70 + - - 29 * - - 22 FROM tab0 AS cor0
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) * - - 82 FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) * - - 82 FROM tab2 AS cor0
----
-246

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

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

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

query I rowsort
SELECT + - 20 * + - col1 AS col2 FROM tab0 AS cor0
----
1620
20
420

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT - 15 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-368
SELECT - 15 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 18 * - col1 FROM tab1
----
-12852
-7650
-76986

onlyif mysql # aggregate syntax: 
query II rowsort label-370
SELECT ALL + 83, - COUNT( * ) AS col2 FROM tab2
----
83
-3

skipif mysql # not compatible
query II rowsort label-370
SELECT ALL + 83, - COUNT ( * ) AS col2 FROM tab2
----
83
-3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( + + 51 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT ALL 0 * + + 19 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL 0 * + + 19 / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 46 + + 4 FROM tab0 WHERE 60 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, - 51 FROM tab0
----
1
-51
21
-51
81
-51

query I rowsort
SELECT + 66 + - col0 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
42
43
49

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

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

query II rowsort
SELECT - col2 + - - col1, 34 AS col1 FROM tab1 AS cor0
----
-21
34
-54
34
-82
34

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT + COUNT( DISTINCT - - col0 ) + - MAX( - + ( col1 ) ) FROM tab2 WHERE ( - col0 ) <= ( col2 * 35 )
----
54

skipif mysql # not compatible
query I rowsort label-378
SELECT + COUNT ( DISTINCT - - col0 ) + - MAX ( - + ( col1 ) ) FROM tab2 WHERE ( - col0 ) <= ( col2 * 35 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT CAST( NULL AS SIGNED ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-379
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT + MAX( 58 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-380
SELECT + MAX ( 58 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58

query I rowsort
SELECT DISTINCT - ( 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

query I rowsort
SELECT - 44 - col2 FROM tab2 cor0
----
-102
-67
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-383
SELECT DISTINCT - 84 + + 37 * - col1 DIV - - col1 FROM tab0 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - 84 + + 37 * - col1 / - - col1 FROM tab0 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ( - SUM( + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-384
SELECT ( - SUM ( + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-121

query I rowsort
SELECT + + col2 * - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT + 9 DIV + 21 + - - COUNT( * ) col2 FROM tab1 AS cor0
----
3

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

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

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

query I rowsort
SELECT DISTINCT col1 * + 35 AS col2 FROM tab2
----
1785
2345
2695

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 NOT BETWEEN + 98 AND - 30 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL MAX ( ALL - col2 ) AS col2 FROM tab2
----
-23

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

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

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

query I rowsort
SELECT + ( - 2 ) AS col1 FROM tab1
----
-2
-2
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col1 * + ( + col2 ) + + col2 FROM tab2
----
51
1196
67
3944
77
3120

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT + COUNT( * ) AS col1, - 62 FROM tab0 AS cor0
----
3
-62

skipif mysql # not compatible
query II rowsort label-396
SELECT + COUNT ( * ) AS col1, - 62 FROM tab0 AS cor0
----
3
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + - MAX( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-398
SELECT + - MAX ( DISTINCT + col1 ) AS col2 FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT COUNT( * ) * - + COUNT( DISTINCT + col2 ) + COUNT( * ) AS col0, + 92 FROM tab2 cor0
----
-6
92

skipif mysql # not compatible
query II rowsort label-399
SELECT COUNT ( * ) * - + COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col0, + 92 FROM tab2 cor0
----
-6
92

query I rowsort
SELECT ALL 91 * + + ( - col0 ) AS col0 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT 73 * + COUNT( * ), MAX( + col2 ) * + 58 AS col1 FROM tab2
----
219
3364

skipif mysql # not compatible
query II rowsort label-401
SELECT 73 * + COUNT ( * ), MAX ( + col2 ) * + 58 AS col1 FROM tab2
----
219
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL SUM( + + 68 ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL SUM ( + + 68 ) AS col0 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-9

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

skipif mysql # not compatible
query I rowsort label-404
SELECT - MIN ( 83 ) AS col0 FROM tab2 AS cor0
----
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT + + COUNT( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 77 - col1 BETWEEN col2 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 77 - col1 BETWEEN col2 AND NULL
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-408
SELECT ALL col0 / + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL col0 / + - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col1 + - 74 FROM tab0 AS cor0
----
-105
-174
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + + 43 + - - 91 col2 FROM tab1
----
155
155
155

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

query I rowsort
SELECT - col2 / + + col1 AS col0 FROM tab0 WHERE - + 98 BETWEEN + 89 AND NULL
----

query I rowsort
SELECT DISTINCT - 36 * 19 AS col0 FROM tab0
----
-684

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

skipif mysql # not compatible
query I rowsort label-414
SELECT - CAST ( - ( + 93 ) AS INTEGER ) FROM tab2
----
93
93
93

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

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

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

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

skipif mysql # not compatible
query I rowsort label-417
SELECT + ( MAX ( ALL 58 ) ) FROM tab1 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ALL - col1 * + col1 * + + col0 + col2 DIV col0 DIV 52 * 4 * - 98 AS col0 FROM tab2 cor0
----
-119646
-336675
-379456

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - col1 * + col1 * + + col0 + col2 / col0 / 52 * 4 * - 98 AS col0 FROM tab2 cor0
----
-119646
-336675
-379456

query I rowsort
SELECT - col2 + + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = 52
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + 97 + + col1 NOT IN ( - + ( + col2 ), ( + - col0 ) + - 53, col1 * 82 * - 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 - - + col1 * - ( ( 99 ) ) FROM tab0 AS cor0
----
-2058
-7938
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-424
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

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

query II rowsort
SELECT ALL + col2 AS col1, - 93 AS col1 FROM tab0 cor0
----
10
-93
47
-93
99
-93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT DISTINCT - CAST( - 89 AS SIGNED ) col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-428
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT 17 * col2 * + - col0 AS col2 FROM tab1
----
-105196
-83232
-85255

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL MIN( DISTINCT + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL MIN ( DISTINCT + 76 ) FROM tab0
----
76

query I rowsort
SELECT 30 + 54 FROM tab1 WHERE NOT col1 IS NULL
----
84
84
84

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-432
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT MIN( DISTINCT + 51 ) + - - ( + 56 ) AS col0 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-433
SELECT MIN ( DISTINCT + 51 ) + - - ( + 56 ) AS col0 FROM tab0
----
107

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-436
SELECT - CAST ( - 96 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
96
96
96

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT + + MAX ( - 4 ) AS col2 FROM tab0 AS cor0
----
-4

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

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

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

query I rowsort
SELECT 31 - col2 FROM tab0
----
-16
-68
21

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE + col2 * + col1 + + - 86 IS NOT NULL
----
59
68
96

query II rowsort
SELECT - 6 + - - 27 AS col1, + 24 FROM tab2
----
21
24
21
24
21
24

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT - + MIN( - col1 ) + + ( + - MAX( + - 56 ) ) FROM tab0 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-445
SELECT - + MIN ( - col1 ) + + ( + - MAX ( + - 56 ) ) FROM tab0 AS cor0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 * - + ( 94 ) = - + 20 + + + 87 + + col0 / - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 * - + ( 94 ) = - + 20 + + + 87 + + col0 / - + 90
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 45 + - - col0 * + col1 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT DISTINCT MAX( ALL - - ( + + 8 ) ) AS col1, 61 col1 FROM tab1 AS cor0
----
8
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-448
SELECT DISTINCT MAX ( ALL - - ( + + 8 ) ) AS col1, 61 col1 FROM tab1 AS cor0
----
8
61

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( 44 ) + - 59 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( 44 ) + - 59 < NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT COUNT( DISTINCT - 26 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( DISTINCT - 26 ) FROM tab2
----
1

query II rowsort
SELECT ALL - col0, - 17 + col0 AS col0 FROM tab2
----
-46
29
-64
47
-75
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - 49 + - 47 FROM tab2
----
46
-96
64
-96
75
-96

query I rowsort
SELECT ALL ( + 56 ) + col0 + + + col0 FROM tab1 WHERE col0 - + - col1 IS NOT NULL
----
158
226
238

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

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

skipif mysql # not compatible
query I rowsort label-458
SELECT - - COUNT ( * ) * + - 21 AS col2 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-459
SELECT - CAST( NULL AS DECIMAL ) / col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 27 / - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-459
SELECT - CAST ( NULL AS REAL ) / col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 27 / - col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT + COUNT( * ) * + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
531

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + COUNT ( * ) * + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
531

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-462
SELECT * FROM tab1 AS cor0 WHERE NULL < ( col0 ) + + CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-462
SELECT * FROM tab1 AS cor0 WHERE NULL < ( col0 ) + + CAST ( + + col1 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IN ( + 68 * - - col0, + 91 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT DISTINCT + 87 + - - COUNT( 59 ) AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT + 87 + - - COUNT ( 59 ) AS col2 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - COUNT( * ) + 39 col1 FROM tab0 cor0
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + COUNT( * ) - + - SUM( ALL - col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + COUNT ( * ) - + - SUM ( ALL - col0 ) FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT 31 * + + ( - COUNT( * ) ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT 31 * + + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-93

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

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

query I rowsort
SELECT ALL + col1 * + 7 AS col1 FROM tab0
----
147
567
7

query I rowsort
SELECT ALL - - ( + col1 ) + col1 + 41 AS col0 FROM tab1 AS cor0
----
135
51
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT + 89 DIV - 91 - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-474
SELECT + 89 / - 91 - col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL - 4 * - COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - 4 * - COUNT ( * ) AS col1 FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT + - MAX( ALL + - col0 ) DIV + + 52 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT + - MAX ( ALL + - col0 ) / + + 52 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT - + CAST( + + col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-481
SELECT - + CAST ( + + col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-483
SELECT COUNT( * ) DIV ( + 77 ) col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-483
SELECT COUNT ( * ) / ( + 77 ) col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 + + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT DISTINCT + - AVG ( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab1 WHERE NOT 23 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + - AVG ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab1 WHERE NOT 23 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL + MAX( DISTINCT ( + col0 ) ) * + 29 AS col2 FROM tab0
----
2813

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + MAX ( DISTINCT ( + col0 ) ) * + 29 AS col2 FROM tab0
----
2813

query I rowsort
SELECT ALL + 79 + + + col1 AS col2 FROM tab0 AS cor0
----
100
160
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT DISTINCT - COUNT( * ) DIV - 33 + - COUNT( * ) FROM tab2 AS cor0
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT 93 DIV + col2 AS col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-489
SELECT 93 / + col2 AS col0 FROM tab2
----
1
2
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= 79 * + col2 * - 93 - + col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT - + 83, - MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-83
-15

skipif mysql # not compatible
query II rowsort label-492
SELECT - + 83, - MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-83
-15

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

skipif mysql # not compatible
query I rowsort label-493
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT - 91 * + ( - SUM( DISTINCT + + 48 ) ) * + COUNT( ALL - 39 ) * - + 21 + - CAST( 94 AS SIGNED ) * - 29 - - SUM( - + 15 ) AS col1 FROM tab1 AS cor0
----
-272503

skipif mysql # not compatible
query I rowsort label-494
SELECT - 91 * + ( - SUM ( DISTINCT + + 48 ) ) * + COUNT ( ALL - 39 ) * - + 21 + - CAST ( 94 AS INTEGER ) * - 29 - - SUM ( - + 15 ) AS col1 FROM tab1 AS cor0
----
-272503

query I rowsort
SELECT + ( - col2 ) * 82 - - 38 FROM tab2 AS cor0
----
-1848
-3242
-4718

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT ALL COUNT( * ) - + 84 col2 FROM tab1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-497
SELECT ALL COUNT ( * ) - + 84 col2 FROM tab1
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + col2 / - ( - 50 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT - 81 + + CAST( col1 AS SIGNED ) + - + 40 + - - CAST( + 24 AS SIGNED ) FROM tab1
----
-50
-83
-92

skipif mysql # not compatible
query I rowsort label-500
SELECT - 81 + + CAST ( col1 AS INTEGER ) + - + 40 + - - CAST ( + 24 AS INTEGER ) FROM tab1
----
-50
-83
-92

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - - ( col2 ) < - col2 + + 33 ) )
----
15
81
47
97
1
99

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 3
----

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

query I rowsort
SELECT ALL ( - 17 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

skipif mysql # not compatible
query I rowsort label-506
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query II rowsort
SELECT DISTINCT 6, 9 AS col2 FROM tab2
----
6
9

query I rowsort
SELECT + col2 * + + 47 AS col1 FROM tab0 AS cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT - MIN( DISTINCT - 50 ) * - 4 AS col0 FROM tab2 AS cor0
----
-200

skipif mysql # not compatible
query I rowsort label-509
SELECT - MIN ( DISTINCT - 50 ) * - 4 AS col0 FROM tab2 AS cor0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - MIN( + col2 ) * + 53 * - 32 FROM tab1 AS cor0
----
100064

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - MIN ( + col2 ) * + 53 * - 32 FROM tab1 AS cor0
----
100064

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 98 * - + COUNT( * ) AS col0 FROM tab1 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-511
SELECT 98 * - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-294

query I rowsort
SELECT ( + 39 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
39
39
39

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

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

query I rowsort
SELECT + col2 + + + col0 AS col2 FROM tab0
----
196
62
97

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

query I rowsort
SELECT + col0 + 20 FROM tab2 WHERE NOT col1 IN ( - - col2 )
----
66
84
95

query I rowsort
SELECT ALL + 59 + - + col2 FROM tab1
----
-37
-9
0

query I rowsort
SELECT + col1 + ( col1 ) FROM tab0
----
162
2
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT 33 * - CAST( - - col2 AS SIGNED ) FROM tab1
----
-1947
-2244
-3168

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT 33 * - CAST ( - - col2 AS INTEGER ) FROM tab1
----
-1947
-2244
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT - COUNT( * ) DIV 3 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-521
SELECT - COUNT ( * ) / 3 AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT COUNT( * ) * + 47 AS col1 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-522
SELECT COUNT ( * ) * + 47 AS col1 FROM tab0
----
141

query I rowsort
SELECT ALL 49 + + - col0 AS col1 FROM tab1 cor0
----
-2
-36
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 16 + - - col0 col0, - ( col2 ) FROM tab0 AS cor0
----
103
-10
113
-99
31
-47

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * + - 33 * + + col1 - + 84 > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

query I rowsort
SELECT ALL + col1 * 85 + 4 FROM tab2 AS cor0
----
4339
5699
6549

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 41 < NULL
----

query I rowsort
SELECT ALL ( 18 ) - + col0 - - col2 * + - ( + + 17 ) + 22 - - - col0 - - - col2 FROM tab0 AS cor0
----
-1936
-314
-836

query I rowsort
SELECT - + 35 * + - 80 FROM tab0 AS cor0
----
2800
2800
2800

query I rowsort
SELECT DISTINCT col0 - - col0 - - col0 FROM tab2
----
138
192
225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-536
SELECT ALL - + 84 + + 18 FROM tab2 WHERE NOT - - col1 BETWEEN CAST( + col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - + 84 + + 18 FROM tab2 WHERE NOT - - col1 BETWEEN CAST ( + col1 AS INTEGER ) AND NULL
----

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

query II rowsort
SELECT + 57 - col2 - - col1 * - col1 AS col1, - col2 FROM tab1
----
-2220
-68
-235
-96
-27
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) * + + col2 * - col1 * - - 1 col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-540
SELECT - 21 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-21
NULL
-21
NULL
-21
NULL

skipif mysql # not compatible
query II rowsort label-540
SELECT - 21 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-21
NULL
-21
NULL
-21
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 * + col0 >= - col0 + 75 * 53 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT - 25, + 53 + - + COUNT( * ) AS col2 FROM tab0 cor0
----
-25
50

skipif mysql # not compatible
query II rowsort label-542
SELECT - 25, + 53 + - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-25
50

query II rowsort
SELECT DISTINCT + + col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ( - + col2 ) * - col2 * - 31 * + + 17 FROM tab2 WHERE NOT - - col2 = + - 92 * + + col2 + col1
----
-1772828
-278783
-843200

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT AVG ( ALL - col1 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT AVG ( ALL - col1 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT + MIN( ALL 84 ) * - - 13 FROM tab1 AS cor0
----
1092

skipif mysql # not compatible
query I rowsort label-546
SELECT + MIN ( ALL 84 ) * - - 13 FROM tab1 AS cor0
----
1092

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 72 + + col2 < - + col1
----
51
14
96
91
47
68

query II rowsort
SELECT ALL + col1 * + 24, - col0 + - + 25 * - 54 AS col0 FROM tab0 AS cor0
----
1944
1335
24
1253
504
1263

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

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

query I rowsort
SELECT + col0 * + 81 + + - col2 FROM tab2 AS cor0
----
3703
5144
6017

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT + col2 DIV 52 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-553
SELECT + col2 / 52 FROM tab2
----
0
0
1

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col2 + + - 11 AS col1 FROM tab2
----
-115
-144
-80

query II rowsort
SELECT DISTINCT col2 AS col0, 73 FROM tab1 WHERE + 31 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, + 83 * col0 FROM tab1 AS cor0
----
-14
4233
-47
7553
-5
7055

query I rowsort
SELECT col1 + + 41 AS col2 FROM tab2 AS cor0
----
108
118
92

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

query I rowsort
SELECT DISTINCT + 31 + - 33 AS col2 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - MIN( 98 ) + + COUNT( * ) * 23 + + 50 AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-563
SELECT - MIN ( 98 ) + + COUNT ( * ) * 23 + + 50 AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-564
SELECT DISTINCT + 2 DIV + col2 * + + 7 AS col0, - 57 FROM tab0 AS cor0
----
0
-57

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT + 2 / + col2 * + + 7 AS col0, - 57 FROM tab0 AS cor0
----
0
-57

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

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

query I rowsort
SELECT - col0 + col2 * - col1 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT 13 + COUNT( - 86 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-567
SELECT 13 + COUNT ( - 86 ) FROM tab1
----
16

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

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - 64 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1 WHERE NOT col2 > + col0 + col2
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT ALL 83 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 83 / col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-571
SELECT ALL 16 DIV COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL 16 / COUNT ( * ) FROM tab2
----
5

query I rowsort
SELECT ALL 75 - col1 AS col0 FROM tab2 WHERE NOT 28 IS NULL
----
-2
24
8

query I rowsort
SELECT ALL col2 * + col0 + 48 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1425
14259
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT MAX( ALL - 33 ) + + SUM( col2 ) FROM tab1 WHERE NOT - col0 * - col2 IS NULL
----
190

skipif mysql # not compatible
query I rowsort label-574
SELECT MAX ( ALL - 33 ) + + SUM ( col2 ) FROM tab1 WHERE NOT - col0 * - col2 IS NULL
----
190

query I rowsort
SELECT + 96 + col2 FROM tab2
----
119
136
154

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL ( COUNT( * ) ) * 8 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL ( COUNT ( * ) ) * 8 FROM tab0
----
24

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col0 = ( col2 + col1 )
----
51
85
91

query I rowsort
SELECT + 79 + - col2 * col1 AS col2 FROM tab2 WHERE - col1 * + col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 + col1 * ( col1 ) FROM tab2
----
2550
4422
5852

query I rowsort
SELECT col2 + 61 FROM tab2
----
101
119
84

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

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

query I rowsort
SELECT ALL - col0 / - 36 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND + 47 * - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT 66 * MAX( + col1 * col0 ) AS col1 FROM tab2
----
331650

skipif mysql # not compatible
query I rowsort label-583
SELECT 66 * MAX ( + col1 * col0 ) AS col1 FROM tab2
----
331650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT COUNT( 36 ) + 5 AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-585
SELECT COUNT ( 36 ) + 5 AS col1 FROM tab0
----
8

query I rowsort
SELECT ALL ( - 55 ) FROM tab1
----
-55
-55
-55

query I rowsort
SELECT + col1 + + col1 FROM tab2 WHERE ( - col2 * + col0 ) BETWEEN ( col0 ) AND col0 * - 51
----

query I rowsort
SELECT ALL - col0 * col2 + ( - col2 ) AS col1 FROM tab0
----
-752
-880
-9702

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

query I rowsort
SELECT + 28 - - 37 AS col1 FROM tab0
----
65
65
65

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT 69 + - col0 * 60 <= NULL
----

query I rowsort
SELECT - 26 * + 4 AS col0 FROM tab1 WHERE NOT col2 BETWEEN 22 AND - col1
----
-104
-104
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT 54 * + 20 + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-594
SELECT ALL + 24 FROM tab0 cor0 WHERE NULL > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + 24 FROM tab0 cor0 WHERE NULL > CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT 77 DIV 22 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-595
SELECT 77 / 22 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL col2 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT DISTINCT SUM( DISTINCT - 39 ) AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT SUM ( DISTINCT - 39 ) AS col1 FROM tab1 AS cor0
----
-39

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT 26 DIV COUNT( * ) col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-599
SELECT 26 / COUNT ( * ) col1 FROM tab1 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + 33 >= - col2 * - col2
----
87
21
10

query I rowsort
SELECT ALL 21 * + col2 AS col1 FROM tab1
----
1239
1428
2016

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-603
SELECT DISTINCT * FROM tab0 cor0 WHERE - 24 + col0 BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-603
SELECT DISTINCT * FROM tab0 cor0 WHERE - 24 + col0 BETWEEN CAST ( NULL AS REAL ) AND NULL
----

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

query I rowsort
SELECT - + 48 + 59 AS col2 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ALL col0 + 78 FROM tab1 cor0
----
129
163
169

query I rowsort
SELECT 64 FROM tab2 AS cor0 WHERE NULL IS NULL
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL SUM( 48 ) AS col1 FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL SUM ( 48 ) AS col1 FROM tab0 cor0
----
144

query I rowsort
SELECT - ( 68 ) AS col1 FROM tab2 WHERE ( ( - 75 ) ) IS NOT NULL
----
-68
-68
-68

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

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

query I rowsort
SELECT col2 + - col2 * col1 AS col0 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT 52 * - col1 + col0 FROM tab2
----
-2606
-3409
-3940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + col1 ) ) col0 FROM tab1
----
-14
-47
-5

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

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

query I rowsort
SELECT DISTINCT + 52 * + col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
15345
166239
69902

query I rowsort
SELECT DISTINCT col1 - - + col0 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * col1 ) <> - 1 * + 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - ( col2 ) - col0 * - col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + MAX( + 47 ) AS col2 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL <= + 1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT + MAX ( + 47 ) AS col2 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL <= + 1 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT COUNT( * ) * - 37 + - COUNT( * ) - + 64 AS col1 FROM tab0
----
-178

skipif mysql # not compatible
query I rowsort label-621
SELECT COUNT ( * ) * - 37 + - COUNT ( * ) - + 64 AS col1 FROM tab0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - 27 + SUM( ALL + - col2 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-622
SELECT - 27 + SUM ( ALL + - col2 ) FROM tab0
----
-183

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

skipif mysql # not compatible
query I rowsort label-623
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----
0

query I rowsort
SELECT ALL - 99 * ( - + col0 ) FROM tab1
----
5049
8415
9009

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

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

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

query I rowsort
SELECT ALL ( + + col1 ) + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

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

query I rowsort
SELECT DISTINCT - col1 + + col0 + - col0 + 28 * + col1 FROM tab2 AS cor0
----
1377
1809
2079

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN 59 / + col0 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT ALL - - 59, COUNT( * ) col2 FROM tab2 AS cor0
----
59
3

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * 46 BETWEEN - 37 * + col0 AND 18
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 34 ) NOT IN ( - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - MAX( DISTINCT - - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-643
SELECT - MAX ( DISTINCT - - col0 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * col2 * + col0 col2 FROM tab2 AS cor0
----
126150
30682
74240

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

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

query I rowsort
SELECT + col2 + - + col1 * col2 * + + 48 AS col0 FROM tab0
----
-10070
-182689
-4653

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT ALL CAST( + col1 AS SIGNED ) + - - 64, + 88 AS col0 FROM tab1 AS cor0
----
111
88
69
88
78
88

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL CAST ( + col1 AS INTEGER ) + - - 64, + 88 AS col0 FROM tab1 AS cor0
----
111
88
69
88
78
88

query I rowsort
SELECT ALL + + col2 + - + 63 FROM tab1 AS cor0
----
-4
33
5

query I rowsort
SELECT DISTINCT ( + col1 ) * + - col2 * col2 + + ( 41 ) + + col0 AS col1 FROM tab1 AS cor0
----
-128932
-17279
-217196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 49 / - 20 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 49 / - 20 IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT ALL - col1 + + + col0 * + col1 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT + + col1 * + col1 - - + col0 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 35 / - ( + col1 ) + + 96 * col1 ) IS NOT NULL
----

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 64 / 39 BETWEEN 7 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 - - ( - 27 ) AS col1 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + 77 - + MAX( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + 77 - + MAX ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-666
SELECT DISTINCT - 33 * + COUNT( * ) AS col0, 16 AS col2 FROM tab2
----
-99
16

skipif mysql # not compatible
query II rowsort label-666
SELECT DISTINCT - 33 * + COUNT ( * ) AS col0, 16 AS col2 FROM tab2
----
-99
16

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

skipif mysql # not compatible
query I rowsort label-667
SELECT 55 / + 99 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL col2 DIV col2 + - - 98 FROM tab1 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL col2 / col2 + - - 98 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( - - 73 / col1 + + col0 IS NULL ) ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 * + - 20 col2 FROM tab1 AS cor0
----
-1720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 * - 54 col1, 28 + 96 * - col2 AS col0 FROM tab0 AS cor0
----
-1458
-4484
-1458
-932
-1458
-9476

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col0 col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT col0 * + col2 AS col1, col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

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

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab1 cor0
----
10

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 20 / col1 / - - col0 - + - 88 BETWEEN NULL AND ( - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + - col1 col1 FROM tab1 WHERE NOT ( + + 91 ) <> NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT CAST( + COUNT( 47 ) AS SIGNED ) col1 FROM tab0
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT DISTINCT COUNT( * ) * - CAST( 10 AS SIGNED ) col2 FROM tab0
----
-30

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

query I rowsort
SELECT ALL - col1 * - - 20 AS col2 FROM tab0
----
-1620
-20
-420

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 90 >= - - 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-688
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT + CAST( 34 AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-688
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT + CAST ( 34 AS REAL ) IS NULL )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) > - col1 + + ( + + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL + - 64 * + + COUNT( * ) + - 76 + - 25 + - ( + COUNT( * ) ) FROM tab2 cor0
----
-296

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + - 64 * + + COUNT ( * ) + - 76 + - 25 + - ( + COUNT ( * ) ) FROM tab2 cor0
----
-296

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

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

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

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

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

query I rowsort
SELECT ALL ( + 90 ) AS col0 FROM tab1
----
90
90
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-700
SELECT DISTINCT + COUNT( * ) AS col1, + ( + CAST( NULL AS SIGNED ) ) + - MIN( DISTINCT - 27 ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-700
SELECT DISTINCT + COUNT ( * ) AS col1, + ( + CAST ( NULL AS INTEGER ) ) + - MIN ( DISTINCT - 27 ) FROM tab1
----
3
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT - MAX( + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - MAX ( + col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT DISTINCT 93 + + COUNT( col1 + col0 ) FROM tab0 WHERE NOT + + col2 NOT BETWEEN - col0 / col1 + + + col0 AND col0 * - - col2 + + col1 + - col1
----
95

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT 93 + + COUNT ( col1 + col0 ) FROM tab0 WHERE NOT + + col2 NOT BETWEEN - col0 / col1 + + + col0 AND col0 * - - col2 + + col1 + - col1
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-704
SELECT * FROM tab0 WHERE + 91 * - - CAST( NULL AS DECIMAL ) + + 95 NOT IN ( + 75 )
----

skipif mysql # not compatible
query III rowsort label-704
SELECT * FROM tab0 WHERE + 91 * - - CAST ( NULL AS REAL ) + + 95 NOT IN ( + 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-705
SELECT + CAST( + 58 AS SIGNED ) * - col0 AS col1 FROM tab1 WHERE + - col2 * 12 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-705
SELECT + CAST ( + 58 AS INTEGER ) * - col0 AS col1 FROM tab1 WHERE + - col2 * 12 * - col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT DISTINCT - CAST( + - 29 AS SIGNED ) + + col0 FROM tab0 cor0
----
116
126
44

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - CAST ( + - 29 AS INTEGER ) + + col0 FROM tab0 cor0
----
116
126
44

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 93 BETWEEN + 60 * + + col1 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 92 + + 61 FROM tab0 AS cor0
----
153
153
153

query I rowsort
SELECT - - col2 * col2 * 62 AS col1 FROM tab2 AS cor0 WHERE + col0 = + - col0
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + + col1 ) > + col2 + - col2
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + - 55 IN ( - col1 * + 11 * - 19 + + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 91 * + col1 AS col2 FROM tab2 AS cor0
----
4641
6097
7007

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( * ) * - 95 AS col2 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( * ) * - 95 AS col2 FROM tab1 AS cor0
----
-285

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

query II rowsort
SELECT DISTINCT + col2, 84 AS col1 FROM tab2 AS cor0
----
23
84
40
84
58
84

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

skipif mysql # not compatible
query I rowsort label-723
SELECT 29 / - 4 + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 0 * + + col2 * - col0 * + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - 40 FROM tab1 WHERE - - 99 * + - 53 + + 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-726
SELECT DISTINCT 5 * + 71 AS col2, - col0 DIV - col2 FROM tab2
----
355
1
355
2

skipif mysql # not compatible
query II rowsort label-726
SELECT DISTINCT 5 * + 71 AS col2, - col0 / - col2 FROM tab2
----
355
1
355
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 / - col2 + col1 col1 FROM tab2 WHERE ( col1 IN ( + - 56 + - col0 - + 95 + - col1 * + 34 * + 94 * + col0 + + + 25 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 81 col1 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT DISTINCT 74 + col0 * - 90 FROM tab0 AS cor0
----
-1276
-7756
-8656

query I rowsort
SELECT ALL + ( col1 ) * - col1 * - col1 * - + col2 AS col0 FROM tab0 AS cor0
----
-24977727
-92610
-99

query I rowsort
SELECT DISTINCT col2 * 54 FROM tab2
----
1242
2160
3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 + + + col0 col0 FROM tab2
----
-2070
-4032
-5550

query II rowsort
SELECT ALL - col0 AS col0, + 60 AS col2 FROM tab0
----
-15
60
-87
60
-97
60

query I rowsort
SELECT DISTINCT + 70 + - col2 AS col0 FROM tab2
----
12
30
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT ALL col0 DIV - col2 + + col2 * - ( - 26 ) FROM tab0 cor0
----
1222
252
2574

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL col0 / - col2 + + col2 * - ( - 26 ) FROM tab0 cor0
----
1222
252
2574

query II rowsort
SELECT + 94, - 56 AS col2 FROM tab1 cor0
----
94
-56
94
-56
94
-56

query I rowsort
SELECT ALL col1 + + 39 AS col0 FROM tab1 AS cor0
----
44
53
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - 30
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-741
SELECT - 68 + - 77 - + + 57 DIV - + CAST( + col2 AS SIGNED ) + + col2 FROM tab1 cor0 WHERE ( NOT + + 81 * + col0 * - 73 IN ( 33, - col1, - - 69 ) )
----
-49
-77
-86

skipif mysql # not compatible
query I rowsort label-741
SELECT - 68 + - 77 - + + 57 / - + CAST ( + col2 AS INTEGER ) + + col2 FROM tab1 cor0 WHERE ( NOT + + 81 * + col0 * - 73 IN ( 33, - col1, - - 69 ) )
----
-49
-77
-86

query I rowsort
SELECT ALL - - col0 * + col1 * - 40 + - - col1 + + + col2 + + 30 * + - 11 AS col0 FROM tab0 AS cor0
----
-4110
-48802
-73379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-743
SELECT + CAST( NULL AS SIGNED ) AS col2, SUM( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-743
SELECT + CAST ( NULL AS INTEGER ) AS col2, SUM ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
NULL
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= ( - 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT ALL + ( CAST( - col1 AS SIGNED ) ) + - 74 col2 FROM tab2 AS cor0
----
-125
-141
-151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-745
SELECT ALL + ( CAST ( - col1 AS INTEGER ) ) + - 74 col2 FROM tab2 AS cor0
----
-125
-141
-151

query I rowsort
SELECT DISTINCT col0 * - 10 + + col2 + + col2 + + col1 * col2 FROM tab2 AS cor0
----
2520
3252
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT + col1 - col0 + - ( - + 14 ) + - CAST( - col1 AS SIGNED ) + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2592
7164
8298

skipif mysql # not compatible
query I rowsort label-747
SELECT + col1 - col0 + - ( - + 14 ) + - CAST ( - col1 AS INTEGER ) + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2592
7164
8298

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-750
SELECT ALL CAST ( + + ( - 41 ) AS INTEGER ) col2 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ( - 21 ) + - - col2 AS col2 FROM tab1 WHERE + 91 IS NOT NULL
----
38
47
75

query I rowsort
SELECT DISTINCT 41 + - - 2 + + col2 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT ALL col2 * + 8 + + 69 + + col2 FROM tab1 AS cor0
----
600
681
933

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

query I rowsort
SELECT + ( - 74 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query II rowsort
SELECT DISTINCT - col1, + col0 * + + 4 AS col1 FROM tab1
----
-14
204
-47
364
-5
340

query I rowsort
SELECT ALL 79 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - + 13 * COUNT( * ) col0 FROM tab2 AS cor0
----
-39

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT ALL - ( - ( col0 ) ) * col0 DIV + col2 AS col2, 79 * + col1 AS col0 FROM tab0 cor0
----
4
6399
756
1659
95
79

skipif mysql # not compatible
query II rowsort label-764
SELECT ALL - ( - ( col0 ) ) * col0 / + col2 AS col2, 79 * + col1 AS col0 FROM tab0 cor0
----
4
6399
756
1659
95
79

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + COUNT( * ) * + COUNT( * ) * - 58 - - COUNT( * ) + + COUNT( * ) * - 34 * - ( 67 ) AS col0 FROM tab1 cor0
----
6315

skipif mysql # not compatible
query I rowsort label-765
SELECT + COUNT ( * ) * + COUNT ( * ) * - 58 - - COUNT ( * ) + + COUNT ( * ) * - 34 * - ( 67 ) AS col0 FROM tab1 cor0
----
6315

query I rowsort
SELECT + 54 + - col1 + + 46 + + col1 AS col0 FROM tab1
----
100
100
100

query II rowsort
SELECT DISTINCT - col2, - 0 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL - 66 * + 42 * 1 AS col0 FROM tab1
----
-2772
-2772
-2772

query I rowsort
SELECT DISTINCT + col1 + + - 56 + col2 FROM tab2
----
18
61
69

query II rowsort
SELECT + col0 AS col1, 53 AS col0 FROM tab0
----
15
53
87
53
97
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 29 AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT DISTINCT ( - 0 ) * + 8 DIV + col0 * col0 * + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT ( - 0 ) * + 8 / + col0 * col0 * + col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT col1 * - col0 * - - col2 DIV col2 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-773
SELECT col1 * - col0 * - - col2 / col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col0 + + 38 + + - col0 + + + col1 AS col0 FROM tab0
----
119
39
59

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

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

query II rowsort
SELECT ALL + + col1 + - 21 AS col2, + col1 + + ( + col1 ) FROM tab2 AS cor0
----
30
102
46
134
56
154

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

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

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE - col0 * - col1 <= col2
----
-1

query II rowsort
SELECT DISTINCT - col2 + - 43 * + - col0 AS col0, + col2 FROM tab1 AS cor0
----
2097
96
3596
59
3845
68

query I rowsort
SELECT ALL - ( - - col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT COUNT( DISTINCT ( - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT COUNT ( DISTINCT ( - col1 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-787
SELECT DISTINCT 49 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 WHERE ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT 49 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 WHERE ( NULL IS NULL )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT - COUNT( * ) DIV - COUNT( ALL col0 ) - + ( 83 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - COUNT ( * ) / - COUNT ( ALL col0 ) - + ( 83 ) FROM tab1
----
-82

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

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

query I rowsort
SELECT + 53 * + - col2 - 25 + + 92 FROM tab0
----
-2424
-463
-5180

query I rowsort
SELECT + col2 - - 68 - + - col2 AS col1 FROM tab2
----
114
148
184

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT DISTINCT SUM( 76 ) FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT SUM ( 76 ) FROM tab2
----
228

query I rowsort
SELECT col1 - + 61 AS col2 FROM tab1
----
-14
-47
-56

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN 18 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + + 42 AS col1 FROM tab1 WHERE ( + col2 ) BETWEEN 60 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

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

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

query I rowsort
SELECT ALL - 2 AS col2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-806
SELECT - CAST( NULL AS SIGNED ) * + - 12 * - col0 FROM tab2 cor0 WHERE NOT col2 / - col2 * + + 11 NOT BETWEEN + 71 AND - 26 + + 46
----

skipif mysql # not compatible
query I rowsort label-806
SELECT - CAST ( NULL AS INTEGER ) * + - 12 * - col0 FROM tab2 cor0 WHERE NOT col2 / - col2 * + + 11 NOT BETWEEN + 71 AND - 26 + + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ( + MAX( col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT ( + MAX ( col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col1 + - - 85 / - 54 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

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

query I rowsort
SELECT + col2 * + 29 AS col1 FROM tab2
----
1160
1682
667

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

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

query I rowsort
SELECT - col0 * + ( - col1 ) AS col1 FROM tab2
----
2346
4928
5025

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < 71 / col1 * - 58 * - col2 + col0
----

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

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL MIN ( DISTINCT 39 ) AS col1 FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT + ( - CAST( NULL AS SIGNED ) ) + - col1 + - 87 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - col1 + - 87 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-295880
-420737
-470002

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

query I rowsort
SELECT - 94 + - col2 FROM tab2 AS cor0
----
-117
-134
-152

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT + 96 * + CAST( - col2 AS SIGNED ) FROM tab2
----
-2208
-3840
-5568

skipif mysql # not compatible
query I rowsort label-821
SELECT + 96 * + CAST ( - col2 AS INTEGER ) FROM tab2
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) * + ( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + ( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

query I rowsort
SELECT ALL + ( - col0 ) * - + col2 + col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT + COUNT( * ) - + 2 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-827
SELECT + COUNT ( * ) - + 2 AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT DISTINCT CAST( - col0 AS SIGNED ) - - 2 * - - ( - - 59 ) AS col1 FROM tab1 AS cor0
----
27
33
67

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT CAST ( - col0 AS INTEGER ) - - 2 * - - ( - - 59 ) AS col1 FROM tab1 AS cor0
----
27
33
67

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

skipif mysql # not compatible
query I rowsort label-829
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - - 52 FROM tab2 AS cor0
----
55

query I rowsort
SELECT 13 * 72 * col0 * + + col1 + + col2 FROM tab0 AS cor0
----
1137287
1710082
90891

query I rowsort
SELECT - col1 + + 56 AS col1 FROM tab2 AS cor0
----
-11
-21
5

query I rowsort
SELECT ALL col0 - - col1 AS col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - 46 + 46, - 20 )
----

query I rowsort
SELECT ( - + col1 ) + - col2 * - + 98 AS col2 FROM tab0 cor0
----
4525
959
9701

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT - 24 + + COUNT( * ) col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-835
SELECT DISTINCT - 24 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 0 + col1 + + 45 col0 FROM tab1
----
109
155
160

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

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT - 15 * col2 DIV ( - 71 ) AS col1 FROM tab2
----
12
4
8

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - 15 * col2 / ( - 71 ) AS col1 FROM tab2
----
12
4
8

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

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

query II rowsort
SELECT DISTINCT + 71 * - - col1 AS col0, - 1 - - col1 + - - 89 * + col2 FROM tab2
----
3621
2097
4757
5228
5467
3636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col1, col2 * + col2 col0 FROM tab0 AS cor0
----
-210
100
-3807
2209
-99
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT 84 DIV + + COUNT( * ) AS col0 FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-842
SELECT 84 / + + COUNT ( * ) AS col0 FROM tab1 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - 6 * - COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-843
SELECT - 6 * - COUNT ( * ) FROM tab2 AS cor0
----
18

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

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

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

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

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

query I rowsort
SELECT 23 * + - 61 + + - col2 * + + col1 AS col2 FROM tab2 AS cor0
----
-2576
-4483
-5289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT + MAX( ALL - - col0 ) DIV - 99 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT + MAX ( ALL - - col0 ) / - 99 AS col1 FROM tab2 cor0
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col2 col1 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT + 95 + + 66 FROM tab2 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT col1 + - col2 + - ( + 52 ) - col1 - + - 8 AS col1 FROM tab0
----
-143
-54
-91

query III rowsort
SELECT * FROM tab1 WHERE col2 <= + - 47
----

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

query I rowsort
SELECT ALL 5 * + + 97 + - - ( + + col2 ) + - - col2 / + - col2 AS col0 FROM tab2 WHERE + 69 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - MIN( DISTINCT + - 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-857
SELECT - MIN ( DISTINCT + - 98 ) FROM tab0
----
98

query I rowsort
SELECT + col1 * + col0 * + col2 AS col1 FROM tab0
----
18270
57105
9603

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-859
SELECT CAST ( - 88 AS INTEGER ) col0 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT ALL col1 * - col0 + col0 AS col1 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT DISTINCT 97 + + col1 * - 94 + - col0 AS col0 FROM tab0 AS cor0
----
-1964
-7532
-94

query II rowsort
SELECT DISTINCT - 29 AS col2, ( - 2 ) FROM tab1 AS cor0 WHERE NOT - 89 - + - col2 NOT IN ( + col1 * - + col2, - ( ( - col2 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT + + col0 DIV col2 + - col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-863
SELECT + + col0 / col2 + - col2 FROM tab1 AS cor0
----
-58
-67
-96

query I rowsort
SELECT + + 21 FROM tab2 AS cor0 WHERE col0 * - 10 + + 58 IS NULL
----

query I rowsort
SELECT 67 + 84 FROM tab2 AS cor0
----
151
151
151

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL 19 + 2 - - MIN( + col2 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL 19 + 2 - - MIN ( + col2 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL col1 / 20 * - 41 FROM tab0 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT ALL - 71 AS col0, - COUNT( * ) FROM tab1 cor0
----
-71
-3

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL - 71 AS col0, - COUNT ( * ) FROM tab1 cor0
----
-71
-3

query I rowsort
SELECT DISTINCT - 25 + - - col0 + col0 AS col1 FROM tab0 AS cor0
----
149
169
5

query I rowsort
SELECT ALL col2 + 19 AS col0 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL - - MIN( DISTINCT col1 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - - MIN ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
5

query I rowsort
SELECT ALL - + 55 + + col1 FROM tab2 AS cor0
----
-4
12
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL + 55 * + + COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + 55 * + + COUNT ( * ) FROM tab1
----
165

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT + MAX( col1 ) * - 82 FROM tab0
----
-6642

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + MAX ( col1 ) * - 82 FROM tab0
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL - - COUNT( * ) * + 57 * - 0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - - COUNT ( * ) * + 57 * - 0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 70 * - + col0 FROM tab0 AS cor0
----
1050
6090
6790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT ALL + MIN( ALL + - 22 ) DIV 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL + MIN ( ALL + - 22 ) / 71 FROM tab2 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - 73 + + col2 * ( + - 55 ) FROM tab2 AS cor0 WHERE NOT + 45 IS NOT NULL
----

query I rowsort
SELECT + 17 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + - 29 + + + 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 98 + - - col0 / + + 58 * - + col1 * + col1 BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-890
SELECT + CAST( NULL AS DECIMAL ), col1 / CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-890
SELECT + CAST ( NULL AS REAL ), col1 / CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + SUM( ALL - col1 ) * - 82 AS col0 FROM tab2 cor0
----
15990

skipif mysql # not compatible
query I rowsort label-891
SELECT + SUM ( ALL - col1 ) * - 82 AS col0 FROM tab2 cor0
----
15990

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - + col0 * - col0 + + 81 = NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT MAX( - 17 ) * + - COUNT( DISTINCT + - col1 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-895
SELECT MAX ( - 17 ) * + - COUNT ( DISTINCT + - col1 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT col1 * + + col0 * + - 91 AS col1 FROM tab2
----
-213486
-448448
-457275

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

query I rowsort
SELECT ALL - 28 * + 27 + + - col1 FROM tab1 WHERE NOT NULL BETWEEN - - col0 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * + 21 col0 FROM tab2
----
1932
1932
1932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-900
SELECT + - col2 * + col1 + - col1 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-1358
NULL
-300
NULL
-3243
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT + - col2 * + col1 + - col1 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-1358
NULL
-300
NULL
-3243
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-901
SELECT + + 92 + - CAST( - col1 AS SIGNED ) AS col1, + col0 - + col1 + + col2 + - - 25 col1 FROM tab0 cor0
----
113
101
173
6
93
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-901
SELECT + + 92 + - CAST ( - col1 AS INTEGER ) AS col1, + col0 - + col1 + + col2 + - - 25 col1 FROM tab0 cor0
----
113
101
173
6
93
220

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

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

query I rowsort
SELECT - + col1 + - - col1 + ( + - 42 ) + - col2 FROM tab2 AS cor0
----
-100
-65
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT - + col1 + - - col0 * 57 + 78 DIV col1 DIV - 99 FROM tab1 AS cor0
----
2893
4840
5140

skipif mysql # not compatible
query I rowsort label-904
SELECT - + col1 + - - col0 * 57 + 78 / col1 / - 99 FROM tab1 AS cor0
----
2893
4840
5140

onlyif mysql # DIV for integer division: 
query II rowsort label-905
SELECT + col1, 50 DIV + - 61 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-905
SELECT + col1, 50 / + - 61 FROM tab1 AS cor0
----
14
0
47
0
5
0

query II rowsort
SELECT ALL - + 32, 6 AS col2 FROM tab1 AS cor0
----
-32
6
-32
6
-32
6

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

query I rowsort
SELECT - 29 / col0 AS col1 FROM tab1 WHERE NULL NOT IN ( - col0, 37 )
----

query I rowsort
SELECT col2 * - col2 + col2 - + col0 + - 43 * - + col1 - - + col2 * 75 + - 51 AS col2 FROM tab0 AS cor0
----
-2382
1425
4780

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 54 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-912
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + - col1 > + - ( - + 62 ) * - + CAST( NULL AS DECIMAL ) + - ( - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + - col1 > + - ( - + 62 ) * - + CAST ( NULL AS REAL ) + - ( - 11 )
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( 13 * - 52 = + - 74 * + 73 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * 61 col1 FROM tab2
----
1708

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT ALL ( - - 47 ) DIV 56 + + ( - 2 ) + - - col0 DIV col1 FROM tab1
----
-1
1
15

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL ( - - 47 ) / 56 + + ( - 2 ) + - - col0 / col1 FROM tab1
----
-1
1
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-917
SELECT DISTINCT col1, + CAST( + + 54 AS SIGNED ) FROM tab1 AS cor0
----
14
54
47
54
5
54

skipif mysql # not compatible
query II rowsort label-917
SELECT DISTINCT col1, + CAST ( + + 54 AS INTEGER ) FROM tab1 AS cor0
----
14
54
47
54
5
54

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + - 79 * - - ( COUNT( * ) ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-918
SELECT + - 79 * - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 33 <= - - col0
----

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

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

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

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

query I rowsort
SELECT 71 + + col2 FROM tab1 AS cor0
----
130
139
167

query I rowsort
SELECT ALL 97 + - 65 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + + col1 * + + 4 AS col1 FROM tab0 cor0
----
324
4
84

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 * - col0 <> + + 69 * - - 73 + col2 / + + 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT DISTINCT 47 + - 35, - 12 * - COUNT( * ) AS col1 FROM tab1
----
12
36

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT 47 + - 35, - 12 * - COUNT ( * ) AS col1 FROM tab1
----
12
36

onlyif mysql # DIV for integer division: 
query II rowsort label-928
SELECT ALL 17 DIV - col2 AS col2, 38 * - col2 AS col0 FROM tab0
----
-1
-380
0
-1786
0
-3762

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL 17 / - col2 AS col2, 38 * - col2 AS col0 FROM tab0
----
-1
-380
0
-1786
0
-3762

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT ALL + 61 DIV 75 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + 61 / 75 AS col2 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT 1 / + SUM ( - - 90 ) * + - COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT 25 * - col2, col0 AS col2 FROM tab2
----
-1000
64
-1450
75
-575
46

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

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab2
----
-121

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

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

query I rowsort
SELECT DISTINCT - - 3 + - col2 FROM tab0 AS cor0
----
-44
-7
-96

query I rowsort
SELECT col1 + 40 + - ( col2 ) AS col0 FROM tab2
----
49
68
77

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT COUNT( DISTINCT - 96 ) + + 61 col2, COUNT( * ) + + - COUNT( * ) FROM tab0
----
62
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-937
SELECT COUNT ( DISTINCT - 96 ) + + 61 col2, COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
62
0

query I rowsort
SELECT 33 + + 0 AS col0 FROM tab2
----
33
33
33

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 29, - 28 col1 FROM tab2 AS cor0
----
29
-28
29
-28
29
-28

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT COUNT( * ) * + 96 AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-950
SELECT COUNT ( * ) * + 96 AS col0 FROM tab1 AS cor0
----
288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 / - + col1 BETWEEN - col1 AND col0
----
97
1
99

query II rowsort
SELECT - col0 * 94 AS col1, - 13 FROM tab0 cor0
----
-1410
-13
-8178
-13
-9118
-13

query I rowsort
SELECT ALL - col2 * - col1 * + col0 FROM tab1 AS cor0
----
25075
290836
68544

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

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

query I rowsort
SELECT DISTINCT 42 * - - 64 + col2 + + + col1 * col1 AS col2 FROM tab0
----
2788
3139
9296

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT - COUNT( * ) + - + ( 81 ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - COUNT ( * ) + - + ( 81 ) AS col2 FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT - + 12 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - + 12 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
36

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

query I rowsort
SELECT ALL ( - + col2 ) * - - col2 - col1 FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT 6 * 36 + + 93 FROM tab2
----
309
309
309

query I rowsort
SELECT + 92 + - 36 FROM tab2
----
56
56
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT MIN( + 74 ) * - + COUNT( * ) FROM tab2, tab1 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT MIN ( + 74 ) * - + COUNT ( * ) FROM tab2, tab1 AS cor0
----
-666

onlyif mysql # DIV for integer division: 
query II rowsort label-965
SELECT ALL + col2, 94 DIV - 78 + + col0 FROM tab0
----
10
86
47
14
99
96

skipif mysql # not compatible
query II rowsort label-965
SELECT ALL + col2, 94 / - 78 + + col0 FROM tab0
----
10
86
47
14
99
96

query I rowsort
SELECT DISTINCT - ( + - 66 ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-967
SELECT col0 DIV - - col1 + + 96 - + - CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
111
187
290

skipif mysql # not compatible
query I rowsort label-967
SELECT col0 / - - col1 + + 96 - + - CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
111
187
290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT DISTINCT - + COUNT( * ) + + MAX( CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - + COUNT ( * ) + + MAX ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - ( - - 18 ) AS col1 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

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

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - SUM ( + - col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-972
SELECT DISTINCT COUNT( * ) DIV + 23, 72 AS col0 FROM tab0
----
0
72

skipif mysql # not compatible
query II rowsort label-972
SELECT DISTINCT COUNT ( * ) / + 23, 72 AS col0 FROM tab0
----
0
72

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT ALL COUNT( + 89 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-973
SELECT ALL COUNT ( + 89 ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT - + col0 * + 56 FROM tab2 AS cor0
----
-2576
-3584
-4200

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

query II rowsort
SELECT ALL - 69 * - - 85 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-5865
10
-5865
47
-5865
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-981
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 53 < NULL
----

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

skipif mysql # not compatible
query II rowsort label-984
SELECT ALL COUNT ( * ) AS col0, - ( + ( - 69 ) ) FROM tab2
----
3
69

query II rowsort
SELECT DISTINCT col2 * - - ( + - 83 ), - 47 * + col1 AS col0 FROM tab1
----
-4897
-235
-5644
-2209
-7968
-658

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

query I rowsort
SELECT 17 * - 49 AS col2 FROM tab0 AS cor0
----
-833
-833
-833

query II rowsort
SELECT ALL + 77 AS col0, 62 FROM tab1, tab0 AS cor0
----
18 values hashing to 4ab56919d58e2c5a1f1c6402dd63a64b

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

query I rowsort
SELECT DISTINCT - 61 - - 56 AS col0 FROM tab2, tab0 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT ALL col2 / - 2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) / + ( - - col0 ), 29 )
----

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL col2 / - 2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) / + ( - - col0 ), 29 )
----

query I rowsort
SELECT - + col1 + - 87 FROM tab0 cor0
----
-108
-168
-88

query I rowsort
SELECT ALL - 79 * + 91 FROM tab1 AS cor0
----
-7189
-7189
-7189

query II rowsort
SELECT - + col2 + - + col1 + - + 92 * col0, - 88 AS col2 FROM tab1 AS cor0
----
-4802
-88
-7884
-88
-8487
-88

query I rowsort
SELECT DISTINCT 33 + - 11 FROM tab0 cor0
----
22

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT DISTINCT + - 41 + + - CAST( NULL AS SIGNED ) * 77 * - col1 + + - col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + - 41 + + - CAST ( NULL AS INTEGER ) * 77 * - col1 + + - col2 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-998
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 + + CAST( NULL AS SIGNED ) < - - 25 / - 26 + + col2
----

skipif mysql # not compatible
query III rowsort label-998
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 + + CAST ( NULL AS INTEGER ) < - - 25 / - 26 + + col2
----

query I rowsort
SELECT 94 * + 13 AS col1 FROM tab0 AS cor0
----
1222
1222
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1000
SELECT + MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT + 18 * + col1 AS col2 FROM tab1
----
252
846
90

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

query I rowsort
SELECT + col1 * - - 35 AS col0 FROM tab0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT 84 DIV 58 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1004
SELECT 84 / 58 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab0
----
36

query I rowsort
SELECT - col0 - + col0 + + 65 FROM tab1
----
-105
-117
-37

query I rowsort
SELECT 25 - + 44 AS col1 FROM tab2
----
-19
-19
-19

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE ( + - col1 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 46 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

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

query I rowsort
SELECT DISTINCT + 51 * - - col0 FROM tab0 AS cor0
----
4437
4947
765

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT - CAST ( 61 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 6 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1019
SELECT + 39 DIV - SUM( col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT + 39 / - SUM ( col1 ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT col0 * + + 32 * - col0 AS col2 FROM tab2 AS cor0
----
-131072
-180000
-67712

query I rowsort
SELECT 68 * - + col1 * ( + + col0 ) AS col1 FROM tab1
----
-28900
-290836
-48552

query I rowsort
SELECT col1 * ( + - 89 ) AS col2 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1024
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) + - 10 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1024
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) + - 10 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - SUM( ALL - 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - SUM ( ALL - 90 ) FROM tab2
----
270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - 10 ) = - col1 / + + 78
----

query I rowsort
SELECT - ( - + col1 ) + - - col0 - - + 51 + - + col1 - + - 42 * - + col2 AS col0 FROM tab0 AS cor0
----
-1908
-282
-4010

query I rowsort
SELECT + col0 * 56 + - 88 + + col1 AS col1 FROM tab2 AS cor0
----
2539
3573
4179

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - 60 + - - COUNT( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1029
SELECT - 60 + - - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-57

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - SUM ( + ( + col0 ) ) FROM tab2
----
-185

query II rowsort
SELECT DISTINCT 54, + 94 AS col1 FROM tab1
----
54
94

query I rowsort
SELECT ALL - 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN 60 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT DISTINCT + - col1 DIV 95 + + col1 - col1 + col1 + - - 41 + + col1 FROM tab2 AS cor0
----
143
175
195

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + - col1 / 95 + + col1 - col1 + col1 + - - 41 + + col1 FROM tab2 AS cor0
----
143
175
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + 28 + + MIN( DISTINCT - col1 ) - + + ( - 29 ) FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + 28 + + MIN ( DISTINCT - col1 ) - + + ( - 29 ) FROM tab0 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + 83 * + 68 + - + col0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + 83 * + 68 + - + col0, col2 )
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1038
SELECT DISTINCT col1 + 67 * - CAST( NULL AS DECIMAL ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1038
SELECT DISTINCT col1 + 67 * - CAST ( NULL AS REAL ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - 1 - + col0 - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-24
-27
44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1041
SELECT - 86 + - - MAX( col1 ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-1041
SELECT - 86 + - - MAX ( col1 ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9
3

query I rowsort
SELECT - col0 * 53 AS col2 FROM tab2 WHERE - 53 >= + col2
----

query I rowsort
SELECT 46 + - 90 FROM tab2
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT col0 + - col2 DIV - col1 AS col0 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-1044
SELECT col0 + - col2 / - col1 AS col0 FROM tab1
----
57
92
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL COUNT( * ) * - - 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL COUNT ( * ) * - - 99 AS col2 FROM tab1
----
297

query I rowsort
SELECT - col2 * + col1 + - + 66 AS col0 FROM tab2 AS cor0
----
-1239
-3146
-3952

query I rowsort
SELECT DISTINCT - + 43 AS col0 FROM tab2 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT DISTINCT - + MAX( - 50 ) FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT - + MAX ( - 50 ) FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT + - 55 * MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
5445

skipif mysql # not compatible
query I rowsort label-1050
SELECT + - 55 * MIN ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
5445

query I rowsort
SELECT + 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - 35 * 87 FROM tab1
----
-3045
-3045
-3045

query I rowsort
SELECT - + 35 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - - col0 * - 61 + - 77 FROM tab2 AS cor0
----
-2883
-3981
-4652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1055
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 IN ( col2 )
----
NULL

query I rowsort
SELECT ALL + col1 * + 82 FROM tab1 AS cor0
----
1148
3854
410

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE 57 * - col0 IS NOT NULL
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 62 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT - SUM( - + 51 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - SUM ( - + 51 ) AS col1 FROM tab1
----
153

query II rowsort
SELECT ALL col1, + col2 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col2 col2, - col2 AS col2 FROM tab2
----
117
-40
125
-58
74
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT + 56 DIV - + col1 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + 56 / - + col1 FROM tab1
----
-1
-11
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( + + col0 ) * + col2 col1 FROM tab0
----
-658
-860
-9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT 97 + - MAX( ALL - + 51 ) FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT 97 + - MAX ( ALL - + 51 ) FROM tab2
----
148

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT + COUNT( * ) AS col2, - MIN( + - col2 ) AS col2 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-1070
SELECT + COUNT ( * ) AS col2, - MIN ( + - col2 ) AS col2 FROM tab1
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT ALL - + COUNT( * ) + + 98 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - + COUNT ( * ) + + 98 FROM tab2 AS cor0
----
95

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

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

query I rowsort
SELECT ALL + col0 + - col1 * + col0 FROM tab0 AS cor0
----
-1200
-1740
0

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

query I rowsort
SELECT col2 FROM tab2 WHERE NULL < + col2 + + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - 97 + - + SUM( DISTINCT col1 ) - - 50 col1 FROM tab1
----
-113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1076
SELECT - 97 + - + SUM ( DISTINCT col1 ) - - 50 col1 FROM tab1
----
-113

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT MIN ( - + col2 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-93

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

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

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

query II rowsort
SELECT ALL - col2 + + col0 AS col1, + 4 * - col2 AS col0 FROM tab0 AS cor0
----
-2
-396
-32
-188
77
-40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ( + SUM( - 12 ) ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1084
SELECT ( + SUM ( - 12 ) ) AS col2 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1085
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) - - - ( - ( 65 ) ) * - 32 / + 57 * - col2 BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1085
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) - - - ( - ( 65 ) ) * - 32 / + 57 * - col2 BETWEEN + + col2 AND NULL
----

query II rowsort
SELECT DISTINCT - 66 AS col0, - col0 FROM tab0
----
-66
-15
-66
-87
-66
-97

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

query I rowsort
SELECT DISTINCT - 94 FROM tab2 AS cor0 WHERE NOT col2 + col2 = + col1
----
-94

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - ( - 44 ) + - col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT 99 + + MIN( - col2 + + 47 * + col1 ) AS col1 FROM tab2
----
2473

skipif mysql # not compatible
query I rowsort label-1090
SELECT 99 + + MIN ( - col2 + + 47 * + col1 ) AS col1 FROM tab2
----
2473

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT + 75 DIV col0 - - col2 AS col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT + 75 / col0 - - col2 AS col0 FROM tab1
----
59
68
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT col0 + col2 DIV + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1092
SELECT col0 + col2 / + col0 FROM tab2
----
46
64
75

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

query I rowsort
SELECT + 66 + + 87 FROM tab0 WHERE col0 * + col2 NOT BETWEEN ( - 19 ) AND 41
----
153
153
153

query I rowsort
SELECT DISTINCT + col0 + + 26 FROM tab0
----
113
123
41

query I rowsort
SELECT ALL 39 + col1 * col0 FROM tab1
----
4316
464
753

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 18 * col2 AS col0 FROM tab1
----
1062
1224
1728

query I rowsort
SELECT + 29 FROM tab0 WHERE + col2 * - 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1103
SELECT * FROM tab2 WHERE ( - col1 + col1 / CAST( col1 + 81 * col0 AS SIGNED ) ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-1103
SELECT * FROM tab2 WHERE ( - col1 + col1 / CAST ( col1 + 81 * col0 AS INTEGER ) ) IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT DISTINCT 82 * + col2 FROM tab1 WHERE NOT - col1 + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
4838
5576
7872

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT 82 * + col2 FROM tab1 WHERE NOT - col1 + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
4838
5576
7872

query I rowsort
SELECT ALL + 37 FROM tab1 WHERE NOT ( - 13 ) IS NULL
----
37
37
37

query I rowsort
SELECT - col0 - ( - 25 + col2 * - col2 ) AS col1 FROM tab1
----
3421
4558
9190

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT - 22 + + col2 DIV + col2 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 22 + + col2 / + col2 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL + 80 * 40 + COUNT( * ) AS col1 FROM tab2 WHERE 32 IS NOT NULL
----
3203

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + 80 * 40 + COUNT ( * ) AS col1 FROM tab2 WHERE 32 IS NOT NULL
----
3203

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - 85 * - ( COUNT( DISTINCT ( - col0 ) ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
255

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - 85 * - ( COUNT ( DISTINCT ( - col0 ) ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
255

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + + 61 > - col2 * + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 94 * col1 AS col1 FROM tab0
----
1974
7614
94

query III rowsort
SELECT * FROM tab1 WHERE col2 <= - 98
----

query I rowsort
SELECT DISTINCT - 61 + col2 FROM tab1 cor0
----
-2
35
7

query I rowsort
SELECT 75 * + col1 + 87 FROM tab2 AS cor0
----
3912
5112
5862

query I rowsort
SELECT DISTINCT + 17 + - 23 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + 40 + 44 FROM tab0 cor0
----
84
84
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 cor0 WHERE col0 < col2 * col2
----
10
47
99

query I rowsort
SELECT DISTINCT + 3 FROM tab2 AS cor0 CROSS JOIN tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * col0 - col2 col1 FROM tab1
----
4188
7081
7576

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT col2 DIV 78 - + 94 * 11 col1 FROM tab2
----
-1034
-1034
-1034

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1123
SELECT col2 / 78 - + 94 * 11 col1 FROM tab2
----
-1034
-1034
-1034

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL MIN( ALL - 90 ) + 11 AS col1 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL MIN ( ALL - 90 ) + 11 AS col1 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT col2 * + col0 - - 41 * col0 AS col1 FROM tab0 AS cor0
----
1320
13580
4437

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) <> ( 84 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <> ( NULL )
----

query I rowsort
SELECT - + 34 + - 28 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT ( 81 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 71 + + col0 * - col2 FROM tab1 AS cor0
----
-4825
-4944
-6117

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

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

query I rowsort
SELECT ( 65 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 58 * col0 AND col2
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE ( + col2 ) NOT IN ( - col2 * - col2 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT ( + ( MIN( - col0 ) ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT ( + ( MIN ( - col0 ) ) ) AS col2 FROM tab2
----
-75

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

query I rowsort
SELECT ALL - 69 * - - col1 AS col2 FROM tab1
----
-3243
-345
-966

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

query I rowsort
SELECT ALL + 43 AS col0 FROM tab0
----
43
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - CAST( NULL AS SIGNED ) NOT IN ( 37 * + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - CAST ( NULL AS INTEGER ) NOT IN ( 37 * + 15 )
----
0

query I rowsort
SELECT - col1 * col1 * + col2 AS col2 FROM tab2 cor0
----
-237160
-260362
-59823

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - CAST ( + 62 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT + COUNT( ALL - 23 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + COUNT ( ALL - 23 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - SUM( ALL col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1145
SELECT - SUM ( ALL col1 ) FROM tab2
----
-195

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( + 55 ) * col0 BETWEEN NULL AND + col2 * - col1
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1151
SELECT + + ( - COUNT ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT + 90 * + COUNT( + col2 ) + COUNT( * ) FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + 90 * + COUNT ( + col2 ) + COUNT ( * ) FROM tab2 cor0
----
273

query I rowsort
SELECT col1 + + 45 AS col0 FROM tab2 AS cor0
----
112
122
96

query I rowsort
SELECT ALL - - 65 + + + ( + col0 ) FROM tab0 AS cor0
----
152
162
80

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

query I rowsort
SELECT col1 + + col1 AS col2 FROM tab2 AS cor0 WHERE + 47 / 50 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1157
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN 63 AND - 79
----

skipif mysql # not compatible
query III rowsort label-1157
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN 63 AND - 79
----

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

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 33 + + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL - col1 + 50 FROM tab2 AS cor0
----
-1
-17
-27

query I rowsort
SELECT + 42 + col0 AS col2 FROM tab1 AS cor0
----
127
133
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1161
SELECT DISTINCT + + col0 + + + 49 + CAST( col1 AS SIGNED ) + 25 DIV col0 * 79 FROM tab1 AS cor0
----
114
139
187

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + + col0 + + + 49 + CAST ( col1 AS INTEGER ) + 25 / col0 * 79 FROM tab1 AS cor0
----
114
139
187

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT 20 * - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT 20 * - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-180

query I rowsort
SELECT ALL - col0 * col0 FROM tab2 WHERE NOT ( 73 - + 92 ) IS NULL
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * 89 AS col0, 87 col2 FROM tab2
----
2047
87
3560
87
5162
87

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 18 + - 50
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT 85 DIV - 73 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1170
SELECT 85 / - 73 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - ( - 51 ) FROM tab2 WHERE - 42 BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) + 94 - col0 AS col2 FROM tab1
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + col1 AND NULL
----
3

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

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

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

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

query I rowsort
SELECT DISTINCT + 14 FROM tab2 cor0
----
14

query I rowsort
SELECT + 53 * + col1 + ( col1 ) FROM tab0 AS cor0
----
1134
4374
54

query I rowsort
SELECT DISTINCT - col0 * + - col1 FROM tab2 cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 >= + + col2 / 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT DISTINCT CAST( 25 AS SIGNED ) * - + col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT CAST ( 25 AS INTEGER ) * - + col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT 30 * + COUNT ( * ) + - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) * + - 70 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 12 * + + col1 FROM tab1 cor0
----
-168
-564
-60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 - - 67, + 23 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT DISTINCT - - ( + - col0 ) DIV + ( - 41 ) AS col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - - ( + - col0 ) / + ( - 41 ) AS col2 FROM tab0 AS cor0
----
0
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL - SUM( col2 ) - + COUNT( * ) FROM tab1 WHERE - - 12 >= ( + - col0 + + 50 )
----
-226

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL - SUM ( col2 ) - + COUNT ( * ) FROM tab1 WHERE - - 12 >= ( + - col0 + + 50 )
----
-226

query III rowsort
SELECT - col1 AS col2, - col1, + 51 AS col0 FROM tab0
----
9 values hashing to 6bc9e675af93a8919c63e095a0de8821

query II rowsort
SELECT + col1 AS col1, col0 * - col2 FROM tab1
----
14
-4896
47
-6188
5
-5015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1191
SELECT - col0, - 88 - + ( col2 ) + col1 / - - CAST( NULL AS SIGNED ) + col2 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-1191
SELECT - col0, - 88 - + ( col2 ) + col1 / - - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT ALL 42 AS col1, + MAX( DISTINCT - 55 ) AS col0 FROM tab0
----
42
-55

skipif mysql # not compatible
query II rowsort label-1192
SELECT ALL 42 AS col1, + MAX ( DISTINCT - 55 ) AS col0 FROM tab0
----
42
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT + col1 DIV + + col2 * - 9 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT + col1 / + + col2 * - 9 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 + - col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 89 >= ( col1 + + 64 )
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-1195
SELECT col1, - col1 DIV - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-1195
SELECT col1, - col1 / - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 15 + - 84 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - 35 * + 97 AS col0 FROM tab1 AS cor0 WHERE 81 * + - col0 IN ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 + CAST( NULL AS SIGNED ) * + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 + CAST ( NULL AS INTEGER ) * + 61 )
----
NULL

query I rowsort
SELECT + col1 + 70 AS col0 FROM tab0
----
151
71
91

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

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - ( MIN ( + + 67 ) ) AS col0 FROM tab2
----
-67

query II rowsort
SELECT ALL col1 AS col1, + col2 * + - col2 AS col1 FROM tab2
----
51
-529
67
-3364
77
-1600

query I rowsort
SELECT + col1 + + + col1 AS col0 FROM tab0
----
162
2
42

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

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

query I rowsort
SELECT col1 + 22 + + col2 - - ( + - col2 ) AS col2 FROM tab1 cor0
----
27
36
69

query II rowsort
SELECT - col2 AS col0, col0 + col0 - - 50 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 - - col1 + - 17 FROM tab0 AS cor0
----
-113
-83
49

query I rowsort
SELECT ALL - + 9 - + - 35 AS col0 FROM tab2 AS cor0
----
26
26
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT - MAX( 16 ) AS col0 FROM tab1 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) = + 88 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT - MAX ( 16 ) AS col0 FROM tab1 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) = + 88 + + 89
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1212
SELECT - + COUNT ( * ) / + - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - 13 * - + col1 FROM tab0 AS cor0
----
1053
13
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT + col0 * CAST( + col1 AS SIGNED ) + + ( + col0 ) + + col1 + col1 * col2 * - col0 FROM tab2 AS cor0
----
-192051
-286283
-51515

skipif mysql # not compatible
query I rowsort label-1214
SELECT + col0 * CAST ( + col1 AS INTEGER ) + + ( + col0 ) + + col1 + col1 * col2 * - col0 FROM tab2 AS cor0
----
-192051
-286283
-51515

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1217
SELECT DISTINCT - 55 DIV CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT - 55 / CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT ALL ( ( 19 ) ) DIV + 35 * + 53 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL ( ( 19 ) ) / + 35 * + 53 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab0 AS cor0 WHERE col2 + - 64 BETWEEN 72 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + 22 * + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 + + - 57 * + + col0 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT + COUNT( DISTINCT - - 15 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + COUNT ( DISTINCT - - 15 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1227
SELECT 43, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
43
NULL
43
NULL
43
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1229
SELECT DISTINCT + col1 DIV - col1 AS col1, + col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-1229
SELECT DISTINCT + col1 / - col1 AS col1, + col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 83 FROM tab2 cor0
----
134
150
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL - MAX( DISTINCT - 70 ) col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1232
SELECT ALL - MAX ( DISTINCT - 70 ) col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 42 * + 5 * + 36 + - COUNT( - - 94 ) AS col2 FROM tab2 AS cor0
----
7557

skipif mysql # not compatible
query I rowsort label-1233
SELECT 42 * + 5 * + 36 + - COUNT ( - - 94 ) AS col2 FROM tab2 AS cor0
----
7557

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE 37 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-187
-2224
-9898

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= ( NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT MIN( - 62 ) AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1240
SELECT MIN ( - 62 ) AS col1 FROM tab0
----
-62

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

query I rowsort
SELECT + 72 * - - col2 FROM tab1
----
4248
4896
6912

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

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

query II rowsort
SELECT ALL + + col0 * - + ( - col2 ) + - col0 * + col2, + 5 + col0 AS col2 FROM tab2 AS cor0
----
0
51
0
69
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT MIN( + col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1246
SELECT MIN ( + col1 ) col1 FROM tab1
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - + COUNT( DISTINCT + 93 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1248
SELECT - + COUNT ( DISTINCT + 93 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT - col0 - - col1, 73 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * 5 + 60 * + + col1 FROM tab1 AS cor0 WHERE NOT + 72 * col2 + + 28 > NULL
----

query I rowsort
SELECT - 96 * - col0 FROM tab2 AS cor0
----
4416
6144
7200

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= 64 * - 40 * col2 * - ( + 6 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col1, + col0 )
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT + - ( + 51 ) DIV 51 col1, + col2 DIV 97 AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT 67 NOT IN ( + 55 * - col2, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT 67 NOT IN ( + 55 * - col2, - col0 )
----
0

query I rowsort
SELECT + 82 * col0 FROM tab1
----
4182
6970
7462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1261
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col1, 6 AS col0 FROM tab2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-1261
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col1, 6 AS col0 FROM tab2
----
NULL
6

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

query I rowsort
SELECT ALL + 51 * - + 51 AS col0 FROM tab2
----
-2601
-2601
-2601

query III rowsort
SELECT * FROM tab2 WHERE NOT - 64 * - col1 IN ( - + 68 - + - col0 * col1, col2 * - ( - 24 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 14 * + col0 FROM tab2
----
1050
644
896

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1267
SELECT DISTINCT COUNT( + + CAST( NULL AS SIGNED ) ) DIV ( - 27 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT COUNT ( + + CAST ( NULL AS INTEGER ) ) / ( - 27 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL MAX( - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL MAX ( - col2 ) AS col0 FROM tab0 cor0
----
-10

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

query I rowsort
SELECT - 32 * + col0 + 48 + + col0 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
-1423
-2523
-2658

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1274
SELECT - ( + CAST( - - 15 AS SIGNED ) ), + col1 col0 FROM tab0 AS cor0
----
-15
1
-15
21
-15
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1274
SELECT - ( + CAST ( - - 15 AS INTEGER ) ), + col1 col0 FROM tab0 AS cor0
----
-15
1
-15
21
-15
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + 89, COUNT( * ) + 26 AS col0 FROM tab2 AS cor0
----
89
29

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 89, COUNT ( * ) + 26 AS col0 FROM tab2 AS cor0
----
89
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT COUNT( * ) - + 90 DIV MIN( ALL - 74 ) + + - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT COUNT ( * ) - + 90 / MIN ( ALL - 74 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 + - + 93 * - col0 + + 99 col2 FROM tab2 AS cor0
----
4422
6096
7119

query I rowsort
SELECT - + col2 - 31 AS col1 FROM tab0 cor0
----
-130
-41
-78

query I rowsort
SELECT col0 - - 52 + - col0 AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - col0 + 97 FROM tab1 AS cor0
----
12
46
6

query I rowsort
SELECT col0 + + + col0 + col0 - + + ( - ( + col0 ) ) * + + col0 + + 55 + col2 * - + col1 * + - col1 FROM tab0 AS cor0
----
12295
308692
9854

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT ALL COUNT( * ) col0, + 91 col1 FROM tab1
----
3
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT ALL + col1 DIV 19 - - col1 AS col2 FROM tab1
----
14
49
5

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + col1 / 19 - - col1 AS col2 FROM tab1
----
14
49
5

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

query I rowsort
SELECT ALL ( + col1 ) * 89 FROM tab0
----
1869
7209
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * col2 + + col1 + - 72 col1 FROM tab2 WHERE NULL NOT BETWEEN col2 * - 87 * 9 + col0 + + + col0 * col0 AND 83 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, ( + col2 ) + + - col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT ALL + + col1 + + col1 * + col1 FROM tab1 AS cor0
----
210
2256
30

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

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

skipif mysql # not compatible
query II rowsort label-1292
SELECT DISTINCT COUNT ( ALL + + col1 ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT col1 AS col2, - 30 FROM tab2 AS cor0
----
51
-30
67
-30
77
-30

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab1 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( col1 = + 98 * - - 76 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL COUNT( * ) * + - 52 AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL COUNT ( * ) * + - 52 AS col0 FROM tab0
----
-156

query I rowsort
SELECT ALL - col1 * col0 FROM tab0 cor0 WHERE NOT - 37 IS NULL
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 BETWEEN col2 AND - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT - 57 * 61 * COUNT( * ) * - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
31293

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 57 * 61 * COUNT ( * ) * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
31293

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL - ( + SUM( ALL - col2 ) ) * - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
2007

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - ( + SUM ( ALL - col2 ) ) * - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
2007

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) <> NULL
----

query I rowsort
SELECT col1 * + 12 + col0 AS col0 FROM tab1 AS cor0
----
145
219
655

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 20 * col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT ALL - MAX( - col2 ) * + - MIN( - col1 ), 42 AS col1 FROM tab0
----
810
42

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL - MAX ( - col2 ) * + - MIN ( - col1 ), 42 AS col1 FROM tab0
----
810
42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT DISTINCT + 64 DIV - - col1 FROM tab0
----
0
3
64

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + 64 / - - col1 FROM tab0
----
0
3
64

query I rowsort
SELECT ALL col2 + - 30 AS col1 FROM tab1
----
29
38
66

query I rowsort
SELECT DISTINCT col0 + + 41 FROM tab1
----
126
132
92

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 42 col2 FROM tab1 AS cor0
----
-2142
-3570
-3822

query III rowsort
SELECT * FROM tab2 WHERE 70 + col0 + - - col2 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1316
SELECT ALL 12 + + - COUNT( * ) * COUNT( * ) + + - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL 12 + + - COUNT ( * ) * COUNT ( * ) + + - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
2

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

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

query I rowsort
SELECT ALL + col2 * col0 + + - col0 + - + 79 + 58 FROM tab1 AS cor0
----
4824
4909
6076

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + 74 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1321
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 21 < + + CAST( NULL AS SIGNED ) * - 24 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-1321
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 21 < + + CAST ( NULL AS INTEGER ) * - 24 * - col1 )
----

query I rowsort
SELECT ALL 15 FROM tab1 AS cor0 WHERE ( - col1 IS NULL )
----

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

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

query I rowsort
SELECT DISTINCT - 58 - col2 AS col0 FROM tab0
----
-105
-157
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT DISTINCT 18 - col2 + + + col0 DIV + + 51 FROM tab0
----
-29
-80
9

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT 18 - col2 + + + col0 / + + 51 FROM tab0
----
-29
-80
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT + 64 * ( - col0 ) DIV + 65 FROM tab2
----
-45
-63
-73

skipif mysql # not compatible
query I rowsort label-1328
SELECT + 64 * ( - col0 ) / + 65 FROM tab2
----
-45
-63
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1329
SELECT ALL col0 * + - CAST( + + 49 AS SIGNED ), - col0 * 89 AS col1 FROM tab0
----
-4263
-7743
-4753
-8633
-735
-1335

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL col0 * + - CAST ( + + 49 AS INTEGER ), - col0 * 89 AS col1 FROM tab0
----
-4263
-7743
-4753
-8633
-735
-1335

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1331
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1331
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 - + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT ALL + 54 AS col1, - MAX( - col2 ) FROM tab2
----
54
23

skipif mysql # not compatible
query II rowsort label-1332
SELECT ALL + 54 AS col1, - MAX ( - col2 ) FROM tab2
----
54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT SUM( DISTINCT - ( - 74 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-1333
SELECT SUM ( DISTINCT - ( - 74 ) ) FROM tab2
----
74

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

query I rowsort
SELECT col1 * - + 68 + - 30 FROM tab0 AS cor0
----
-1458
-5538
-98

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

query I rowsort
SELECT ALL - 30 * 85 FROM tab1
----
-2550
-2550
-2550

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1338
SELECT COUNT ( * ) * - 17 col2 FROM tab1
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT ALL col0 DIV col0 + + col1 AS col0 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL col0 / col0 + + col1 AS col0 FROM tab0
----
2
22
82

query I rowsort
SELECT ALL + ( - 63 ) AS col0 FROM tab0
----
-63
-63
-63

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

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

query I rowsort
SELECT 20 + col0 AS col2 FROM tab0 AS cor0
----
107
117
35

query II rowsort
SELECT ALL + col2 AS col0, + 32 / + col2 AS col1 FROM tab2 cor0 WHERE ( NOT ( + col1 ) NOT IN ( col2 - col0 ) )
----

query I rowsort
SELECT col0 * - 28 AS col1 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT ALL - col0 + + 12 * col1 FROM tab0 cor0
----
-85
165
957

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

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

query I rowsort
SELECT 6 - ( - 80 ) + - col2 FROM tab2 AS cor0
----
28
46
63

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT DISTINCT + + 89 + + 87 * - - 52 + + - ( CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
4536
4546
4562

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + + 89 + + 87 * - - 52 + + - ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
4536
4546
4562

query I rowsort
SELECT - 28 - + + col0 * - col1 + - - col0 AS col0 FROM tab1 AS cor0
----
4340
482
737

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL - 47 - - COUNT( * ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - 47 - - COUNT ( * ) FROM tab2
----
-44

query I rowsort
SELECT DISTINCT ( + + 40 ) FROM tab0
----
40

query I rowsort
SELECT ALL col1 * + - col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - COUNT( * ) * - + MAX( ALL - 2 ) col2 FROM tab0
----
-6

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

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

query I rowsort
SELECT DISTINCT - 52 * - 79 AS col1 FROM tab2
----
4108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-46
-64
-75

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

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

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

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

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

query I rowsort
SELECT + 43 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
43
43
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL + ( - MAX( - col1 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + ( - MAX ( - col1 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col0 FROM tab2 AS cor0 WHERE NOT - 17 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - - COUNT( * ) col1 FROM tab2 WHERE + - 21 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1371
SELECT - - COUNT ( * ) col1 FROM tab2 WHERE + - 21 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL MAX( DISTINCT - 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL MAX ( DISTINCT - 64 ) FROM tab0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT + col1 * + CAST( + col1 AS SIGNED ) col0 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1373
SELECT + col1 * + CAST ( + col1 AS INTEGER ) col0 FROM tab2
----
2601
4489
5929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL - SUM( DISTINCT 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - SUM ( DISTINCT 90 ) FROM tab1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT 62 DIV MIN( DISTINCT - col1 ) + + COUNT( * ) * + 34 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT 62 / MIN ( DISTINCT - col1 ) + + COUNT ( * ) * + 34 FROM tab0
----
102

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1380
SELECT - CAST( NULL AS SIGNED ) AS col0, - COUNT( + 90 ) FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1380
SELECT - CAST ( NULL AS INTEGER ) AS col0, - COUNT ( + 90 ) FROM tab0 AS cor0
----
NULL
-3

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

query I rowsort
SELECT col1 + ( + + 2 ) FROM tab0
----
23
3
83

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL <= 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE col2 * - col1 * - + 7 * 65 + - col1 NOT BETWEEN - col0 / + - 81 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1384
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE col2 * - col1 * - + 7 * 65 + - col1 NOT BETWEEN - col0 / + - 81 AND NULL
----
0

query I rowsort
SELECT DISTINCT 90 + 34 AS col0 FROM tab0 AS cor0
----
124

query I rowsort
SELECT DISTINCT - 87 * col1 + col0 * - 84 AS col0 FROM tab1 AS cor0
----
-11733
-5502
-7575

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT + COUNT ( ALL + + CAST ( + - col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 28 + col1 col1 FROM tab0 AS cor0
----
2457
2717
501

query I rowsort
SELECT - - col0 + 40 + + col1 / + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 47 AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1390
SELECT ALL - ( - 80 ) DIV - SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - ( - 80 ) / - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - col2 - col1 FROM tab0 AS cor0
----
2128
79
9800

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

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

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

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

query II rowsort
SELECT - col0 AS col0, - col2 * + col0 FROM tab1
----
-51
-4896
-85
-5015
-91
-6188

query II rowsort
SELECT + col1 AS col1, + col0 * col0 * - 97 FROM tab1
----
14
-252297
47
-803257
5
-700825

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

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

query I rowsort
SELECT ALL 38 * - + 31 AS col2 FROM tab1
----
-1178
-1178
-1178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - MAX( + col0 ) * - - 92 AS col1 FROM tab0
----
-8924

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - MAX ( + col0 ) * - - 92 AS col1 FROM tab0
----
-8924

query I rowsort
SELECT 68 * 68 AS col1 FROM tab0 AS cor0
----
4624
4624
4624

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT DISTINCT + + col0 DIV - 40 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + + col0 / - 40 FROM tab2 cor0
----
-1

query I rowsort
SELECT 87 * - + 2 + - col2 * 35 + + col0 AS col2 FROM tab2 AS cor0
----
-1510
-2129
-933

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL + 65 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 65 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-195

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1406
SELECT + 89 DIV CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1406
SELECT + 89 / CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT ALL - col2 * - col0 DIV + ( + col0 ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - col2 * - col0 / + ( + col0 ) FROM tab1
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT SUM ( ALL - + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT 55 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 64, + 4 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 - + + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + SUM( - + 64 ) FROM tab0 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1411
SELECT + SUM ( - + 64 ) FROM tab0 cor0
----
-192

query I rowsort
SELECT DISTINCT + + 83 + + col0 FROM tab1 cor0
----
134
168
174

query I rowsort
SELECT ALL - col0 + - 79 AS col0 FROM tab1 AS cor0
----
-130
-164
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-1414
SELECT - 82 * - + COUNT( * ) AS col1, + 42 FROM tab2 AS cor0
----
246
42

skipif mysql # not compatible
query II rowsort label-1414
SELECT - 82 * - + COUNT ( * ) AS col1, + 42 FROM tab2 AS cor0
----
246
42

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

query I rowsort
SELECT + col1 * + + 79 AS col2 FROM tab0
----
1659
6399
79

query II rowsort
SELECT DISTINCT - 35 + + + ( + - col0 ) AS col1, - 45 * 54 FROM tab0
----
-122
-2430
-132
-2430
-50
-2430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - COUNT( * ) + 98 AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-1419
SELECT - COUNT ( * ) + 98 AS col2 FROM tab1
----
95

query III rowsort
SELECT * FROM tab1 WHERE NULL = + 3
----

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

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

query I rowsort
SELECT 12 + - - col2 FROM tab2
----
35
52
70

query I rowsort
SELECT 62 + - 4 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT ALL - MAX( DISTINCT - - col0 ) + - - 46, COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-51
9

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL - MAX ( DISTINCT - - col0 ) + - - 46, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-51
9

query I rowsort
SELECT ALL + + col1 + + - 99 FROM tab2 AS cor0
----
-22
-32
-48

query I rowsort
SELECT DISTINCT - 91 + + 69 + + col1 + + col0 FROM tab1 AS cor0
----
116
43
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - + col0 OR - 19 IS NULL
----

query II rowsort
SELECT - + col1 * + + col1 + 47 + - - col0 * 51 * + col0 * + ( col1 ) AS col2, col1 AS col2 FROM tab0 cor0
----
479905
1
8106005
21
922961
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT 28 + - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT 28 + - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
25

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

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + MIN ( + + col0 ) - + MIN ( - col2 ) FROM tab0
----
114

query I rowsort
SELECT - col0 - - 8 + + - col1 * + + col2 FROM tab0
----
-188
-289
-3814

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

query I rowsort
SELECT + + 0 * + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT - + MAX( DISTINCT 34 ) FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1434
SELECT - + MAX ( DISTINCT 34 ) FROM tab0 cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT MIN( DISTINCT - 1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 41 >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT MIN ( DISTINCT - 1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 41 >= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + COUNT( * ) * - + 75 + - - COUNT( * ) AS col1 FROM tab1 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1436
SELECT + COUNT ( * ) * - + 75 + - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-222

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

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL + 16, ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
16
3

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

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

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

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

query I rowsort
SELECT ALL - ( - ( ( + - 41 ) ) ) AS col2 FROM tab0 AS cor0
----
-41
-41
-41

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

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

query I rowsort
SELECT ALL col1 * + 29 FROM tab0
----
2349
29
609

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0, + 62, + col0 )
----

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

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

query II rowsort
SELECT ALL - col1 * - + col2, 90 + ( - + col0 ) AS col1 FROM tab2
----
1173
44
3080
26
3886
15

query I rowsort
SELECT DISTINCT 86 * col0 FROM tab2
----
3956
5504
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL COUNT( * ) * - MAX( + col0 ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL COUNT ( * ) * - MAX ( + col0 ) AS col1 FROM tab2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT - col1 DIV - ( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - col1 / - ( - col0 ) FROM tab1
----
0

query I rowsort
SELECT - col0 * - col2 * - 77 FROM tab0 AS cor0
----
-54285
-66990
-739431

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT MIN( - ( - 57 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT MIN ( - ( - 57 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1454
SELECT DISTINCT CAST( 65 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT CAST ( 65 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

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

skipif mysql # not compatible
query I rowsort label-1455
SELECT MAX ( ALL col0 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL + - col2 * + 89 * + 67 AS col2 FROM tab1 cor0
----
-351817
-405484
-572448

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

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL col2 / - - col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

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

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

query I rowsort
SELECT - 12 * - col1 AS col0 FROM tab1
----
168
564
60

query I rowsort
SELECT 35 * - col1 FROM tab2
----
-1785
-2345
-2695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT DISTINCT + COUNT( ALL col0 ) DIV 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT + COUNT ( ALL col0 ) / 98 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + + + 40 + + 14 * - col1 * + col2 FROM tab0
----
-1249
-2813
-53243

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1464
SELECT ALL * FROM tab0 WHERE NOT + CAST( + 10 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1464
SELECT ALL * FROM tab0 WHERE NOT + CAST ( + 10 AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1465
SELECT ALL - 24 DIV 35 AS col0, + col1 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-1465
SELECT ALL - 24 / 35 AS col0, + col1 FROM tab0
----
0
1
0
21
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + col0 + 7 + 70 + 87 * col1 col0 FROM tab2
----
2095
3387
3760

query I rowsort
SELECT - - 17 - - - col2 + + + col0 FROM tab0 AS cor0
----
-15
15
94

query I rowsort
SELECT + - 9 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT ALL + 40 DIV - + MIN( DISTINCT col1 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + 40 / - + MIN ( DISTINCT col1 ) FROM tab0
----
-40

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

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

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

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 WHERE col1 * + col2 >= NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 73 IS NOT NULL )
----

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

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

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

query II rowsort
SELECT + col1, col2 + + col2 FROM tab2
----
51
46
67
116
77
80

query II rowsort
SELECT + 14 AS col2, - col1 - - col0 FROM tab1
----
14
37
14
44
14
80

onlyif mysql # aggregate syntax: 
query III rowsort label-1480
SELECT DISTINCT 92 AS col0, 78 AS col1, - COUNT( - - 89 ) FROM tab2
----
92
78
-3

skipif mysql # not compatible
query III rowsort label-1480
SELECT DISTINCT 92 AS col0, 78 AS col1, - COUNT ( - - 89 ) FROM tab2
----
92
78
-3

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

query I rowsort
SELECT col1 + 33 AS col1 FROM tab0
----
114
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT - col2 DIV - 69 FROM tab0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT - col2 / - 69 FROM tab0 WHERE NULL IS NULL
----
0
0
1

query I rowsort
SELECT DISTINCT + 55 + - col0 * + col1 FROM tab0 AS cor0
----
-1160
-1772
-42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT + 12 - - + COUNT( * ) DIV + 35 FROM tab1 AS cor0
----
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95, 11 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + + 63 ) * - - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1488
SELECT + 17 + + SUM( DISTINCT col1 ) * COUNT( - col0 ) AS col0, - 55 FROM tab0 AS cor0
----
326
-55

skipif mysql # not compatible
query II rowsort label-1488
SELECT + 17 + + SUM ( DISTINCT col1 ) * COUNT ( - col0 ) AS col0, - 55 FROM tab0 AS cor0
----
326
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT ALL - 96 + ( - col1 ) DIV + + col1 col2 FROM tab2 AS cor0
----
-97
-97
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 - - + 12 * + 43 * + + 11 + col0 col0 FROM tab2
----
1865
2660
4549

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE col0 + 39 * col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1492
SELECT DISTINCT ( - COUNT( * ) ) DIV - 90 AS col1, + COUNT( * ) * + 63 FROM tab1
----
0
189

skipif mysql # not compatible
query II rowsort label-1492
SELECT DISTINCT ( - COUNT ( * ) ) / - 90 AS col1, + COUNT ( * ) * + 63 FROM tab1
----
0
189

query II rowsort
SELECT 32 + + col1 + + col1, 98 * + col0 AS col2 FROM tab1
----
126
8918
42
8330
60
4998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL col0 - 23 + - 82 * + 3 * ( - - 1 ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL col0 - 23 + - 82 * + 3 * ( - - 1 ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE ( - col1 - col0 - + + col2 + + + 76 * + 40 * col0 ) >= - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1497
SELECT CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE ( - col1 - col0 - + + col2 + + + 76 * + 40 * col0 ) >= - col2
----
-15
-87
-97

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

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

query I rowsort
SELECT ALL + - 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1502
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - - 68 + - COUNT( * ) - MIN( ALL - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - - 68 + - COUNT ( * ) - MIN ( ALL - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 58 * 44 AS col2 FROM tab0 AS cor0
----
2552
2552
2552

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 68 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col1, col2 + - 69 * col1 * - 86, + ( - 52 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 11 IN ( - 90 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1509
SELECT + - CAST( col1 AS SIGNED ), col0 * - - ( + col0 ) AS col0 FROM tab0 WHERE NOT - col1 IS NULL AND NULL IN ( - col0, col2 * col0 * - 37, CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query II rowsort label-1509
SELECT + - CAST ( col1 AS INTEGER ), col0 * - - ( + col0 ) AS col0 FROM tab0 WHERE NOT - col1 IS NULL AND NULL IN ( - col0, col2 * col0 * - 37, CAST ( NULL AS INTEGER ), col1 )
----

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

query I rowsort
SELECT ALL - col0 + - - 22 AS col1 FROM tab0
----
-65
-75
7

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - 82 - col1 * - col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = ( + + col0 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT COUNT( * ) * 62 + 12 DIV COUNT( * ) AS col1 FROM tab2
----
190

skipif mysql # not compatible
query I rowsort label-1516
SELECT COUNT ( * ) * 62 + 12 / COUNT ( * ) AS col1 FROM tab2
----
190

query II rowsort
SELECT DISTINCT + 4 + 78, col2 FROM tab1
----
82
59
82
68
82
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 86 col2 FROM tab2 AS cor0
----
109
126
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT + - 77 + - col1 DIV - 90 FROM tab0 cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1519
SELECT + - 77 + - col1 / - 90 FROM tab0 cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 7 col2, col2 * 64 FROM tab0 AS cor0
----
7
3008
7
6336
7
640

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 + - col1 + + col0 + + col2 - + 31 + - - col1 + col0 AS col0 FROM tab2 AS cor0
----
2430
5065
5202

query I rowsort
SELECT ALL + col2 * - col0 + - 51 + col1 - - col0 AS col1 FROM tab1 cor0
----
-4882
-4976
-6101

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1526
SELECT - 14 - - CAST( + 25 AS SIGNED ), - MIN( + 83 ) AS col2 FROM tab1
----
11
-83

skipif mysql # not compatible
query II rowsort label-1526
SELECT - 14 - - CAST ( + 25 AS INTEGER ), - MIN ( + 83 ) AS col2 FROM tab1
----
11
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT 89 * COUNT( * ) * COUNT( * ) FROM tab2, tab1 cor0
----
7209

skipif mysql # not compatible
query I rowsort label-1527
SELECT 89 * COUNT ( * ) * COUNT ( * ) FROM tab2, tab1 cor0
----
7209

query I rowsort
SELECT - col0 - - - ( 60 ) * + + col0 FROM tab0
----
-5307
-5917
-915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64, 67 * col1 + + col2 col1 FROM tab0 WHERE ( 93 <= NULL )
----

query I rowsort
SELECT ALL 75 * - col1 FROM tab1 AS cor0
----
-1050
-3525
-375

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1534
SELECT + col0, 75 DIV + col0 AS col2 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-1534
SELECT + col0, 75 / + col0 AS col2 FROM tab2
----
46
1
64
1
75
1

query I rowsort
SELECT ALL 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT DISTINCT 19 DIV + + col1 + - 9 + + col2 FROM tab2 AS cor0
----
14
31
49

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT 19 / + + col1 + - 9 + + col2 FROM tab2 AS cor0
----
14
31
49

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT + - col2 * col1 * col0 + + 18 FROM tab2 AS cor0
----
-197102
-291432
-53940

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT - col0 * 71 DIV - ( + col1 ) FROM tab0
----
13
294
6887

skipif mysql # not compatible
query I rowsort label-1541
SELECT - col0 * 71 / - ( + col1 ) FROM tab0
----
13
294
6887

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT - CAST( - - CAST( - ( + + 93 ) AS SIGNED ) AS SIGNED ) FROM tab1
----
93
93
93

skipif mysql # not compatible
query I rowsort label-1543
SELECT - CAST ( - - CAST ( - ( + + 93 ) AS INTEGER ) AS INTEGER ) FROM tab1
----
93
93
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + 91 + - + 87 + col0 <> - + 49
----

query III rowsort
SELECT * FROM tab2 WHERE + - 37 NOT BETWEEN NULL AND + - col2
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT + - col1 + - 96 * - col1 FROM tab1 AS cor0
----
1330
4465
475

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT col1 DIV - col2 + col1 AS col1 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT col1 / - col2 + col1 AS col1 FROM tab0 AS cor0
----
1
19
80

query I rowsort
SELECT + 63 + + - col1 AS col2 FROM tab2 AS cor0 WHERE + ( + 36 ) + - + col0 <= - 8
----
-14
-4
12

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

query I rowsort
SELECT - 23 * - - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1352
-1517
-2194

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT + + SUM( 78 ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT + + SUM ( 78 ) FROM tab0 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT 91 + col1 DIV - - 84 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT 91 + col1 / - - 84 FROM tab0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - - col0 * + 32 * col2 * - + ( - col0 )
----

query I rowsort
SELECT 59 + - 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1557
SELECT * FROM tab2 AS cor0 WHERE NULL < + ( CAST( + ( 13 ) AS DECIMAL ) ) + col2
----

skipif mysql # not compatible
query III rowsort label-1557
SELECT * FROM tab2 AS cor0 WHERE NULL < + ( CAST ( + ( 13 ) AS REAL ) ) + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT MIN( ALL ( + 17 ) ) - MIN( ALL - col0 ) AS col2 FROM tab0 cor0
----
114

skipif mysql # not compatible
query I rowsort label-1559
SELECT MIN ( ALL ( + 17 ) ) - MIN ( ALL - col0 ) AS col2 FROM tab0 cor0
----
114

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

query I rowsort
SELECT DISTINCT - col2 + - - ( col0 ) + col0 FROM tab0 cor0
----
-17
164
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + 93 - - 52 + - 60 * + + COUNT( * ) * + - 64 FROM tab1 AS cor0
----
11665

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 93 - - 52 + - 60 * + + COUNT ( * ) * + - 64 FROM tab1 AS cor0
----
11665

query I rowsort
SELECT 96 - + col2 FROM tab0 AS cor0
----
-3
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL - + ( - COUNT( * ) ) + + + 70 AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - + ( - COUNT ( * ) ) + + + 70 AS col1 FROM tab0 AS cor0
----
73

query II rowsort
SELECT col1 + + ( col2 ) AS col1, 99 FROM tab1 AS cor0
----
110
99
115
99
64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) + + 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) + + 14 FROM tab1 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT DISTINCT + col2 + + 90 DIV - 3 AS col2 FROM tab2 AS cor0
----
-7
10
28

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT + col2 + + 90 / - 3 AS col2 FROM tab2 AS cor0
----
-7
10
28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1569
SELECT ALL CAST( + - 40 AS SIGNED ) + - col2 * ( - col0 ) AS col1 FROM tab1
----
4856
4975
6148

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL CAST ( + - 40 AS INTEGER ) + - col2 * ( - col0 ) AS col1 FROM tab1
----
4856
4975
6148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT MIN( ALL col2 ) DIV - - 3 + SUM( + col1 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-1570
SELECT MIN ( ALL col2 ) / - - 3 + SUM ( + col1 ) FROM tab0
----
106

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

query I rowsort
SELECT + col1 * - 95 FROM tab0
----
-1995
-7695
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT - 20 * MAX( + + 77 ) AS col0 FROM tab1
----
-1540

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - 20 * MAX ( + + 77 ) AS col0 FROM tab1
----
-1540

query II rowsort
SELECT ALL + col2 * + 1, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1575
SELECT DISTINCT - - COUNT( * ) col1, CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - COUNT( - col2 ) * 36 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - COUNT ( - col2 ) * 36 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT + col2 * col0 + - 78 FROM tab1 cor0
----
4818
4937
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT 31 * col1 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 31 * col1 * - col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + 59 ) * + col1, + 53 col0 FROM tab2
----
3009
53
3953
53
4543
53

query I rowsort
SELECT 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT col0 * 92 AS col0 FROM tab2
----
4232
5888
6900

query II rowsort
SELECT DISTINCT + + col2 * - + col0, 78 AS col2 FROM tab1 AS cor0
----
-4896
78
-5015
78
-6188
78

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1583
SELECT ALL col0 / + - col2 col2, col1 FROM tab1 AS cor0
----
-1
47
-1
5
0
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL = CAST( col2 AS SIGNED ) / + col1 + 88 + + 16
----

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL = CAST ( col2 AS INTEGER ) / + col1 + 88 + + 16
----

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

query I rowsort
SELECT - ( 64 ) * - 8 + - col0 + - 98 FROM tab2 AS cor0
----
339
350
368

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

query I rowsort
SELECT + col1 + 20 FROM tab2
----
71
87
97

query I rowsort
SELECT 26 * + col0 AS col1 FROM tab2
----
1196
1664
1950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + SUM( DISTINCT + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1591
SELECT + SUM ( DISTINCT + 45 ) FROM tab2
----
45

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

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

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

query II rowsort
SELECT col0, col1 - - 44 AS col1 FROM tab0 AS cor0
----
15
125
87
65
97
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + 11 * + COUNT( - 68 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-1596
SELECT + 11 * + COUNT ( - 68 ) AS col0 FROM tab1
----
33

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) + - col0 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IN ( ( col0 ) + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IN ( ( col0 ) + 4 )
----
0

query I rowsort
SELECT ALL col1 * 0 AS col2 FROM tab2 WHERE - 23 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT 97 * - SUM( DISTINCT + col1 ) AS col0 FROM tab0
----
-9991

skipif mysql # not compatible
query I rowsort label-1600
SELECT 97 * - SUM ( DISTINCT + col1 ) AS col0 FROM tab0
----
-9991

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab2 WHERE NULL IS NULL
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 80 ) IS NULL
----

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

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

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

query I rowsort
SELECT - 70 + + 95 * 80 FROM tab0
----
7530
7530
7530

query I rowsort
SELECT DISTINCT col0 * 20 AS col0 FROM tab2
----
1280
1500
920

query I rowsort
SELECT DISTINCT col1 * + 62 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - COUNT( * ) + SUM( col2 ) AS col1 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-1608
SELECT - COUNT ( * ) + SUM ( col2 ) AS col1 FROM tab2
----
118

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

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col1 + + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col0 FROM tab0 WHERE NOT col1 = + 26
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT COUNT( * ) * - 25 AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT COUNT ( * ) * - 25 AS col0 FROM tab0
----
-75

query III rowsort
SELECT * FROM tab0 WHERE + 20 = - 66
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT - 84 DIV + 82 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1615
SELECT - 84 / + 82 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + - ( + col0 + + col0 * - col2 ) NOT BETWEEN NULL AND ( col0 / - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT DISTINCT + col1 DIV + 65 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + col1 / + 65 AS col2 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL + 9 + - MAX( DISTINCT - col0 + + col0 * - 22 ) AS col0 FROM tab1
----
1182

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + 9 + - MAX ( DISTINCT - col0 + + col0 * - 22 ) AS col0 FROM tab1
----
1182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT + 50 + + 12 * + 31 AS col2 FROM tab2 WHERE ( - 19 + - col2 * col0 ) IN ( CAST( NULL AS SIGNED ) + 25 * 83 )
----

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + 50 + + 12 * + 31 AS col2 FROM tab2 WHERE ( - 19 + - col2 * col0 ) IN ( CAST ( NULL AS INTEGER ) + 25 * 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT ALL col0 DIV 67 - - col2 AS col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL col0 / 67 - - col2 AS col2 FROM tab1
----
60
69
96

query I rowsort
SELECT - col2 * col0 + col1 AS col0 FROM tab0 WHERE - col0 * - col1 + ( 77 ) IN ( - col2 * + 12 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 47 + - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1623
SELECT 65 col1 FROM tab1 WHERE NOT CAST( 91 AS DECIMAL ) + col1 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1623
SELECT 65 col1 FROM tab1 WHERE NOT CAST ( 91 AS REAL ) + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 93 * 45 FROM tab0 WHERE NOT ( col2 ) * col0 BETWEEN col1 * + col2 AND col0 + - ( col2 ) * 34
----
4185
4185
4185

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 31 - COUNT( * ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-1625
SELECT 31 - COUNT ( * ) AS col2 FROM tab1
----
28

query I rowsort
SELECT DISTINCT col0 + 83 FROM tab0
----
170
180
98

query I rowsort
SELECT ALL - col1 * + col0 FROM tab1 AS cor0 WHERE NOT - 5 * + col1 + + 72 <= ( - ( col2 ) )
----
-425
-714

query I rowsort
SELECT 80 * - ( col1 ) AS col2 FROM tab2 cor0
----
-4080
-5360
-6160

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT ALL CAST( + 65 AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL CAST ( + 65 AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT ALL + CAST( AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT DISTINCT + 76 + + 0 * + COUNT( * ) col0 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1633
SELECT DISTINCT + 76 + + 0 * + COUNT ( * ) col0 FROM tab2
----
76

query I rowsort
SELECT ALL 52 + + col0 AS col2 FROM tab1 AS cor0
----
103
137
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1635
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT ( 86 - col2 ) NOT IN ( + CAST( + col2 AS SIGNED ) * col0 + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( 86 - col2 ) NOT IN ( + CAST ( + col2 AS INTEGER ) * col0 + 64 )
----
0

query I rowsort
SELECT - ( 49 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52
----
46

skipif mysql # not compatible
query I rowsort label-1637
SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52
----
46

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

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

query I rowsort
SELECT + + col2 * + 17 FROM tab2 AS cor0
----
391
680
986

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT ALL 51 + 99 DIV ( col2 * col1 ) AS col0 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL 51 + 99 / ( col2 * col1 ) AS col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT DISTINCT 98 DIV + + col1 AS col1 FROM tab0
----
1
4
98

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT 98 / + + col1 AS col1 FROM tab0
----
1
4
98

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

skipif mysql # not compatible
query I rowsort label-1643
SELECT col2 / + - col0 * col0 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1644
SELECT 15 * ( MIN ( DISTINCT - col0 ) ) col0 FROM tab0
----
-1455

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT - MAX( + + 1 ) / MAX( ( - CAST( NULL AS DECIMAL ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT - MAX ( + + 1 ) / MAX ( ( - CAST ( NULL AS REAL ) ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col1 = + col0
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1648
SELECT ALL COUNT( - col0 ) DIV + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( - col0 ) / + COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + ( - MIN( DISTINCT 97 ) ) AS col1 FROM tab1 WHERE NULL BETWEEN ( - col2 * - col1 ) AND + col1 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT + ( - MIN ( DISTINCT 97 ) ) AS col1 FROM tab1 WHERE NULL BETWEEN ( - col2 * - col1 ) AND + col1 * col0
----
NULL

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

query I rowsort
SELECT DISTINCT 27 * col1 AS col0 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
1269
135
378

query I rowsort
SELECT - col1 * - 26 AS col1 FROM tab1 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ( + - col2 ) + + col1 FROM tab0
----
-98
11
34

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 52 + + col0 * + 71 ) <> - 48 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL COUNT( * ) * 61 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT ALL COUNT ( * ) * 61 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 91 col1 FROM tab0 WHERE ( + - col0 ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT ALL + COUNT( * ) + - 11 DIV 99 col2 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1662
SELECT ALL + COUNT ( * ) + - 11 / 99 col2 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

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

query II rowsort
SELECT DISTINCT - col2 AS col1, 31 + - col1 AS col1 FROM tab0 cor0
----
-10
10
-47
-50
-99
30

query I rowsort
SELECT + + 11 + - ( - 39 ) FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL col1 + 39 FROM tab0 AS cor0
----
120
40
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 * - col2 col0 FROM tab1 AS cor0
----
3363
3876
5472

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1671
SELECT ALL SUM ( + 71 ) col1 FROM tab1 AS cor0
----
213

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - SUM( ALL ( + - col2 ) ) * - 88 FROM tab2
----
-10648

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - SUM ( ALL ( + - col2 ) ) * - 88 FROM tab2
----
-10648

query II rowsort
SELECT DISTINCT - 27 * + col0 AS col2, - ( + 94 ) FROM tab2
----
-1242
-94
-1728
-94
-2025
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 94
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT - + CAST( ( - MAX( ALL + col2 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1676
SELECT - + CAST ( ( - MAX ( ALL + col2 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + MAX( ALL + col2 ) * 41 * - - COUNT( * ) FROM tab0 AS cor0
----
12177

skipif mysql # not compatible
query I rowsort label-1677
SELECT + MAX ( ALL + col2 ) * 41 * - - COUNT ( * ) FROM tab0 AS cor0
----
12177

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

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + 5 = 54 + - 57
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + + + col2 ) <= + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1682
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST( - 95 AS SIGNED ) ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1682
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST ( - 95 AS INTEGER ) ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL COUNT( * ) + 69 + - ( - 83 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
161

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL COUNT ( * ) + 69 + - ( - 83 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
161

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 97 >= NULL
----

query I rowsort
SELECT col0 + + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT + 58 + - - col2 DIV ( + 17 ) * + + col2 + - col1 FROM tab2 AS cor0
----
165
30
61

skipif mysql # not compatible
query I rowsort label-1686
SELECT + 58 + - - col2 / ( + 17 ) * + + col2 + - col1 FROM tab2 AS cor0
----
165
30
61

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
1247
3197
4011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - 53 col1 FROM tab2 AS cor0
----
-111
-76
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1688
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - 53 col1 FROM tab2 AS cor0
----
-111
-76
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT - - SUM( DISTINCT + ( 81 ) ) + 13 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - - SUM ( DISTINCT + ( 81 ) ) + 13 FROM tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT + - 90 * + col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT ALL + - 98 * COUNT( * ) + + 34 DIV - - 39 * - + 80 + 56 AS col1 FROM tab1 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + - 98 * COUNT ( * ) + + 34 / - - 39 * - + 80 + 56 AS col1 FROM tab1 AS cor0
----
-238

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

query I rowsort
SELECT DISTINCT - col1 + - 17 FROM tab0 AS cor0
----
-18
-38
-98

query I rowsort
SELECT ALL - col1 + - 5 FROM tab2
----
-56
-72
-82

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

query II rowsort
SELECT ALL + col1, + col1 * - + col0 * col0 + 82 AS col2 FROM tab2
----
51
-107834
67
-376793
77
-315310

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + SUM( ALL - 46 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-1698
SELECT + SUM ( ALL - 46 ) FROM tab0
----
-138

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT + + 62 * COUNT( ALL - 89 ) + - 45 - - - 51 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT + + 62 * COUNT ( ALL - 89 ) + - 45 - - - 51 FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL + 65 - - - col1 * + - col0 FROM tab1 cor0
----
4342
490
779

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col1 * - - 27 ) AND ( 84 + - + col2 )
----

query I rowsort
SELECT col0 * - + col1 * + - 61 + - ( col2 ) AS col2 FROM tab0
----
111437
5818
74068

query I rowsort
SELECT DISTINCT - ( + - 24 ) - + 7 FROM tab0
----
17

query I rowsort
SELECT - 81 + + 11 + + 90 * 87 AS col2 FROM tab1
----
7760
7760
7760

query I rowsort
SELECT col1 + 31 + + col0 FROM tab1
----
121
169
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + col1 ) > ( + - 97 + - 59 )
----

query I rowsort
SELECT ALL + 74 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT ALL + 46 AS col1, 92 FROM tab1 AS cor0 WHERE ( NULL IN ( + - col1 ) )
----

query I rowsort
SELECT - 58 * + 77 AS col0 FROM tab2 cor0 WHERE NOT ( + 64 + col1 IS NOT NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
-85
68
-91
96
-51

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

query II rowsort
SELECT col2, + col1 * - 93 + ( + col0 ) * + 96 AS col0 FROM tab1
----
59
7695
68
4365
96
3594

query I rowsort
SELECT 20 AS col0 FROM tab2 WHERE NOT + col1 + + 18 + col0 NOT IN ( + + 89 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + + ( 1 )
----

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

query I rowsort
SELECT - 85 * - 79 * - 69 AS col0 FROM tab0 WHERE NOT - - col0 + - col0 IS NULL
----
-463335
-463335
-463335

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL + COUNT( * ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab1
----
3
3

query II rowsort
SELECT + 4 AS col0, col2 + col0 FROM tab2
----
4
104
4
133
4
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT AVG ( ALL col1 ) + - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT AVG ( ALL col1 ) + - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT DISTINCT - - CAST( + 25 AS SIGNED ) col1 FROM tab0 AS cor0
----
25

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

query II rowsort
SELECT 69, 7 AS col2 FROM tab2 AS cor0
----
69
7
69
7
69
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL COUNT( * ) * + - 2 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT ALL COUNT ( * ) * + - 2 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-6

query II rowsort
SELECT + col1 + - 36, 40 + + 7 AS col0 FROM tab2
----
15
47
31
47
41
47

query I rowsort
SELECT ALL 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 65 * - col2 * + col1 FROM tab1
----
-19175
-207740
-87360

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

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT + - MAX ( + 96 ) FROM tab2 AS cor0
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT + - 33 * - CAST( - ( col1 ) AS SIGNED ) + - col0 + ( - col1 ) * + col0 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
-1227
-5919
-675

skipif mysql # not compatible
query I rowsort label-1733
SELECT + - 33 * - CAST ( - ( col1 ) AS INTEGER ) + - col0 + ( - col1 ) * + col0 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
-1227
-5919
-675

query I rowsort
SELECT - col2 + - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + col1 ) - 74 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + col1 ) - 74 FROM tab1
----
-24

query I rowsort
SELECT col1 * 82 + + col2 * - + col1 AS col0 FROM tab2
----
1608
3009
3234

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

query II rowsort
SELECT - col0 + + 98 * + col0 AS col2, + col2 * col2 - 37 FROM tab2
----
4462
492
6208
1563
7275
3327

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1739
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - - CAST( - + col2 AS DECIMAL ) / - - 57 NOT IN ( + col0 + + - col1 )
----

skipif mysql # not compatible
query III rowsort label-1739
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - - CAST ( - + col2 AS REAL ) / - - 57 NOT IN ( + col0 + + - col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ALL 27 * + col2 + - CAST( - 77 AS SIGNED ) FROM tab2
----
1157
1643
698

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL 27 * + col2 + - CAST ( - 77 AS INTEGER ) FROM tab2
----
1157
1643
698

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL 73 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL 73 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
70

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

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

query I rowsort
SELECT DISTINCT + - col2 + 91 + 93 * - 97 FROM tab1 AS cor0
----
-8989
-8998
-9026

query I rowsort
SELECT 39 AS col0 FROM tab0 cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT + 27 DIV - col1 col2 FROM tab0 WHERE NOT - ( col1 ) * - 7 NOT BETWEEN col2 AND + ( 55 ) * + col2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1748
SELECT + 27 / - col1 col2 FROM tab0 WHERE NOT - ( col1 ) * - 7 NOT BETWEEN col2 AND + ( 55 ) * + col2
----
-1
0

query I rowsort
SELECT ALL + 47 * - 68 FROM tab0
----
-3196
-3196
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - 80 col0 FROM tab0
----
-7920
-7920
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT CAST( 74 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT CAST ( 74 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT + col0 DIV - 88 + + - 13 * col0 * 22 AS col0 FROM tab2 AS cor0
----
-13156
-18304
-21450

skipif mysql # not compatible
query I rowsort label-1752
SELECT + col0 / - 88 + + - 13 * col0 * 22 AS col0 FROM tab2 AS cor0
----
-13156
-18304
-21450

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT + col0 * - 8 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT - col0 DIV col1 col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1754
SELECT - col0 / col1 col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT 94 * + 27 * col1 AS col1 FROM tab0 AS cor0
----
205578
2538
53298

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col0 ) * + col1 * col2 col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT 29 * - col1 * + col1 FROM tab1 AS cor0
----
-5684
-64061
-725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1759
SELECT DISTINCT - CAST( + col0 AS SIGNED ), - col0 AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

skipif mysql # not compatible
query II rowsort label-1759
SELECT DISTINCT - CAST ( + col0 AS INTEGER ), - col0 AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

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

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

query I rowsort
SELECT ALL + + ( + col1 ) FROM tab1 WHERE + + 42 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - 76 * + - 57 * col0 * - - 82 FROM tab1
----
18116424
30194040
32325384

query II rowsort
SELECT ALL - col1 * col1 * - 49 AS col1, 94 FROM tab0
----
21609
94
321489
94
49
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 99 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 99 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 11 AS col0 FROM tab0 WHERE ( NOT NULL > NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + SUM( 2 ) FROM tab2 WHERE NOT - col2 > col2
----
6

skipif mysql # not compatible
query I rowsort label-1767
SELECT + SUM ( 2 ) FROM tab2 WHERE NOT - col2 > col2
----
6

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

query I rowsort
SELECT ALL 82 * + ( ( - + col2 ) ) FROM tab1
----
-4838
-5576
-7872

query I rowsort
SELECT DISTINCT col1 * + 43 + + col2 * - 74 FROM tab0
----
-7283
163
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - 86 + + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 86 + + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL - + 29 + + + col1 AS col1 FROM tab2 AS cor0
----
22
38
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT - ( + 15 ) + COUNT( * ) DIV COUNT( * ) * 13 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1774
SELECT - ( + 15 ) + COUNT ( * ) / COUNT ( * ) * 13 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL - col0 + 75 AS col1 FROM tab0 cor0
----
-12
-22
60

query I rowsort
SELECT DISTINCT - 48 + + + 14 FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + 82 - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 82 - COUNT ( * ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT + COUNT( * ) * MIN( + + ( col2 ) ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + COUNT ( * ) * MIN ( + + ( col2 ) ) AS col2 FROM tab2
----
69

query I rowsort
SELECT ALL + 83 * - col0 FROM tab1
----
-4233
-7055
-7553

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

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

query I rowsort
SELECT - ( - - 77 ) * - - 57 + - + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-4485
-4487
-4497

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT + 20 DIV + - 56 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + 20 / + - 56 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT ALL 66 DIV - col0 FROM tab0 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL 66 / - col0 FROM tab0 cor0
----
-4
0
0

query II rowsort
SELECT ALL + + col2 AS col1, 23 FROM tab0 AS cor0
----
10
23
47
23
99
23

query I rowsort
SELECT - + col0 * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT - COUNT( + - ( - + 20 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1787
SELECT - COUNT ( + - ( - + 20 ) ) FROM tab0 cor0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT 58 DIV - COUNT( * ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-1789
SELECT 58 / - COUNT ( * ) AS col1 FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1790
SELECT DISTINCT col0 DIV + ( CAST( col2 AS SIGNED ) ), col0 DIV col1 AS col2 FROM tab1
----
0
3
1
1
1
17

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT col0 / + ( CAST ( col2 AS INTEGER ) ), col0 / col1 AS col2 FROM tab1
----
0
3
1
1
1
17

query I rowsort
SELECT ALL + 88 * + 89 * + - ( - 97 ) AS col0 FROM tab2
----
759704
759704
759704

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

query I rowsort
SELECT DISTINCT + ( - col2 ) + + + 54 FROM tab2
----
-4
14
31

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

query I rowsort
SELECT DISTINCT - 75 + + + ( + col0 ) + ( col0 ) * + col0 * 20 * - col2 + + - 52 FROM tab2 cor0
----
-3276863
-6525052
-973441

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

query I rowsort
SELECT col1 * 54 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT col0 DIV - 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT col0 / - 95 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 32 col1 FROM tab0
----
-2592
-32
-672

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

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT - - 99 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1803
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ), + ( + ( + + 90 ) ) AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1803
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ), + ( + ( + + 90 ) ) AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 59 ) + ( 3 ) col2 FROM tab0 cor0
----
62
62
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL COUNT( * ) + 55 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL COUNT ( * ) + 55 FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - + 24, col2 col2 FROM tab0 cor0
----
-14
10
23
47
75
99

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

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

query I rowsort
SELECT col2 - + 55 FROM tab1 cor0
----
13
4
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 57 ) = - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - - SUM( - col1 ) - + + COUNT( * ) FROM tab2 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1812
SELECT - - SUM ( - col1 ) - + + COUNT ( * ) FROM tab2 cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT DISTINCT - col1 * - + col2 - + col2 DIV col1 * + + 16 * + col1 AS col2 FROM tab0 AS cor0
----
-1485
210
3807

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - col1 * - + col2 - + col2 / col1 * + + 16 * + col1 AS col2 FROM tab0 AS cor0
----
-1485
210
3807

query I rowsort
SELECT + col0 * + - 85 + + col2 + - col1 * - 23 + col1 FROM tab1 AS cor0
----
-3903
-6539
-7046

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

query I rowsort
SELECT ALL 98 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT col0 * - + 76 AS col0 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT ( + - col1 ) FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT ALL + 79 AS col1, - MAX( ALL col1 ) AS col0 FROM tab2 AS cor0
----
79
-77

skipif mysql # not compatible
query II rowsort label-1819
SELECT ALL + 79 AS col1, - MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
79
-77

query II rowsort
SELECT ALL - 95, col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NOT ( NULL IS NULL )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + + COUNT( - col1 ) + - + 62 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1827
SELECT + + COUNT ( - col1 ) + - + 62 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT ( + - ( 79 ) ) AS col1 FROM tab2 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT CAST( - + ( col2 ) AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1829
SELECT CAST ( - + ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - 53 * + MAX( + col1 ) * 97 AS col2 FROM tab2
----
-395857

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - 53 * + MAX ( + col1 ) * 97 AS col2 FROM tab2
----
-395857

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1833
SELECT ALL + ( + col0 ) + + CAST( NULL AS DECIMAL ), - col2 * 0 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-1833
SELECT ALL + ( + col0 ) + + CAST ( NULL AS REAL ), - col2 * 0 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + + MAX( ( + + ( + 15 ) ) ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1834
SELECT + + MAX ( ( + + ( + 15 ) ) ) AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT + SUM( + 74 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
666

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + SUM ( + 74 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
666

query I rowsort
SELECT - col0 + - 68 + + col1 + + + col1 FROM tab1
----
-143
-65
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT col0 + col0 DIV + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1837
SELECT col0 + col0 / + col0 FROM tab2
----
47
65
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1838
SELECT - col2 DIV + - col2 - CAST( + col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-195
-61
-96

skipif mysql # not compatible
query I rowsort label-1838
SELECT - col2 / + - col2 - CAST ( + col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-195
-61
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - COUNT( * ) - + 33 FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - COUNT ( * ) - + 33 FROM tab2 cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - col0 AND + col2
----

query I rowsort
SELECT ALL 66 AS col0 FROM tab2 AS cor0 WHERE col2 + - col0 IS NOT NULL
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT COUNT( * ) + ( + 66 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT COUNT ( * ) + ( + 66 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL - col1 - + - 34 * - col2 FROM tab1 AS cor0
----
-2011
-2359
-3278

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 + - - col0 >= - + col0 + + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 47 - 33 AS col2, + col1 FROM tab2
----
-80
51
-80
67
-80
77

query I rowsort
SELECT + 62 * + 58 - + - col2 AS col0 FROM tab0
----
3606
3643
3695

query I rowsort
SELECT ALL 8 - - 68 FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - 0 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 0 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT DISTINCT + COUNT( ALL + CAST( - - col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + COUNT ( ALL + CAST ( - - col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT - 58 * - MIN( DISTINCT 14 ) col0 FROM tab2 cor0
----
812

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT - 58 * - MIN ( DISTINCT 14 ) col0 FROM tab2 cor0
----
812

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 * col1 ) NOT BETWEEN col2 AND col1 / + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + col1 BETWEEN + col1 AND + col2 * - + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, 6 AS col2 FROM tab0
----
15
6
87
6
97
6

query II rowsort
SELECT - 64 AS col2, + col2 AS col2 FROM tab0
----
-64
10
-64
47
-64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL + MIN( ALL 37 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + MIN ( ALL 37 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT ALL - 46 col0, MIN( DISTINCT col1 ) + + 46 FROM tab0 AS cor0
----
-46
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1856
SELECT ALL - 46 col0, MIN ( DISTINCT col1 ) + + 46 FROM tab0 AS cor0
----
-46
47

query I rowsort
SELECT ALL + ( - 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * 37 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - - SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - - SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT ALL 18 * - MIN( col1 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 18 * - MIN ( col1 ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ( col1 ) * + col2 - + - ( - col0 ) * - 73 AS col1 FROM tab0 AS cor0
----
4902
6561
7180

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL COUNT( * ) * 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL COUNT ( * ) * 64 FROM tab2
----
192

query II rowsort
SELECT - col2 * + col1, col0 FROM tab1
----
-1344
51
-295
85
-3196
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0 + - 56 * - 52 )
----

query I rowsort
SELECT ALL 49 AS col1 FROM tab0 WHERE + 14 <> - - col0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 39 BETWEEN + col0 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT + col0 AS col0 FROM tab0 WHERE - - 29 + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1868
SELECT + col0 AS col0 FROM tab0 WHERE - - 29 + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 37
----

query I rowsort
SELECT DISTINCT 14 - - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
19
28
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - MAX( DISTINCT col1 ) + + MIN( DISTINCT ( - col0 ) ) + + 49 AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1871
SELECT - MAX ( DISTINCT col1 ) + + MIN ( DISTINCT ( - col0 ) ) + + 49 AS col0 FROM tab0 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT + - CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT + - CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 86 + + 81 FROM tab2 AS cor0
----
167
167
167

query I rowsort
SELECT - - col2 + col1 + - col0 * - + col2 AS col2 FROM tab1 cor0
----
5006
5079
6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL - col2 + CAST( ( - - 92 ) AS SIGNED ) FROM tab0 AS cor0
----
-7
45
82

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - col2 + CAST ( ( - - 92 ) AS INTEGER ) FROM tab0 AS cor0
----
-7
45
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT col0 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT col0 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 23 AS col1 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT ALL + col0 * + ( - - col0 ) AS col1 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - 86 * col0 FROM tab2
----
-3956
-5504
-6450

query II rowsort
SELECT ALL 87, 78 AS col2 FROM tab1
----
87
78
87
78
87
78

query II rowsort
SELECT DISTINCT 77, 37 * col1 AS col0 FROM tab0
----
77
2997
77
37
77
777

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1882
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - col1 col2 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT + ( + MIN( ALL - + col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + ( + MIN ( ALL - + col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab0 cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col1 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - COUNT( - col2 ) + + 29 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1887
SELECT - COUNT ( - col2 ) + + 29 FROM tab1 cor0
----
26

query I rowsort
SELECT + - col2 + + 60 AS col2 FROM tab1 AS cor0
----
-36
-8
1

query I rowsort
SELECT DISTINCT col0 + + - ( col2 ) AS col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * - col1
----

query I rowsort
SELECT DISTINCT col2 + + 15 AS col1 FROM tab2 AS cor0
----
38
55
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 86 col0 FROM tab1 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + MIN( DISTINCT - - 53 ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1893
SELECT + MIN ( DISTINCT - - 53 ) AS col1 FROM tab1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT - COUNT( * ) DIV + ( + - COUNT( * ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1894
SELECT - COUNT ( * ) / + ( + - COUNT ( * ) ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT SUM( + col2 ) * - COUNT( * ) col1 FROM tab1
----
-669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT SUM ( + col2 ) * - COUNT ( * ) col1 FROM tab1
----
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT - - CAST( + + 27 AS SIGNED ) * 78 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1896
SELECT - - CAST ( + + 27 AS INTEGER ) * 78 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1897
SELECT * FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) * - 36 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1897
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * - 36 IS NULL
----

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 10 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE NOT + col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - - + 29 * + col1 AS col1 FROM tab2
----
1525
2018
2297

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 4 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 26 * + 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT 95 + + + 86 * + - 53 + + 15 + - 21 DIV - col2 * + 32 FROM tab2 AS cor0
----
-4448

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 95 + + + 86 * + - 53 + + 15 + - 21 / - col2 * + 32 FROM tab2 AS cor0
----
-4448

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT 63 DIV + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1906
SELECT 63 / + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT + - COUNT( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1907
SELECT + - COUNT ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + SUM( DISTINCT + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1908
SELECT + SUM ( DISTINCT + col2 ) FROM tab2
----
121

query II rowsort
SELECT DISTINCT col0, col1 AS col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - 43 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-43
-43
-43

query I rowsort
SELECT ALL + 38 * + 73 * - + col0 FROM tab1
----
-141474
-235790
-252434

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1912
SELECT + col0 AS col0, ( + 75 ) / col2 + - + col1 + col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1912
SELECT + col0 AS col0, ( + 75 ) / col2 + - + col1 + col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT 65 FROM tab1 WHERE - + col1 * - 28 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL 14 * - CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1914
SELECT ALL 14 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT DISTINCT col2 DIV + 18 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT col2 / + 18 FROM tab0
----
0
2
5

query I rowsort
SELECT ALL 15 * 53 FROM tab1
----
795
795
795

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE col2 * - col1 <> - col1
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + - 67 AS col2, col2 * - - ( - 60 ) FROM tab0 cor0
----
-67
-2820
-67
-5940
-67
-600

query I rowsort
SELECT - col1 * ( - 55 ) FROM tab1 AS cor0
----
2585
275
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + COUNT( * ) * - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - + COUNT( - 51 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1925
SELECT - + COUNT ( - 51 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 BETWEEN + - col2 + - + col0 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + + + 83 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + + 83 FROM tab2
----
NULL

query I rowsort
SELECT ( + col2 ) + + col1 AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT - COUNT( * ) + + 39 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-1930
SELECT - COUNT ( * ) + + 39 AS col2 FROM tab1
----
36

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL IS NOT NULL OR NOT NULL BETWEEN col2 AND col2
----

query I rowsort
SELECT ALL 3 * col0 FROM tab2 AS cor0
----
138
192
225

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( + - 95 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + - 63 AS col0, col1 FROM tab0 AS cor0
----
-63
1
-63
21
-63
81

query II rowsort
SELECT 27 AS col0, 41 AS col0 FROM tab1 cor0
----
27
41
27
41
27
41

query II rowsort
SELECT - 56 AS col1, col2 FROM tab1 AS cor0
----
-56
59
-56
68
-56
96

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 + - + col0 FROM tab1 AS cor0
----
59
-90
68
-138
96
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( 27 ) FROM tab1
----
27
27
27

query I rowsort
SELECT DISTINCT col2 * + + 78 FROM tab2
----
1794
3120
4524

query II rowsort
SELECT DISTINCT ( + col1 ), col0 * + + col0 AS col2 FROM tab0
----
1
9409
21
7569
81
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( ALL + 23 ) + - - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1944
SELECT COUNT ( ALL + 23 ) + - - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col0 + ( + + 95 ) AS col1 FROM tab1 AS cor0
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL - 10 * - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - 10 * - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT 73 DIV + MAX( ALL 97 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT 73 / + MAX ( ALL 97 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT COUNT( * ) + - + MAX( - col0 ) + - 66 AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT COUNT ( * ) + - + MAX ( - col0 ) + - 66 AS col1 FROM tab2
----
-17

query I rowsort
SELECT 96 + - 0 + col0 + col1 FROM tab2
----
193
237
238

query I rowsort
SELECT - + 59 + 37 AS col2 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1951
SELECT DISTINCT - + col2, - 80, + + col2 * - col2 + ( - - col0 ) - ( + ( + col0 ) ) + + - col0 FROM tab0 cor0 WHERE + 78 * + + CAST( NULL AS SIGNED ) * 32 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1951
SELECT DISTINCT - + col2, - 80, + + col2 * - col2 + ( - - col0 ) - ( + ( + col0 ) ) + + - col0 FROM tab0 cor0 WHERE + 78 * + + CAST ( NULL AS INTEGER ) * 32 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1952
SELECT col1 - - + col2 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1952
SELECT col1 - - + col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT - col2 + + col0 + - CAST( NULL AS SIGNED ) - + col1 * col1 * + col1 * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT - col2 + + col0 + - CAST ( NULL AS INTEGER ) - + col1 * col1 * + col1 * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( col0 ) ) * + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 85 + + col0 FROM tab2 AS cor0
----
-10
-21
-39

query I rowsort
SELECT + col0 * - - col2 * + col0 + + col2 FROM tab0 AS cor0
----
10622
75700
931590

query I rowsort
SELECT ALL - 76 + + - 0 AS col1 FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + COUNT( + + ( - - 98 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + COUNT ( + + ( - - 98 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL ( ( - + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL ( ( - + COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT + COUNT( * ) * + COUNT( ALL + col2 ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1960
SELECT + COUNT ( * ) * + COUNT ( ALL + col2 ) col1 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT ( - - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1961
SELECT ( - - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1962
SELECT ALL + SUM( + - 77 ) DIV + COUNT( * ) AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + SUM ( + - 77 ) / + COUNT ( * ) AS col2 FROM tab0
----
-77

query II rowsort
SELECT DISTINCT + 16 AS col2, - 75 FROM tab0
----
16
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + 96 * 18 - COUNT( * ) FROM tab0
----
1725

skipif mysql # not compatible
query I rowsort label-1964
SELECT + 96 * 18 - COUNT ( * ) FROM tab0
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - SUM( ALL + col1 ) - + + 27 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1965
SELECT - SUM ( ALL + col1 ) - + + 27 FROM tab1 cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT COUNT( * ) + - - SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT COUNT ( * ) + - - SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 - + 98 FROM tab2 AS cor0
----
-23
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT - COUNT( * ) + + - 52 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1968
SELECT - COUNT ( * ) + + - 52 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - COUNT( * ) + + SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-1969
SELECT - COUNT ( * ) + + SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-124

query I rowsort
SELECT 54 * + col2 * + 70 * - col1 FROM tab0
----
-14390460
-374220
-793800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT ( - col2 ) * + - 91 * + + CAST( - - col2 AS SIGNED ) * col1 + - 35 FROM tab1
----
11741149
1583820
19776813

skipif mysql # not compatible
query I rowsort label-1971
SELECT ( - col2 ) * + - 91 * + + CAST ( - - col2 AS INTEGER ) * col1 + - 35 FROM tab1
----
11741149
1583820
19776813

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col1 AND + 50 * - 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1973
SELECT * FROM tab2 cor0 WHERE NOT + CAST( + - col0 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1973
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( + - col0 AS REAL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT MAX( + + 71 ) AS col2 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1974
SELECT MAX ( + + 71 ) AS col2 FROM tab2 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( + col0 ) <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - - MIN( - 49 ) AS col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1977
SELECT - - MIN ( - 49 ) AS col0 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT ALL + col1 * + 30 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT DISTINCT col1 * + col2 * - col2 * + + 1 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT ALL - ( - 56 ) AS col2 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT + + 50 * + 94 AS col2 FROM tab0 AS cor0
----
4700

query I rowsort
SELECT + + col0 * - + col0 FROM tab0 WHERE NULL < + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - COUNT( * ) - + 89 FROM tab0, tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1983
SELECT - COUNT ( * ) - + 89 FROM tab0, tab1 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT ( 10 ) + - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT ( 10 ) + - COUNT ( * ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - + COUNT( * ) + MAX( DISTINCT + - col2 ) col0 FROM tab2 cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1985
SELECT ALL - + COUNT ( * ) + MAX ( DISTINCT + - col2 ) col0 FROM tab2 cor0
----
-26

query III rowsort
SELECT * FROM tab2 cor0 WHERE 40 <> NULL
----

query I rowsort
SELECT DISTINCT 47 * - 62 * - + col2 + + + 16 FROM tab1 AS cor0
----
171942
198168
279760

query I rowsort
SELECT ALL col0 + - 17 * - col2 AS col0 FROM tab0 AS cor0
----
1780
257
814

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + COUNT( DISTINCT - - col2 ) - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT + COUNT ( DISTINCT - - col2 ) - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT DISTINCT col0 DIV col1 + - 66 FROM tab2 AS cor0
----
-65
-66

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT col0 / col1 + - 66 FROM tab2 AS cor0
----
-65
-66

query I rowsort
SELECT + 13 + + col2 AS col2 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT - - 59 + col2 * + 75 FROM tab1 AS cor0
----
4484
5159
7259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 38 col2 FROM tab2 AS cor0
----
61
78
96

query III rowsort
SELECT * FROM tab2 WHERE - 24 - + - col0 NOT BETWEEN NULL AND 9 * + col0 + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL CAST( - + col0 AS SIGNED ) - 74 FROM tab1
----
-125
-159
-165

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL CAST ( - + col0 AS INTEGER ) - 74 FROM tab1
----
-125
-159
-165

query I rowsort
SELECT DISTINCT 13 * + col1 AS col1 FROM tab0
----
1053
13
273

query II rowsort
SELECT DISTINCT col0, 15 FROM tab1
----
51
15
85
15
91
15

query I rowsort
SELECT DISTINCT - + 83 + + col0 FROM tab1 WHERE NOT NULL <= 52
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2000
SELECT + CAST( - 17 AS SIGNED ) DIV 37 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT + CAST ( - 17 AS INTEGER ) / 37 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - + col2 AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT ( - - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT DISTINCT + + MAX( - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + + MAX ( - - col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL - MIN( ALL + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 54 FROM tab0 AS cor0 WHERE NULL IS NULL
----
54

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 * col0 * - - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT DISTINCT + CAST( COUNT( ALL + ( - col2 ) ) AS SIGNED ) + - + 50 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT + CAST ( COUNT ( ALL + ( - col2 ) ) AS INTEGER ) + - + 50 FROM tab0 AS cor0
----
-47

query II rowsort
SELECT DISTINCT + 90 + col1 AS col0, + col2 FROM tab0 AS cor0
----
111
10
171
47
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + 70 + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2011
SELECT + 70 + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT + col1 + - + col2 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - + ( + COUNT( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2013
SELECT - + ( + COUNT ( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col1 * + col2 * + col1 + - 69 col2 FROM tab1
----
-73819
-7510669
-940869

query I rowsort
SELECT + - 0 + + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - 60 + + 19 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2017
SELECT - CAST( NULL AS DECIMAL ) / - - col2 * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT - CAST ( NULL AS REAL ) / - - col2 * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL - + COUNT( * ) FROM tab0 WHERE NOT ( col1 ) * + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - + COUNT ( * ) FROM tab0 WHERE NOT ( col1 ) * + col2 <> NULL
----
0

query I rowsort
SELECT col1 - + 16 AS col2 FROM tab1
----
-11
-2
31

query I rowsort
SELECT - col0 - + 41 FROM tab2
----
-105
-116
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - COUNT( - 63 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - COUNT ( - 63 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT 49 - COUNT( * ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2022
SELECT 49 - COUNT ( * ) AS col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + - 51 AS col1, col1 + - col0 col1 FROM tab0
----
-36
66
36
-66
46
-96

query I rowsort
SELECT DISTINCT - col0 + - - col0 + col2 FROM tab0 cor0 WHERE 76 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + - 19 * - col1 FROM tab1 AS cor0
----
266
893
95

query I rowsort
SELECT ALL - ( - 43 ) FROM tab2 cor0
----
43
43
43

query II rowsort
SELECT - 4 AS col1, - col0 * col1 AS col2 FROM tab2 cor0
----
-4
-2346
-4
-4928
-4
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL ( MIN( ALL + + col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL ( MIN ( ALL + + col0 ) ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT + col0 / + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT + col0 / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT ( - + MIN( DISTINCT + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT ( - + MIN ( DISTINCT + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT 97 / + + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT 97 / + + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT 40 * COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-2033
SELECT 40 * COUNT ( * ) FROM tab2
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 * + col2 * - col0 AS col1 FROM tab0
----
1
-931491
21
-75690
81
-10575

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - ( + col1 )
----

query II rowsort
SELECT ALL col2 AS col1, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 54 BETWEEN NULL AND + - col0
----

query II rowsort
SELECT + col2 + + - col2 AS col0, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT 83 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2040
SELECT 83 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + + COUNT( + 78 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2041
SELECT + + COUNT ( + 78 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL - + ( + MIN( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL - + ( + MIN ( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - 98 AS col2, + col0 FROM tab2 AS cor0
----
-98
46
-98
64
-98
75

query I rowsort
SELECT col2 - + ( - - col0 ) FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - col0 + + + col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + + 19 + + col1 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT col1 * + col1 + 47 FROM tab2 AS cor0
----
2648
4536
5976

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT ALL col1 - col1 + - - col1 * + col0, - col2 AS col2 FROM tab0
----
1215
-47
1827
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 - - - col2 col2 FROM tab2
----
-22
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * - + 32 col0 FROM tab1
----
-2528
-2528
-2528

query I rowsort
SELECT - col2 * + + 41 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * - 52 AS col1 FROM tab1 AS cor0
----
3068
3536
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT + 90 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2057
SELECT + 90 / + col2 AS col0 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2058
SELECT + CAST( NULL AS DECIMAL ) / + - col0 * 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + CAST ( NULL AS REAL ) / + - col0 * 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col0, + 84 AS col2 FROM tab0 AS cor0
----
15
84
87
84
97
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 33 AS col0 FROM tab1 WHERE + 70 <> col1
----
26
35
63

query I rowsort
SELECT DISTINCT + col1 + + 11 AS col2 FROM tab1
----
16
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT 84 + + COUNT( ( - col0 ) ) * + COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2064
SELECT 84 + + COUNT ( ( - col0 ) ) * + COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT ALL ( 79 ) FROM tab1
----
79
79
79

query I rowsort
SELECT ( col0 ) + 49 AS col0 FROM tab0
----
136
146
64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT + 44 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 + + 83 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 44 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 + + 83 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2069
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 0 / - col1 FROM tab2 WHERE 58 NOT BETWEEN + ( 7 ) AND NULL
----

query I rowsort
SELECT + 0 * col0 + col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col2 FROM tab2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - 47 + SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2073
SELECT - 47 + SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2074
SELECT DISTINCT ( ( COUNT( col2 ) ) ) DIV - 74 FROM tab2 WHERE NULL BETWEEN col2 * + 77 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT ( ( COUNT ( col2 ) ) ) / - 74 FROM tab2 WHERE NULL BETWEEN col2 * + 77 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 61 - ( - col2 ) AS col0 FROM tab0
----
108
160
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT - COUNT( col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - COUNT ( col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - 2 + - COUNT( * ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - 2 + - COUNT ( * ) AS col1 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + COUNT( * ) + - MAX( DISTINCT col0 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT + col0 * - col1 + + col1 DIV col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2081
SELECT + col0 * - col1 + + col1 / col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL <> col2 + col0
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL <> col2 + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT + 35 * + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + 35 * + COUNT ( * ) FROM tab1
----
105

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + 57 IN ( + 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT DISTINCT + col1 + - col0 DIV + col2 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + col1 + - col0 / + col2 FROM tab1 AS cor0
----
14
4
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2087
SELECT - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + 50 + - col1 FROM tab0 AS cor0
----
-31
29
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 8 ) IS NOT NULL
----

query I rowsort
SELECT + 91 + col0 AS col0 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT ALL - 67 + col0 AS col0 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT + 32 + col1 FROM tab2 cor0
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT - COUNT( * ) - + 3 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - COUNT ( * ) - + 3 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT - col2 DIV + col1 + + 14 AS col1 FROM tab0
----
-85
14
14

skipif mysql # not compatible
query I rowsort label-2095
SELECT - col2 / + col1 + + 14 AS col1 FROM tab0
----
-85
14
14

query I rowsort
SELECT - col0 + + col2 * - 0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL 86 * 70 FROM tab1 AS cor0 WHERE - col0 + + 38 * + CAST( NULL AS SIGNED ) IN ( 2 )
----

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL 86 * 70 FROM tab1 AS cor0 WHERE - col0 + + 38 * + CAST ( NULL AS INTEGER ) IN ( 2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT DISTINCT + ( - 66 ) DIV col1 - + col0 AS col2 FROM tab2 AS cor0
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + ( - 66 ) / col1 - + col0 AS col2 FROM tab2 AS cor0
----
-47
-64
-75

query I rowsort
SELECT ALL 51 + col0 AS col1 FROM tab0 AS cor0
----
138
148
66

query I rowsort
SELECT ALL 70 * 36 FROM tab2 AS cor0 WHERE - 50 BETWEEN - 46 / + 96 AND ( col0 )
----

query I rowsort
SELECT DISTINCT + 69 * col2 FROM tab1 WHERE ( - 58 * 11 + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 84 * + - col1 * - col2 AS col2 FROM tab1
----
112896
24780
268464

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT IN ( + col1 * - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT - CAST( NULL AS SIGNED ) * CAST( 64 AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT - CAST ( NULL AS INTEGER ) * CAST ( 64 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT + col1 * 77 + ( + col1 ) FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) < 59 + - col0
----

skipif mysql # not compatible
query I rowsort label-2107
SELECT + col1 * 77 + ( + col1 ) FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) < 59 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL MIN( ALL - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2108
SELECT ALL MIN ( ALL - col2 ) col2 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + MAX( ( - col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2110
SELECT + MAX ( ( - col2 ) ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL col0 * 24 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT ALL + 29 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2113
SELECT + + 83 / + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT + + 83 / + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) * 56 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - - col2 ) / - CAST( + ( col2 ) AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - - col2 ) / - CAST ( + ( col2 ) AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT + COUNT( * ) + - ( - 30 ) col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2116
SELECT DISTINCT + COUNT ( * ) + - ( - 30 ) col2 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) + 23 * - col0 FROM tab1 AS cor0
----
-1887
-2380
-6370

query II rowsort
SELECT ALL 61 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
61
23
61
40
61
58

query I rowsort
SELECT DISTINCT + 69 * 20 FROM tab1 AS cor0
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - + MIN( ALL + col0 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2121
SELECT - + MIN ( ALL + col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT + - 19 / CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT + - 19 / CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL + 79 * - COUNT( * ) FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 79 * - COUNT ( * ) FROM tab0
----
-237

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 WHERE NOT NULL > 97
----

query I rowsort
SELECT col1 + + 53 + - + col0 FROM tab2
----
45
58
66

query I rowsort
SELECT ALL ( - + ( + + col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND - col0 * col2
----

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab1 WHERE NOT - 29 * col1 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + ( + ( + col1 ) ) + 41 AS col2 FROM tab1
----
46
55
88

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) * + 99 FROM tab2
----
-209484
-405504
-556875

query III rowsort
SELECT * FROM tab1 WHERE ( - - 77 ) IS NULL
----

query I rowsort
SELECT - 35 + - + ( + col2 ) FROM tab2
----
-58
-75
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2133
SELECT ALL + 16 DIV - - CAST( + - 14 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL + 16 / - - CAST ( + - 14 AS INTEGER ) FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 87 >= NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 98 * - + 84 / - + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT 50 - COUNT( * ) col2 FROM tab1 WHERE ( - + col1 * 58 + 76 ) IS NULL
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2136
SELECT 50 - COUNT ( * ) col2 FROM tab1 WHERE ( - + col1 * 58 + 76 ) IS NULL
----
50

query I rowsort
SELECT ALL + 73 + col2 AS col0 FROM tab0 AS cor0
----
120
172
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT col1 / + col0 + + 14 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + + col0 ) / + col0 - col2 IS NULL AND NOT col0 NOT BETWEEN ( NULL ) AND + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT col1 / + col0 + + 14 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + + col0 ) / + col0 - col2 IS NULL AND NOT col0 NOT BETWEEN ( NULL ) AND + col0 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 8 <= + 68 * - col2 + - ( + col2 ) - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT - col1 DIV + + 11 AS col2 FROM tab2 AS cor0
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-2143
SELECT - col1 / + + 11 AS col2 FROM tab2 AS cor0
----
-4
-6
-7

query I rowsort
SELECT + 67 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( ( + + col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 90, + col0 * + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IN ( - col0 - + CAST( NULL AS SIGNED ), 61 )
----

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IN ( - col0 - + CAST ( NULL AS INTEGER ), 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT COUNT( DISTINCT - 26 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT COUNT ( DISTINCT - 26 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col1 * - + col1 IS NOT NULL
----

query II rowsort
SELECT ALL 92 AS col2, col0 * col1 FROM tab0 AS cor0
----
92
1215
92
1827
92
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= + + col1 - col0 * + col0 * + 34 / - col2 + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL - + MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - + MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + + ( 50 ) AS col0 FROM tab1 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 53 * + - col0 col1 FROM tab2
----
124338
261184
266325

query I rowsort
SELECT DISTINCT col0 * col0 + - col0 FROM tab0 WHERE NOT + + 57 / - col2 >= col0 + + col0 * + 21
----
210
7482
9312

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / - col2 * - + 18 * - + col1 IN ( + col2 + - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col1 / + col1 FROM tab0 WHERE NULL NOT BETWEEN + + 71 * - - col1 - + - 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + MIN( DISTINCT - - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2160
SELECT + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 94 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT - CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-2162
SELECT - CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT + 52 DIV + - col0 + 44 FROM tab0 AS cor0
----
41
44
44

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 52 / + - col0 + 44 FROM tab0 AS cor0
----
41
44
44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND - 11 * + 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT CAST( - ( + 88 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 25 + + 58 IS NULL )
----
-88

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT CAST ( - ( + 88 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 25 + + 58 IS NULL )
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-2167
SELECT ALL col0 * - 50 DIV + 5 AS col1, - col1 FROM tab2
----
-460
-51
-640
-77
-750
-67

skipif mysql # not compatible
query II rowsort label-2167
SELECT ALL col0 * - 50 / + 5 AS col1, - col1 FROM tab2
----
-460
-51
-640
-77
-750
-67

query I rowsort
SELECT ALL + ( - + 65 ) FROM tab0
----
-65
-65
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT - ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT + 52 DIV + 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT + 52 / + 77 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col2 ) + - - 58 + + col2 + + + col0 FROM tab1
----
109
143
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2172
SELECT + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2172
SELECT + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 - col2 AS col1 FROM tab0 cor0
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2174
SELECT CAST( - + 64 AS SIGNED ) * - COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-2174
SELECT CAST ( - + 64 AS INTEGER ) * - COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT DISTINCT + 78 - col2 + - col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 16 BETWEEN + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + 26 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 26 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + MAX( ALL - 34 ) FROM tab2 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2179
SELECT + MAX ( ALL - 34 ) FROM tab2 cor0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL - 49 DIV - - 83 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT ALL - 49 / - - 83 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + col1 * - col2 + + + col0 FROM tab0 WHERE NOT - CAST( col2 AS SIGNED ) * + col0 + + col1 IS NULL
----
-123
-2
-3792

skipif mysql # not compatible
query I rowsort label-2181
SELECT + col1 * - col2 + + + col0 FROM tab0 WHERE NOT - CAST ( col2 AS INTEGER ) * + col0 + + col1 IS NULL
----
-123
-2
-3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col1 + 94 FROM tab2 AS cor0 WHERE NOT col0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = ( - col1 * + 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT - CAST( ( - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + - 50 + + col0 / col0 * - col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + - 50 + + col0 / col0 * - col2 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2187
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + 98 AS SIGNED ) + + 48 + - ( 17 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2187
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + 98 AS INTEGER ) + + 48 + - ( 17 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 88 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1973
-3443
-5037

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL COUNT( DISTINCT 90 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL COUNT ( DISTINCT 90 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT - 31 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + 0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + MIN( DISTINCT + 15 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-2192
SELECT + MIN ( DISTINCT + 15 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE - ( + ( + col1 ) ) = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT ALL + COUNT( CAST( - col0 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT ALL + COUNT ( CAST ( - col0 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + + 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2197
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + + - 82 * + + 82 + - + 58 NOT BETWEEN + col2 + - - col0 * col1 AND - 12 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2197
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + + - 82 * + + 82 + - + 58 NOT BETWEEN + col2 + - - col0 * col1 AND - 12 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 + col0 * - + col2 * + 75 * + 90 FROM tab2 AS cor0
----
-17279960
-29362442
-7141477

query I rowsort
SELECT ALL col0 + - ( + col2 ) * col2 + + 65 AS col0 FROM tab1 AS cor0
----
-3331
-4468
-9100

query I rowsort
SELECT - col1 + + 14 * 54 AS col0 FROM tab1 AS cor0
----
709
742
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL + CAST( + 69 AS SIGNED ) FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + CAST ( + 69 AS INTEGER ) FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 4 * 74 ) <= NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - - MIN( + col1 ) + 22 AS col2 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - MIN ( + col1 ) + 22 AS col2 FROM tab2 cor0
----
73

query I rowsort
SELECT - + 81 * col1 + + 12 FROM tab2 AS cor0
----
-4119
-5415
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT - COUNT( DISTINCT - - 51 ) + + COUNT( * ) * - 27 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-2205
SELECT - COUNT ( DISTINCT - - 51 ) + + COUNT ( * ) * - 27 FROM tab1
----
-82

query I rowsort
SELECT col0 / + col0 FROM tab0 WHERE - + 81 IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 47 ) / 48 + - + 8 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - col1 + + col2 AS col1 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + SUM( + + 11 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + SUM ( + + 11 ) AS col2 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2210
SELECT ALL * FROM tab0 WHERE NOT CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2210
SELECT ALL * FROM tab0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( 64 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT DISTINCT 29 + + - COUNT( * ) * 87 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-754

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT 29 + + - COUNT ( * ) * 87 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-754

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT - COUNT( * ) AS col2, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2213
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2
----
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT - CAST( - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + - col2 * - col0, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT - CAST ( - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + - col2 * - col0, - col0 )
----
NULL

query I rowsort
SELECT - + col0 * + + 42 FROM tab2 AS cor0
----
-1932
-2688
-3150

query I rowsort
SELECT + 99 * + - col0 FROM tab1 cor0
----
-5049
-8415
-9009

query II rowsort
SELECT - - col1, + col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT ALL - col1 DIV + 9 + - col2 AS col2 FROM tab0 AS cor0
----
-12
-56
-99

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - col1 / + 9 + - col2 AS col2 FROM tab0 AS cor0
----
-12
-56
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL + MAX( + ( + - col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + MAX ( + ( + - col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT 39 AS col1, - 28 * COUNT( * ) FROM tab1 AS cor0
----
39
-84

skipif mysql # not compatible
query II rowsort label-2220
SELECT 39 AS col1, - 28 * COUNT ( * ) FROM tab1 AS cor0
----
39
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL - MIN( ( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL - MIN ( ( - col0 ) ) FROM tab0
----
97

query I rowsort
SELECT - col2 * + col2 AS col0 FROM tab0 WHERE NOT + + col2 + - + col0 < - col0
----
-100
-2209
-9801

query I rowsort
SELECT ALL 32 * + - col1 FROM tab2
----
-1632
-2144
-2464

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 BETWEEN + + col0 / + col1 - 4 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT - - 94 + + col1 + col2 DIV 97 + 53 AS col2 FROM tab0 AS cor0
----
149
168
228

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - - 94 + + col1 + col2 / 97 + 53 AS col2 FROM tab0 AS cor0
----
149
168
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + SUM( DISTINCT - 56 ) AS col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2226
SELECT + SUM ( DISTINCT - 56 ) AS col0 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + col1 + - col2 + col0 AS col0 FROM tab0 AS cor0
----
-1
49
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 53 ) col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 71 FROM tab1, tab1 cor0 WHERE ( + 19 ) IS NOT NULL
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - + 71 + 75 * + COUNT( * ) * - + 11 FROM tab1 AS cor0
----
-2546

skipif mysql # not compatible
query I rowsort label-2232
SELECT - + 71 + 75 * + COUNT ( * ) * - + 11 FROM tab1 AS cor0
----
-2546

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL 56 DIV + 86 + - 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL 56 / + 86 + - 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT + CAST( + MAX( DISTINCT - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2234
SELECT + CAST ( + MAX ( DISTINCT - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 52 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 * - 65 AND - - ( + - col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + + 69 FROM tab2 AS cor0
----
115
133
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 28 * - + 81 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 84 * - col2 * - + col2 * + 90 * - col1 - + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - ( col0 ) * + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE col1 IS NULL AND col2 + + + 86 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - ( col0 ) * + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE col1 IS NULL AND col2 + + + 86 IS NOT NULL
----

query I rowsort
SELECT ALL col2 - + + 24 - - col2 + + col1 AS col1 FROM tab2
----
133
159
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - COUNT( * ) * - MAX( DISTINCT - + col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT - + col2 ) FROM tab1
----
-177

query I rowsort
SELECT + 71 - col1 AS col2 FROM tab1
----
24
57
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 37 * + CAST( NULL AS SIGNED ) - - - MAX( DISTINCT col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 37 * + CAST ( NULL AS INTEGER ) - - - MAX ( DISTINCT col1 ) FROM tab1
----
NULL

query II rowsort
SELECT col1 + - col2, + 38 + + + 93 AS col0 FROM tab0 AS cor0
----
-98
131
11
131
34
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 col0, col1 FROM tab1 AS cor0
----
88
14
88
47
88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( + 57 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( + 57 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + - 2 AS col2, - 73 * - + 82 FROM tab0 AS cor0
----
-2
5986
-2
5986
-2
5986

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT DISTINCT col0 DIV 48 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT col0 / 48 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col0 FROM tab0 cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col1 col1 FROM tab2 AS cor0
----
3468
4556
5236

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT col1 * col1 * + 83 AS col2 FROM tab0 AS cor0
----
36603
544563
83

query I rowsort
SELECT ALL col1 * 54 FROM tab0 AS cor0
----
1134
4374
54

query I rowsort
SELECT col0 * + + 8 FROM tab1
----
408
680
728

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 + - - ( - col2 ) + - col2 * 0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - 66 + - 63 + + col2 + - col0 * ( 45 ) AS col2 FROM tab0
----
15
-757
87
-4034
97
-4395

query I rowsort
SELECT ALL - 77 * + + col0 * 90 + - col2 * - + 52 FROM tab0
----
-101506
-602390
-667062

query I rowsort
SELECT 62 + - col1 FROM tab1
----
15
48
57

query I rowsort
SELECT DISTINCT - col1 * + + 89 FROM tab0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL - - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - col0 * - 85 FROM tab2 AS cor0
----
3910
5440
6375

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 98 IN ( + col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + COUNT( * ) + - + 44 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + COUNT ( * ) + - + 44 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / + col1 IS NULL
----
-3

query I rowsort
SELECT + col2 * col2 - 79 AS col2 FROM tab2 AS cor0
----
1521
3285
450

query I rowsort
SELECT + col2 + col0 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
197160
291508
53981

query I rowsort
SELECT DISTINCT - 65 + + 15 + + + col1 AS col2 FROM tab1 AS cor0
----
-3
-36
-45

query I rowsort
SELECT ALL col1 + - col2 * - col0 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT col2 * + col1 * - 29 + + col2 + - 85 * + + col1 AS col1 FROM tab0 AS cor0
----
-117241
-2857
-7865

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL + 25 - COUNT( * ) * - - 94 FROM tab0 AS cor0
----
-257

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + 25 - COUNT ( * ) * - - 94 FROM tab0 AS cor0
----
-257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT CAST( - col0 AS SIGNED ) * col2 * + 33 * - col0 FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) <> - col1 * col0 + 17
----
2497770
30739203
348975

skipif mysql # not compatible
query I rowsort label-2273
SELECT CAST ( - col0 AS INTEGER ) * col2 * + 33 * - col0 FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) <> - col1 * col0 + 17
----
2497770
30739203
348975

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab0
----
78

query I rowsort
SELECT DISTINCT + 63 FROM tab1 WHERE NOT + 8 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * col0 col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 23 AS col1, - 49 * - col1 FROM tab0 AS cor0
----
-23
1029
-23
3969
-23
49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( ( + col1 ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + + + 22 ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT + COUNT( * ) DIV + 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + COUNT ( * ) / + 93 FROM tab0
----
0

query I rowsort
SELECT col2 * - ( 9 ) AS col1 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT ALL + COUNT( * ) DIV - MIN( + 6 ) + + COUNT( * ) DIV ( + MAX( DISTINCT + 87 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + COUNT ( * ) / - MIN ( + 6 ) + + COUNT ( * ) / ( + MAX ( DISTINCT + 87 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1

query I rowsort
SELECT - col2 * - ( - 10 ) * - col0 + + - col2 * + 12 + + col2 AS col0 FROM tab2 AS cor0
----
10327
25160
42862

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2286
SELECT DISTINCT + col0 * col1 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + col0 * col1 * + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col1 ) <= col0
----

query I rowsort
SELECT ALL + 5 * - col0 AS col2 FROM tab0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT - + AVG ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT + + col0 / + + col0 NOT BETWEEN + CAST( NULL AS SIGNED ) - + col1 AND ( - 22 ) * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT - + AVG ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT + + col0 / + + col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) - + col1 AND ( - 22 ) * col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT ALL - 78 DIV 21 AS col2 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - 78 / 21 AS col2 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 WHERE - + 91 / - ( + col0 ) NOT BETWEEN NULL AND - + 18
----
-3

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 WHERE - + 91 / - ( + col0 ) NOT BETWEEN NULL AND - + 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL COUNT( * ) + + COUNT( col0 ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL COUNT ( * ) + + COUNT ( col0 ) AS col1 FROM tab1 cor0
----
6

query I rowsort
SELECT 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 15 + - 4 IS NOT NULL
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT - SUM( DISTINCT - 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2294
SELECT - SUM ( DISTINCT - 73 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL + col2 + + - col2 + - col2 * - col0 AS col0 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + col0 + 20 + + 98 AS col2 FROM tab2 AS cor0
----
164
182
193

query I rowsort
SELECT DISTINCT - - ( + - col0 ) FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) - col1 * + col1 * 5 col2 FROM tab2 cor0
----
-13028
-22503
-29685

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT 99 - + COUNT( * ) + + MIN( ALL - col1 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT 99 - + COUNT ( * ) + + MIN ( ALL - col1 ) FROM tab2
----
19

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + MAX( 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + MAX ( 8 ) FROM tab2 AS cor0
----
8

query II rowsort
SELECT DISTINCT col1 AS col2, - 97 FROM tab1
----
14
-97
47
-97
5
-97

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT + + MIN( + 66 ) * + COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT + + MIN ( + 66 ) * + COUNT ( * ) FROM tab1 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT + + CAST( - col2 AS SIGNED ) col0 FROM tab0 cor0 WHERE NOT - 83 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2305
SELECT + + CAST ( - col2 AS INTEGER ) col0 FROM tab0 cor0 WHERE NOT - 83 <> NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( NULL BETWEEN - col0 - - + col2 AND + col0 * + - 96 * + col2 + - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ( + COUNT( DISTINCT + col2 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2307
SELECT ( + COUNT ( DISTINCT + col2 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT col0 * + + 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-2309
SELECT col0 * + + CAST ( NULL AS INTEGER ) * - - col0 col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2, col1 + - col0 FROM tab1
----
59
-80
68
-44
96
-37

query I rowsort
SELECT - AVG ( - + col1 ) FROM tab1 WHERE 51 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT col2 * col1 DIV - col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT col2 * col1 / - col1 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT - col0 + + col1, col2 FROM tab0
----
-66
10
-96
99
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + 79 + + MIN( - col1 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + 79 + + MIN ( - col1 ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE 14 NOT BETWEEN col1 * - col2 AND NULL
----

query I rowsort
SELECT ALL 48 + col1 FROM tab0 cor0
----
129
49
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 34 ) < NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, + col1, + col2, - col0 + col0 + + 28 )
----

query I rowsort
SELECT ALL + 61 * col0 - 7 AS col2 FROM tab0 cor0
----
5300
5910
908

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND col0
----

query II rowsort
SELECT DISTINCT col0 + - + col0, col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT + col2 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - 74 + + MAX( - + 32 ) FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 74 + + MAX ( - + 32 ) FROM tab0 AS cor0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL - 86 - + col0 DIV - col2 AS col0 FROM tab2 AS cor0
----
-84
-85
-85

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - 86 - + col0 / - col2 AS col0 FROM tab2 AS cor0
----
-84
-85
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT MAX( - col0 ) col0, - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-51
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2326
SELECT MAX ( - col0 ) col0, - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-51
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 * + 57 + + - col1 * col0 col1 FROM tab2 cor0
----
-10229
-10326
-7647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2328
SELECT - MAX( ALL - + CAST( + col2 AS SIGNED ) ) DIV + SUM( DISTINCT - 25 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT - MAX ( ALL - + CAST ( + col2 AS INTEGER ) ) / + SUM ( DISTINCT - 25 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT 2 AS col2, - col0 AS col2 FROM tab1
----
2
-51
2
-85
2
-91

query I rowsort
SELECT - ( 2 ) FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + SUM( ALL + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + SUM ( ALL + col1 ) FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2333
SELECT col1 * - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT col1 * - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + - 56 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2335
SELECT + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT DISTINCT 28 DIV 25 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT 28 / 25 AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col0 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col0 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT - 87 * - col0 + + 52 * col2 + 35 + + 88 AS col0 FROM tab0 cor0
----
13710
3872
8212

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - col0 * 44 - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 93 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
93

query I rowsort
SELECT DISTINCT + 3 + + col0 AS col1 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + MAX( ALL 83 ) AS col1 FROM tab0 WHERE + + 96 * - ( col1 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT + MAX ( ALL 83 ) AS col1 FROM tab0 WHERE + + 96 * - ( col1 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT - 34 + COUNT( * ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - 34 + COUNT ( * ) AS col1 FROM tab0
----
-31

query I rowsort
SELECT + ( - + col0 ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - + 50 - + 84 AS col1 FROM tab0 AS cor0
----
-134

query I rowsort
SELECT ALL - - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + col2 AS col0, ( + + col2 ) AS col1 FROM tab2 WHERE + + 48 IS NOT NULL
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - col1 * + - col2 col2 FROM tab1
----
1415
3267
366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2350
SELECT DISTINCT col2, CAST( + 34 AS SIGNED ) - + 87 * - - col1 FROM tab2
----
23
-4403
40
-6665
58
-5795

skipif mysql # not compatible
query II rowsort label-2350
SELECT DISTINCT col2, CAST ( + 34 AS INTEGER ) - + 87 * - - col1 FROM tab2
----
23
-4403
40
-6665
58
-5795

query I rowsort
SELECT 20 * + - col0 AS col0 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT SUM( ALL + col1 ) col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT SUM ( ALL + col1 ) col0 FROM tab1 cor0
----
66

query I rowsort
SELECT ALL col2 * - - col1 FROM tab2 cor0
----
1173
3080
3886

query II rowsort
SELECT col1 AS col1, + col2 + + 90 AS col1 FROM tab2 AS cor0
----
51
113
67
148
77
130

query I rowsort
SELECT ALL + col1 * + 48 + + + 21 FROM tab1 cor0
----
2277
261
693

query I rowsort
SELECT + ( 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + + MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
91

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + + MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
91

query I rowsort
SELECT ALL - 80 * + 19 * col1 FROM tab2 AS cor0
----
-101840
-117040
-77520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2359
SELECT DISTINCT - col1 col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) <> + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2359
SELECT DISTINCT - col1 col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) <> + col2
----

query I rowsort
SELECT - col1 * + col1 + ( + 40 ) FROM tab0 AS cor0
----
-401
-6521
39

query I rowsort
SELECT + 97 FROM tab1 AS cor0 WHERE NOT 71 IS NULL
----
97
97
97

query I rowsort
SELECT + col1 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query II rowsort
SELECT ALL + col2 AS col1, ( - col1 ) AS col2 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT SUM( DISTINCT - 34 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2364
SELECT SUM ( DISTINCT - 34 ) FROM tab1
----
-34

query I rowsort
SELECT DISTINCT + col0 + - - col2 + - col1 AS col2 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT + 78 * COUNT( * ) FROM tab0, tab1 AS cor0
----
702

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 78 * COUNT ( * ) FROM tab0, tab1 AS cor0
----
702

query III rowsort
SELECT ALL * FROM tab0 WHERE + 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE 18 IN ( - col1 - col2 )
----

query I rowsort
SELECT DISTINCT + col2 + 51 * + 73 FROM tab1 AS cor0
----
3782
3791
3819

query I rowsort
SELECT ALL + 13 * + + ( + col1 ) - + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col1 + + + 98 FROM tab1 cor0
----
103
112
145

query I rowsort
SELECT + col1 + + - col0 * - + col0 + - - col2 AS col2 FROM tab2
----
2190
4213
5750

query I rowsort
SELECT 79 + col1 + col2 FROM tab1
----
143
189
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT CAST( NULL AS SIGNED ) / 89 + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT CAST ( NULL AS INTEGER ) / 89 + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 + + 34 + 10 AS col2 FROM tab0
----
143
54
91

query I rowsort
SELECT - col2 + - 23 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col0 - col0 AND - 0 * + + ( - 16 )
----
-122
-33
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT SUM( DISTINCT + col0 ) * + + 40 + - + 29 FROM tab0 AS cor0
----
7931

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT SUM ( DISTINCT + col0 ) * + + 40 + - + 29 FROM tab0 AS cor0
----
7931

query II rowsort
SELECT DISTINCT - - 81 + + ( col1 ) * col1, col2 FROM tab1 AS cor0
----
106
59
2290
68
277
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - - COUNT( * ) * - - 54 AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2379
SELECT - - COUNT ( * ) * - - 54 AS col2 FROM tab2 AS cor0
----
162

query I rowsort
SELECT DISTINCT - 73 * col1 - + 30 AS col1 FROM tab2 AS cor0
----
-3753
-4921
-5651

query I rowsort
SELECT - col0 * - + col0 AS col1 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT - 66 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-66
51
-66
67
-66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT + + ( + col1 ) * - CAST( NULL AS SIGNED ) + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT + + ( + col1 ) * - CAST ( NULL AS INTEGER ) + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, col2 * - - col2 FROM tab1 AS cor0
----
14
9216
47
4624
5
3481

query II rowsort
SELECT - - col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2387
SELECT ALL col2 * + col2 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL col2 * + col2 / CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT DISTINCT CAST( NULL AS SIGNED ) * - SUM( DISTINCT - + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT - + col0 ) FROM tab0
----
NULL

query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL COUNT( * ) + + 77 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL COUNT ( * ) + + 77 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + col1 AND - + col2 * + + 12 * col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 NOT BETWEEN col1 + - - col1 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + + 88 * + MAX( ALL + - 16 ) AS col2 FROM tab2 AS cor0
----
-1408

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + + 88 * + MAX ( ALL + - 16 ) AS col2 FROM tab2 AS cor0
----
-1408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 92 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 - - col2 col2 FROM tab0 AS cor0
----
-2
-39
50

query I rowsort
SELECT ALL + 33 * + + col1 AS col0 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT col0 - - - 57 FROM tab2
----
-11
18
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT DISTINCT 92 DIV + 25 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT 92 / + 25 AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT ALL COUNT( * ) DIV + + 36 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2402
SELECT ALL COUNT ( * ) / + + 36 col1 FROM tab0
----
0

query I rowsort
SELECT 49 * + - col1 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT col1 * - col1 * col0 - + + col0 DIV - - col0 FROM tab1
----
-201020
-2126
-9997

skipif mysql # not compatible
query I rowsort label-2404
SELECT col1 * - col1 * col0 - + + col0 / - - col0 FROM tab1
----
-201020
-2126
-9997

query I rowsort
SELECT DISTINCT + - col0 * - col1 FROM tab0 WHERE NOT NULL > + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 * - 52 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * - 52 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 33 + - 98 AS col0 FROM tab2 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col0 + - col1 AND NULL
----

query II rowsort
SELECT + ( + - col2 ) + - col0 AS col2, 18 FROM tab0 AS cor0
----
-196
18
-62
18
-97
18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - - col2 * - 91 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( - 52 ) AS col2 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT - SUM( col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - SUM ( col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT ALL + col1 + + + 41 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - col1 * - col0 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2416
SELECT 83 col1, - CAST( NULL AS DECIMAL ) FROM tab0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2416
SELECT 83 col1, - CAST ( NULL AS REAL ) FROM tab0
----
83
NULL
83
NULL
83
NULL

query I rowsort
SELECT - col0 * 67 AS col2 FROM tab2
----
-3082
-4288
-5025

query II rowsort
SELECT - col0, - col0 AS col1 FROM tab2
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT ( + CAST( - - AVG ( ALL - col1 ) AS SIGNED ) ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT ( + CAST ( - - AVG ( ALL - col1 ) AS INTEGER ) ) FROM tab2
----
-65

query I rowsort
SELECT DISTINCT 10 * + col2 + + + 9 + col0 FROM tab1
----
1020
684
780

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT + MAX( ALL - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2422
SELECT + MAX ( ALL - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2423
SELECT ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 6 AS col1, - col1 + - ( - 57 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 73 + - col2 AS col2 FROM tab0 AS cor0
----
-26
26
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT + ( + COUNT( * ) ) AS col0, 71 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + col1
----
0
71

skipif mysql # not compatible
query II rowsort label-2426
SELECT + ( + COUNT ( * ) ) AS col0, 71 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + col1
----
0
71

query I rowsort
SELECT 93 * 18 * col2 FROM tab0
----
165726
16740
78678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0 WHERE col0 + + ( col2 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col1 + col2 - 65 + + 65 * + - col2 AS col1 FROM tab1 AS cor0
----
-3836
-4370
-6195

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT + - col1 DIV col2 - + 54 + - - col0 col0 FROM tab0 cor0
----
-40
31
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT + - col1 / col2 - + 54 + - - col0 col0 FROM tab0 cor0
----
-40
31
43

query I rowsort
SELECT - - 90 + + 79 + - col0 FROM tab2 AS cor0
----
105
123
94

query I rowsort
SELECT DISTINCT - - col0 + - - 74 AS col0 FROM tab0 AS cor0
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT 91 + + COUNT( * ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2434
SELECT 91 + + COUNT ( * ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL 6 + MAX( - 68 ) col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT ALL 6 + MAX ( - 68 ) col1 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + + 21 + col1 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT ALL - 97 * + + ( col0 ) - + col1 FROM tab1 AS cor0
----
-4961
-8250
-8874

query I rowsort
SELECT + - ( + 70 ) + ( - 69 ) * - + 30 FROM tab1 AS cor0
----
2000
2000
2000

query II rowsort
SELECT ALL + col1 * + col1, + 53 AS col0 FROM tab1 AS cor0
----
196
53
2209
53
25
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT - COUNT( ALL - + ( col1 ) ) - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - COUNT ( ALL - + ( col1 ) ) - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + CAST( - 32 AS SIGNED ) + + COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CAST ( - 32 AS INTEGER ) + + COUNT ( * ) FROM tab1
----
-29

query I rowsort
SELECT col0 + - 24 FROM tab0
----
-9
63
73

query I rowsort
SELECT DISTINCT 89 - + col0 FROM tab2
----
14
25
43

query I rowsort
SELECT col2 * 80 + + col2 FROM tab2
----
1863
3240
4698

query III rowsort
SELECT * FROM tab0 WHERE ( 86 > NULL )
----

query II rowsort
SELECT + 45 * col0, + col2 + - col0 AS col0 FROM tab1 AS cor0
----
2295
45
3825
-26
4095
-23

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 73 AND NULL
----

query I rowsort
SELECT col2 * + - col2 AS col0 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( ( - - col1 ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( ( - - col1 ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2454
SELECT - 0 DIV + ( + 47 ) * + SUM( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 0 / + ( + 47 ) * + SUM ( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab0 AS cor0 WHERE NOT 61 IS NULL
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2456
SELECT ALL ( COUNT( * ) ), - CAST( NULL AS SIGNED ) * + - 47 * - COUNT( * ) col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2456
SELECT ALL ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * + - 47 * - COUNT ( * ) col0 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - ( - + MIN( DISTINCT - col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2457
SELECT - ( - + MIN ( DISTINCT - col2 ) ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + 45 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT ALL - 97 + - 21 - - ( + 92 ) col0, COUNT( * ) * + + 75 FROM tab2
----
-26
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2459
SELECT ALL - 97 + - 21 - - ( + 92 ) col0, COUNT ( * ) * + + 75 FROM tab2
----
-26
225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - 34
----

query I rowsort
SELECT ALL + - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT COUNT( + + 83 ) + + MIN( DISTINCT col1 ) col0 FROM tab0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2462
SELECT COUNT ( + + 83 ) + + MIN ( DISTINCT col1 ) col0 FROM tab0
----
4

query I rowsort
SELECT - col0 + 58 * - 57 + 18 FROM tab2
----
-3334
-3352
-3363

query I rowsort
SELECT ALL - 18 + + 43 FROM tab0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT ALL - 20 DIV - col1 + + col1 + - 31 AS col1 FROM tab0 AS cor0
----
-10
-10
50

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - 20 / - col1 + + col1 + - 31 AS col1 FROM tab0 AS cor0
----
-10
-10
50

query I rowsort
SELECT ALL - 62 + - + 38 + - + col0 AS col2 FROM tab2 AS cor0
----
-146
-164
-175

query I rowsort
SELECT ALL col0 + - 96 AS col1 FROM tab2 AS cor0
----
-21
-32
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 81 col2 FROM tab1 AS cor0
----
51
81
85
81
91
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL + SUM( - 64 ) col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2469
SELECT ALL + SUM ( - 64 ) col0 FROM tab2 AS cor0
----
-192

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - 47 col2 FROM tab1 AS cor0
----
132
138
98

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + + + col1 + + + col0 BETWEEN 88 * + - col0 AND col0
----

query I rowsort
SELECT DISTINCT + ( + 76 ) + + - col2 FROM tab0 cor0
----
-23
29
66

query I rowsort
SELECT ALL 81 - col0 AS col1 FROM tab0 AS cor0
----
-16
-6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT COUNT( * ) - + + SUM( ALL - col0 ) AS col1 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT COUNT ( * ) - + + SUM ( ALL - col0 ) AS col1 FROM tab2
----
188

query I rowsort
SELECT ALL + col2 - 85 FROM tab1
----
-17
-26
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2478
SELECT ALL + COUNT( * ) AS col1, 15 DIV + COUNT( + + col1 ) FROM tab0
----
3
5

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL + COUNT ( * ) AS col1, 15 / + COUNT ( + + col1 ) FROM tab0
----
3
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT ( CAST( NULL AS SIGNED ) ) * - + COUNT( * ) - - AVG ( - - col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT ( CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) - - AVG ( - - col1 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 47 - - 31 FROM tab0
----
78

query I rowsort
SELECT ALL - 70 - + - 2 FROM tab2
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2482
SELECT col2, CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-2482
SELECT col2, CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2483
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) + - 27 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2483
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) + - 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
35

query I rowsort
SELECT ALL - ( - ( col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT + 63 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 56 + 10 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + - col2
----

query I rowsort
SELECT DISTINCT + + col1 / + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 14 - col1
----

query I rowsort
SELECT + - 71 * 31 FROM tab0 AS cor0
----
-2201
-2201
-2201

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 <> + 43 * + col0 - + col0 )
----

query I rowsort
SELECT col2 * - + col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT + ( + + 45 ) DIV + col1 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2492
SELECT + ( + + 45 ) / + col1 + col1 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + 66 + + col0 + - + col2 <> 19 * + col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + SUM( DISTINCT col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + SUM ( DISTINCT col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT - - col1 + - 9 AS col0 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) * - - col0 * 69 * - + col1 * col1 >= - - col2 * + ( ( - 33 ) ) * 94 * 60 * + col2 + + ( + col1 ) + - col1 + - 3
----
-8
12
72

skipif mysql # not compatible
query I rowsort label-2495
SELECT - - col1 + - 9 AS col0 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * - - col0 * 69 * - + col1 * col1 >= - - col2 * + ( ( - 33 ) ) * 94 * 60 * + col2 + + ( + col1 ) + - col1 + - 3
----
-8
12
72

query I rowsort
SELECT ALL - - col1 + - 7 AS col1 FROM tab0 AS cor0
----
-6
14
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT COUNT( * ) + - + SUM( ALL + + col1 ) * - 61 AS col1 FROM tab1 AS cor0
----
4029

skipif mysql # not compatible
query I rowsort label-2497
SELECT COUNT ( * ) + - + SUM ( ALL + + col1 ) * - 61 AS col1 FROM tab1 AS cor0
----
4029

query I rowsort
SELECT DISTINCT - 46 + + - 44 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2500
SELECT + col0 * col2 * - CAST( - col1 AS SIGNED ) + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT + col0 * col2 * - CAST ( - col1 AS INTEGER ) + + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT ALL 30 DIV - col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL 30 / - col1 FROM tab1
----
-2
-6
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * 38 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT col0 DIV - ( col0 ) + col2 AS col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-2504
SELECT col0 / - ( col0 ) + col2 AS col1 FROM tab2
----
22
39
57

query I rowsort
SELECT - 52 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + - col0 col2 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab2 WHERE col1 * - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT ( - col0 ) DIV + 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT ( - col0 ) / + 93 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 75 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT 75 / - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 55 * ( col1 ) AS col2 FROM tab0
----
1155
4455
55

query I rowsort
SELECT + 44 * - 5 FROM tab2
----
-220
-220
-220

query I rowsort
SELECT DISTINCT 22 + - col0 AS col0 FROM tab2
----
-24
-42
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT + SUM( + CAST( NULL AS SIGNED ) ) + + COUNT( + col1 ) * 42 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( + col1 ) * 42 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT NULL <> ( col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2516
SELECT COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( col2 + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT ALL - 72 DIV 25 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - 72 / 25 AS col2 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2518
SELECT * FROM tab0 WHERE ( - 14 * + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2518
SELECT * FROM tab0 WHERE ( - 14 * + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 39 FROM tab1
----
1989
3315
3549

query III rowsort
SELECT * FROM tab0 WHERE + 48 NOT BETWEEN 42 AND ( 16 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 WHERE NOT - col2 * + col2 + 8 NOT BETWEEN ( 97 ) AND - col0 * col2
----

query I rowsort
SELECT + col0 - + 31 FROM tab1
----
20
54
60

query I rowsort
SELECT + 41 + col2 FROM tab0
----
140
51
88

query I rowsort
SELECT - 50 * + col1 + 18 FROM tab1
----
-232
-2332
-682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 WHERE NOT ( col0 + ( col0 ) ) NOT IN ( + 35 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 WHERE NOT ( col0 + ( col0 ) ) NOT IN ( + 35 * + col0 )
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( 59 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - ( + col1 ) * + col0 >= - col2 * - col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2528
SELECT * FROM tab2 WHERE NOT col0 * col2 - CAST( NULL AS SIGNED ) * + 33 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT * FROM tab2 WHERE NOT col0 * col2 - CAST ( NULL AS INTEGER ) * + 33 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col0 * col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 35 ) > + col1 * 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + 45 * - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT 17 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2533
SELECT 17 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - AVG ( col0 ) * 16 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT ( - 75 ) DIV + col2 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT ( - 75 ) / + col2 FROM tab0 cor0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT DISTINCT + col2 DIV + 82 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + col2 / + 82 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( col0 )
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 37 * col2 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 78 + col1 FROM tab0 WHERE - 94 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + COUNT( * ) + - 26 AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2540
SELECT + COUNT ( * ) + - 26 AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( - col2 ) <= NULL
----

query I rowsort
SELECT + 74 * col0 + 99 AS col2 FROM tab0 AS cor0
----
1209
6537
7277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2543
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2543
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 * 11 + + ( - 68 ) * + 75 AS col2 FROM tab1 AS cor0
----
-5749
-5848
-6156

query I rowsort
SELECT + col2 + - 38 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2546
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( col2 ) ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2546
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( col2 ) ) = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL - COUNT( ALL - col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - COUNT ( ALL - col1 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL col2 - col0 AS col1 FROM tab1 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT - COUNT( * ) * + 9 AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - COUNT ( * ) * + 9 AS col1 FROM tab0
----
-27

query I rowsort
SELECT ALL - 0 FROM tab2 WHERE ( col1 ) < ( 73 * 1 )
----
0
0

query I rowsort
SELECT col2 * - 31 AS col2 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT DISTINCT - col2 + - col1 + + col0 AS col0 FROM tab1
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT - + COUNT( * ) * - + 23 * 7 + COUNT( * ) FROM tab1 AS cor0
----
486

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - + COUNT ( * ) * - + 23 * 7 + COUNT ( * ) FROM tab1 AS cor0
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT COUNT( * ) - - SUM( col2 ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT COUNT ( * ) - - SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL 21 * + COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL 21 * + COUNT ( * ) FROM tab0
----
63

query I rowsort
SELECT + col0 * + col2 + - - col1 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 46 > NULL
----

query I rowsort
SELECT DISTINCT + 14 + + 62 AS col0 FROM tab0 AS cor0
----
76

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( - col2 - col2 * col0 )
----

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab1 AS cor0 WHERE col0 <= + col2 + col0
----
76

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col0 * - ( 54 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND ( - col1 )
----

query II rowsort
SELECT DISTINCT - col2 * - col1, + col0 + + - 67 AS col0 FROM tab2
----
1173
-21
3080
-3
3886
8

query I rowsort
SELECT 73 * - 35 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( + 4 ) AND 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * - col0 col2 FROM tab0 WHERE NOT - - 64 >= - col2
----

query I rowsort
SELECT DISTINCT 94 * - col2 FROM tab0
----
-4418
-9306
-940

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 * - + col2 ) BETWEEN - col2 * + 90 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 42 - 9 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT - col0 DIV + col0 - col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2570
SELECT - col0 / + col0 - col2 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT ALL - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - col1 * 31 * - 59 AS col0 FROM tab2 AS cor0
----
122543
140833
93279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - col0 ) ) * + col2 col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 61 + - col2 AS col1 FROM tab2 WHERE NOT NULL <> + ( + - 74 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 > NULL
----

query II rowsort
SELECT ALL - col1, 49 + 11 AS col0 FROM tab1
----
-14
60
-47
60
-5
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 13 + + - col2 / + 99 ) NOT IN ( 77 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT col0 + 86 DIV - + 73 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT col0 + 86 / - + 73 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL MAX( + + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL MAX ( + + col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT ( ( + - col1 ) ) + col1 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - 50 * - 4 AS col1 FROM tab2 AS cor0
----
200

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 48 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT - 9 DIV - - 1 + - - col2 AS col2 FROM tab1 AS cor0
----
50
59
87

skipif mysql # not compatible
query I rowsort label-2583
SELECT - 9 / - - 1 + - - col2 AS col2 FROM tab1 AS cor0
----
50
59
87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( col0 )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND ( + col2 / - 51 + + col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT + COUNT( ALL + 33 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT + COUNT ( ALL + 33 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 27 * + + col1 AS col2 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2588
SELECT CAST( NULL AS SIGNED ) + + + CAST( - ( col2 ) AS DECIMAL ) + - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( NULL AS INTEGER ) + + + CAST ( - ( col2 ) AS REAL ) + - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL ( COUNT( * ) ) * 70 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL ( COUNT ( * ) ) * 70 FROM tab0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT col1 + + CAST( ( 91 ) AS SIGNED ) * - col1 AS col0 FROM tab2
----
-4590
-6030
-6930

skipif mysql # not compatible
query I rowsort label-2590
SELECT col1 + + CAST ( ( 91 ) AS INTEGER ) * - col1 AS col0 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT ALL - ( 3 ) * + - ( col0 ) * + col0 + ( 88 ) AS col0 FROM tab2
----
12376
16963
6436

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2592
SELECT ALL - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) DIV - col1 + + col2 AS col1 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) / - col1 + + col2 AS col1 FROM tab1
----
69
76
99

query I rowsort
SELECT ALL - - col2 * col2 + + col0 FROM tab0 WHERE + col0 NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - + col0 NOT BETWEEN - col1 * - + 22 AND - + col1
----

query I rowsort
SELECT ALL - + col0 + + ( + col2 ) FROM tab2 WHERE - col2 IS NOT NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL COUNT( * ) + - + CAST( AVG ( ALL ( col1 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL COUNT ( * ) + - + CAST ( AVG ( ALL ( col1 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col0 * - col0, col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 75 * + col1 col0 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT - col1 - + + ( - col1 ) AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col0 - ( + - col2 ) AS col1, 75 AS col0 FROM tab0
----
196
75
62
75
97
75

query I rowsort
SELECT DISTINCT - - 20 FROM tab0 cor0
----
20

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT 14 = ( - + ( ( + col1 ) ) )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT - 6 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 6 / - - COUNT ( * ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT col0 * - 58 + + col1 AS col1 FROM tab1 cor0
----
-2944
-4925
-5231

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + COUNT( * ) * + - 67 + + + 66 AS col1 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + COUNT ( * ) * + - 67 + + + 66 AS col1 FROM tab0 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2608
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2608
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT col1, 7 + - 3 AS col2 FROM tab0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT MIN( + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2610
SELECT DISTINCT MIN ( + col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 / ( + + col2 ) <> NULL
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 70 * col2 <= NULL OR ( + 75 ) IS NULL
----

query I rowsort
SELECT - ( + 75 ) AS col2 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT 10 * + + COUNT( col0 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2615
SELECT 10 * + + COUNT ( col0 ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + SUM( col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2616
SELECT + SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT DISTINCT + + 25 + + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + + 25 + + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col0 + + 29 - + col1 * col1 AS col2 FROM tab2
----
-2618
-4535
-5964

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - 83 * + col2 + + col2 FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT - + col0 + + - col2 AS col1 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) * - SUM( + col1 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - SUM ( + col1 ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 77 * 29 + + 12 AS col1 FROM tab0 cor0
----
2245
2245
2245

query I rowsort
SELECT ALL - 56 * - col2 * + 68 + - col2 + - 77 + - ( + 83 ) FROM tab1 AS cor0
----
224453
258716
365312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2625
SELECT - + CAST( - col1 AS SIGNED ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-2625
SELECT - + CAST ( - col1 AS INTEGER ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL col0 * 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 67 col2 FROM tab2 AS cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT COUNT( ALL - col2 ) * 67 AS col1 FROM tab1 cor0
----
201

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT COUNT ( ALL - col2 ) * 67 AS col1 FROM tab1 cor0
----
201

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 <= 61 / + 62 * + + 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT 60 DIV ( - col2 ) * + col0 FROM tab0
----
-15
-522
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT 60 / ( - col2 ) * + col0 FROM tab0
----
-15
-522
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> - + 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT 1 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT 1 / + col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2633
SELECT DISTINCT SUM( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT SUM ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 92 + col0 FROM tab0
----
107
179
189

query I rowsort
SELECT - 8 - + 9 AS col0 FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT 64 + - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----
64

skipif mysql # not compatible
query I rowsort label-2636
SELECT 64 + - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----
64

query I rowsort
SELECT + ( - col0 ) + col2 + - + 67 FROM tab1 AS cor0
----
-22
-90
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COUNT( - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2638
SELECT COUNT ( - - col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT + COUNT( * ), 4 AS col0 FROM tab0
----
3
4

skipif mysql # not compatible
query II rowsort label-2640
SELECT + COUNT ( * ), 4 AS col0 FROM tab0
----
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL + CAST( - - CAST( + + 14 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + CAST ( - - CAST ( + + 14 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab0 AS cor0
----
-93

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT col0 * - 58 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT col0 * - 58 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 39 ) AND - 26
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 57 / - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL + MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2, + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - 55 + + col2 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 + col2 = 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT - col0 + col0 * + - col1 AS col2 FROM tab1 cor0
----
-4368
-510
-765

query I rowsort
SELECT DISTINCT + - 60 * col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - COUNT( DISTINCT + - ( + 36 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2654
SELECT - COUNT ( DISTINCT + - ( + 36 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + MAX( ALL - 19 ) AS col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2655
SELECT + MAX ( ALL - 19 ) AS col1 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - col1 + + 95 + - ( + + 35 ) AS col0 FROM tab0 AS cor0
----
-21
39
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT + COUNT( * ) + - 33 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2657
SELECT + COUNT ( * ) + - 33 FROM tab0 cor0
----
-30

query I rowsort
SELECT + + 27 + + - col2 FROM tab2 AS cor0
----
-13
-31
4

query I rowsort
SELECT col0 + + + 24 FROM tab1
----
109
115
75

query I rowsort
SELECT ALL col1 - + col2 + + col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col0 * + - 26 * 4 * - + 10 AS col1 FROM tab2
----
-47840
-66560
-78000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT + - 75 * col0 + - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IN ( 79 / 98 * - - col0, + 39 * CAST( NULL AS SIGNED ) * - + col0 )
----

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + - 75 * col0 + - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IN ( 79 / 98 * - - col0, + 39 * CAST ( NULL AS INTEGER ) * - + col0 )
----

query I rowsort
SELECT DISTINCT - + col0 - + + col2 + - col1 + + col0 * col2 + - col1 * - 14 * - - col2 AS col2 FROM tab1 AS cor0
----
23551
50726
8996

query I rowsort
SELECT DISTINCT - 33 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col1 col1 FROM tab2 cor0 WHERE NOT NULL = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + - 75 / - + MAX( DISTINCT + col0 ) + + - 72 * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE + 64 IN ( + - col2, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + - 75 / - + MAX ( DISTINCT + col0 ) + + - 72 * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE + 64 IN ( + - col2, - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL - SUM( DISTINCT - col1 ) * COUNT( - - col0 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - SUM ( DISTINCT - col1 ) * COUNT ( - - col0 ) FROM tab1 AS cor0
----
198

query II rowsort
SELECT DISTINCT + 37, + 37 AS col2 FROM tab0 AS cor0
----
37
37

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2670
SELECT col2 DIV col2 * col0 AS col2, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-2670
SELECT col2 / col2 * col0 AS col2, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
51
64
77
75
67

query II rowsort
SELECT - col1 AS col1, col1 + - 82 AS col2 FROM tab2
----
-51
-31
-67
-15
-77
-5

query I rowsort
SELECT DISTINCT 45 FROM tab0 WHERE col2 < - 36
----

query II rowsort
SELECT 18 AS col2, + 10 * - col0 AS col1 FROM tab2
----
18
-460
18
-640
18
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT DISTINCT 11 DIV + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT 11 / + - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT 62 DIV 33 + 79 col0 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2675
SELECT DISTINCT 62 / 33 + 79 col0 FROM tab0
----
80

query I rowsort
SELECT ALL 3 + + + 59 FROM tab0 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 + - col1 col0 FROM tab2 AS cor0
----
-105
-115
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COUNT ( - col1 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 94 AS col0, - col2 FROM tab0 AS cor0
----
94
-10
94
-47
94
-99

query II rowsort
SELECT ALL col2, col0 AS col2 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT COUNT( * ) + - MIN( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( * ) + - MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT ( 94 ) + + + col0 FROM tab0 AS cor0
----
109
181
191

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 * - 26 ) IN ( + ( + + 8 ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - MAX( + + col2 ) + - 27 AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - MAX ( + + col2 ) + - 27 AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + 35 + + col1 + - col1 + + - col1 * - col1 * col2 FROM tab2 AS cor0 WHERE 7 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - col2 ) ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 * 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL COUNT( col0 ) - 17 FROM tab1 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL COUNT ( col0 ) - 17 FROM tab1 cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT - CAST( NULL AS SIGNED ) - + - 41 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT - CAST ( NULL AS INTEGER ) - + - 41 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 88 + - ( + 64 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + 36 - - COUNT( * ) col1 FROM tab2
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT + 36 - - COUNT ( * ) col1 FROM tab2
----
39

query III rowsort
SELECT * FROM tab0 WHERE 76 > + col0 - + 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + col2 col1 FROM tab0
----
100
128
31

query I rowsort
SELECT + ( - ( - 54 ) ) FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 31 + + - 21 FROM tab0
----
10
10
10

query I rowsort
SELECT col2 + - - 4 * + - col0 + + - col2 * - + 14 FROM tab2
----
161
344
570

query II rowsort
SELECT - + col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 85 * - - col1 IS NULL
----

query I rowsort
SELECT col2 * - + col1 FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) ) * ( - - 83 ) * + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * ( - - 83 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col2 * + - 74 AS col1 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT ALL - 1 DIV - 83 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - 1 / - 83 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - ( + 26 ) AS col1 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT ALL col0 * + 77 AS col1 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - 3 * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - 3 * + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col1 + 47 FROM tab2
----
114
124
98

query I rowsort
SELECT DISTINCT - col2 + + + 59 FROM tab0 AS cor0
----
-40
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT - MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT - MAX ( + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT 13 DIV - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-2711
SELECT 13 / - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT col0 FROM tab0 WHERE - + 9 * + - col2 * - col1 + col2 + + + col2 < ( NULL )
----

query I rowsort
SELECT ALL - 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT COUNT( ALL - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT COUNT ( ALL - col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COUNT( * ) - + MIN( - 96 ) AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COUNT ( * ) - + MIN ( - 96 ) AS col1 FROM tab1 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT - col1 DIV + col1 + col2 AS col2 FROM tab0 cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-2716
SELECT - col1 / + col1 + col2 AS col2 FROM tab0 cor0
----
46
9
98

query I rowsort
SELECT DISTINCT - 65 * - col1 + 21 AS col0 FROM tab0 AS cor0
----
1386
5286
86

query II rowsort
SELECT - - 88 + - 38 + 95 * + 15, col0 AS col2 FROM tab0 AS cor0
----
1475
15
1475
87
1475
97

query I rowsort
SELECT ALL - - col1 - - - 75 FROM tab0 AS cor0
----
-54
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT - COUNT( * ) * - 49 + COUNT( + col0 ) + + 86 FROM tab0 AS cor0
----
236

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - COUNT ( * ) * - 49 + COUNT ( + col0 ) + + 86 FROM tab0 AS cor0
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT - 64 DIV col0 + + col1 FROM tab0 AS cor0
----
1
21
77

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 64 / col0 + + col1 FROM tab0 AS cor0
----
1
21
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT ALL 64 * - col1 * - 63 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL 64 * - col1 * - 63 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT CAST( NULL AS SIGNED ) + - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT CAST ( NULL AS INTEGER ) + - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - - + col1 * col2 - - col2 + col2 AS col1 FROM tab0
----
209
296
3820

query I rowsort
SELECT ( ( - - 20 ) ) * col1 AS col2 FROM tab2
----
1020
1340
1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2727
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 60 + col0 FROM tab0 AS cor0
----
147
157
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + col0 col1 FROM tab1 cor0
----
-1785
-2975
-3185

query II rowsort
SELECT ALL + ( 19 ) * - + col0 AS col0, - 3 * + col0 - + col0 + + ( + col0 ) FROM tab2 AS cor0
----
-1216
-192
-1425
-225
-874
-138

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE NOT col1 * - + 52 * col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - col1 DIV - - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT - col1 / - - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT 11 * - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-1070
-654
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT ALL - + 80 * - col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - + 80 * - col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2735
SELECT ALL + - COUNT( * ) * + COUNT( * ) AS col0, 86 FROM tab0 WHERE NOT NULL > - 64 + - + CAST( NULL AS SIGNED ) + - col2
----
0
86

skipif mysql # not compatible
query II rowsort label-2735
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) AS col0, 86 FROM tab0 WHERE NOT NULL > - 64 + - + CAST ( NULL AS INTEGER ) + - col2
----
0
86

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + 38 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 51
----

query I rowsort
SELECT ALL 17 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
17
17
17

query I rowsort
SELECT ALL col2 + ( + - col2 ) + - col1 + + 40 AS col2 FROM tab0
----
-41
19
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT col1 DIV - 33 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT col1 / - 33 FROM tab0
----
-2
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2741
SELECT - + CAST( + CAST( - + col2 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2741
SELECT - + CAST ( + CAST ( - + col2 AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT + col1 * - CAST( + - 83 AS SIGNED ) + 80 FROM tab2 AS cor0
----
4313
5641
6471

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + col1 * - CAST ( + - 83 AS INTEGER ) + 80 FROM tab2 AS cor0
----
4313
5641
6471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2743
SELECT + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + - SUM( ALL - 91 ) * - - 66 + + 52 + - 70 * + SUM( + 86 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2744
SELECT + - SUM ( ALL - 91 ) * - - 66 + + 52 + - 70 * + SUM ( + 86 ) FROM tab0 cor0
----
10

query I rowsort
SELECT + - 4 + col1 FROM tab0 cor0
----
-3
17
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 9 * + col0 * - 89 * + 77
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - - col1 + col1 + 25 * 70 = + ( - + 47 )
----

query I rowsort
SELECT ALL + 45 AS col1 FROM tab0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT ALL 18 DIV + 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL 18 / + 81 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT ( MIN( + 63 ) ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT ( MIN ( + 63 ) ) AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL - 60 + + + col0 * - 3 FROM tab2 AS cor0
----
-198
-252
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT - COUNT( * ) + 52 col1 FROM tab2 cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT DISTINCT - COUNT ( * ) + 52 col1 FROM tab2 cor0
----
49

query I rowsort
SELECT ALL + - 81 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-81
-81
-81

query I rowsort
SELECT ALL - - ( 75 ) + 85 FROM tab2 AS cor0
----
160
160
160

query I rowsort
SELECT ALL + col1 - - 77 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL + MAX( col2 ) * - - 35 AS col1 FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND col2 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + MAX ( col2 ) * - - 35 AS col1 FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND col2 + + col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * - col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT DISTINCT CAST( - - 63 AS SIGNED ) - + col1 * - col2 * col0 * - col2 * + + col0 FROM tab0
----
-15894837
-40258962
-92217546

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT CAST ( - - 63 AS INTEGER ) - + col1 * - col2 * col0 * - col2 * + + col0 FROM tab0
----
-15894837
-40258962
-92217546

query II rowsort
SELECT col2, 37 AS col0 FROM tab2
----
23
37
40
37
58
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2760
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - MAX( ALL + + 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-2761
SELECT - MAX ( ALL + + 68 ) FROM tab1
----
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN col0 AND + col2
----
51
14
96

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT + col0 * col2 * + 54 FROM tab2
----
138240
234900
57132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT 13 DIV - - COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2765
SELECT 13 / - - COUNT ( * ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT 21 * COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2766
SELECT 21 * COUNT ( * ) AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT - CAST( + - MAX( DISTINCT + + col2 ) AS SIGNED ) * + - COUNT( DISTINCT 89 ) * - COUNT( col1 ) FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-2767
SELECT - CAST ( + - MAX ( DISTINCT + + col2 ) AS INTEGER ) * + - COUNT ( DISTINCT 89 ) * - COUNT ( col1 ) FROM tab2 cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT 51 * - - col2 / + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT 51 * - - col2 / + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 26 + 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

query I rowsort
SELECT ALL + - 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL + + col1 / + col1 - + col0 - col2 + 25 * - + 58 FROM tab2 cor0 WHERE NOT - 71 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - 21 AS col0 FROM tab2 cor0
----
-19
-2
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT - + 7 * - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0 cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-2773
SELECT - + 7 * - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0 cor0
----
21
3

query I rowsort
SELECT DISTINCT + ( + - col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT 74 * - - col0 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT + col0 + + 31 FROM tab1
----
116
122
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - ( - + col1 ) + + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + col2 + 26 col0 FROM tab2
----
1666
3448
578

query I rowsort
SELECT ALL + + AVG ( ALL 42 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - 39 ) + + - 88 FROM tab2 AS cor0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 - col2 * - col1 col2 FROM tab0 AS cor0
----
204
3801
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2785
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2785
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ( + + col2 ), - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - MIN( ALL - - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2787
SELECT - MIN ( ALL - - col1 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) NOT IN ( - 82, col2 * 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + MAX( DISTINCT 46 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2790
SELECT + MAX ( DISTINCT 46 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL SUM( ALL - - 55 ) AS col0 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL SUM ( ALL - - 55 ) AS col0 FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - - 43 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2792
SELECT - - 43 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT COUNT( * ) * - + CAST( + - 73 AS SIGNED ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2793
SELECT COUNT ( * ) * - + CAST ( + - 73 AS INTEGER ) FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND - 93
----

query I rowsort
SELECT DISTINCT + 70 * - col0 FROM tab2 AS cor0
----
-3220
-4480
-5250

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab1
----
51
85
91

query II rowsort
SELECT ALL col1, 98 AS col0 FROM tab1
----
14
98
47
98
5
98

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT + - 94 + + 96 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + - col0 * - 7 FROM tab1
----
408
680
728

query I rowsort
SELECT + col0 + - - ( + col1 ) FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT ALL - 54 AS col2, col2 FROM tab2 AS cor0
----
-54
23
-54
40
-54
58

query I rowsort
SELECT ALL - ( 22 ) + - 78 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
-100
-100
-100

query I rowsort
SELECT - + 86 FROM tab0 AS cor0 WHERE 11 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 79 + + + 84 + col1 AS col1 FROM tab1 AS cor0
----
10
19
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + + 74 + CAST( NULL AS SIGNED ) + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + + 74 + CAST ( NULL AS INTEGER ) + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col1 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
2272
4811
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + + 10 * + + SUM( + col0 ) FROM tab1 AS cor0
----
2270

skipif mysql # not compatible
query I rowsort label-2810
SELECT + + 10 * + + SUM ( + col0 ) FROM tab1 AS cor0
----
2270

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL COUNT( * ) col1 FROM tab0 WHERE NOT col0 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2811
SELECT ALL COUNT ( * ) col1 FROM tab0 WHERE NOT col0 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT + 57 DIV col1 DIV col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT + 57 / col1 / col2 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE 63 * + ( - + 47 ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT - COUNT( * ) * - 71 FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - COUNT ( * ) * - 71 FROM tab2 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2815
SELECT AVG ( DISTINCT col0 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT AVG ( DISTINCT col0 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + + col0 + + col2 * - + col1 AS col1, - 4 FROM tab1 AS cor0
----
-1293
-4
-210
-4
-3105
-4

query I rowsort
SELECT ALL + 44 + - 25 AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + col0 * 34 FROM tab1
----
1734
2890
3094

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + 3 + + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - 10 * - 2 AS col0 FROM tab2 AS cor0
----
1280
1500
920

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT - - SUM( + col2 ) * - 97 FROM tab2 AS cor0
----
-11737

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - - SUM ( + col2 ) * - 97 FROM tab2 AS cor0
----
-11737

query II rowsort
SELECT ALL + + col2, col2 + + col2 FROM tab0 cor0
----
10
20
47
94
99
198

query I rowsort
SELECT + 47 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT + + col2 DIV - + 75 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + + col2 / - + 75 AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - - ( + - 76 ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT 22 + col0 AS col2 FROM tab1 WHERE - col2 BETWEEN - col0 AND + col2
----
107
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL - 52 * - MAX( DISTINCT 47 ) FROM tab0
----
2444

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL - 52 * - MAX ( DISTINCT 47 ) FROM tab0
----
2444

query I rowsort
SELECT 57 * + + 74 AS col1 FROM tab1
----
4218
4218
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT ALL - col2 * col1 DIV + col1 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - col2 * col1 / + col1 AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + 95 * - + COUNT( ALL - ( + col2 ) ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 95 * - + COUNT ( ALL - ( + col2 ) ) FROM tab1
----
-285

query I rowsort
SELECT + 62 * + col2 AS col0 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL + col1 * - col0 * + ( col1 ) AS col2 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + 35
----

query I rowsort
SELECT ALL - col2 + - col1 - col1 + - - 26 + + + col2 * + ( + col1 ) FROM tab1 WHERE + - col2 <= + 19 * 3 / 43 * - + col1 * col2 + + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - 55 col1 FROM tab2
----
-4
12
22

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE ( - 77 ) > - 25 * - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 70 ) = col0 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 + - + col1 * + + 75 / + - col0 AND + 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2840
SELECT ALL 5 AS col1, - 13 DIV - ( - COUNT( * ) ) FROM tab2 AS cor0
----
5
-4

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL 5 AS col1, - 13 / - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
5
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 80 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT DISTINCT + - COUNT( * ) * + COUNT( + 42 ) + - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( + 42 ) + - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0 cor0
----
-18

query I rowsort
SELECT + 40 + - 40 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 + - ( - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - + col2 + + + col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 30 AS col2, 31 AS col2 FROM tab1
----
30
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT - MIN( DISTINCT + 37 ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - MIN ( DISTINCT + 37 ) AS col1 FROM tab0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT - CAST( NULL AS SIGNED ) + + col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT - CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col1, - 97 FROM tab2
----
51
-97
67
-97
77
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + 2 + col2 + 90 col2 FROM tab1
----
139
158
64

query I rowsort
SELECT ALL + col2 - - col1 + + col0 AS col2 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # DIV for integer division: 
query II rowsort label-2853
SELECT DISTINCT - ( + - col1 ) DIV + col2 - + 5 AS col2, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5
14
-5
47
-5
5

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT - ( + - col1 ) / + col2 - + 5 AS col2, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5
14
-5
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + + MAX( 62 ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2854
SELECT + + MAX ( 62 ) AS col0 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT + ( CAST( + AVG ( DISTINCT ( + col2 ) ) AS SIGNED ) ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2855
SELECT + ( CAST ( + AVG ( DISTINCT ( + col2 ) ) AS INTEGER ) ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT COUNT( + - col0 ) AS col0 FROM tab2 WHERE + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT COUNT ( + - col0 ) AS col0 FROM tab2 WHERE + - col1 IS NULL
----
0

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 55 * + 29 FROM tab0
----
1595

query I rowsort
SELECT + - 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT + col0 * - 53 * - 10 * + 16 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT ALL col2 DIV col2 * - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL col2 / col2 * - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col0 * - + col2 / - 82, - 34 / - col2 * - + col1 + + col2 * - col1 AS col2 FROM tab1 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL + + 9 * - COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + + 9 * - COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-2864
SELECT - col1 DIV + 95 AS col2, 75 FROM tab0 AS cor0
----
0
75
0
75
0
75

skipif mysql # not compatible
query II rowsort label-2864
SELECT - col1 / + 95 AS col2, 75 FROM tab0 AS cor0
----
0
75
0
75
0
75

query I rowsort
SELECT ( - + 69 ) AS col0 FROM tab0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT DISTINCT col2 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL 14 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 14 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2868
SELECT DISTINCT * FROM tab2 WHERE ( + col1 - + ( CAST( - col1 AS SIGNED ) ) ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2868
SELECT DISTINCT * FROM tab2 WHERE ( + col1 - + ( CAST ( - col1 AS INTEGER ) ) ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 5 col2 FROM tab2
----
230
320
375

query I rowsort
SELECT ALL 80 * - - 91 * - col1 AS col2 FROM tab0
----
-152880
-589680
-7280

query I rowsort
SELECT - col0 * ( - col0 ) AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + + col1 * + - col0 * ( ( col0 ) ) - col2 - - col1 FROM tab2 AS cor0
----
-107888
-315355
-376866

query I rowsort
SELECT DISTINCT col0 + - 89 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT - col1 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + SUM( 50 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
450

skipif mysql # not compatible
query I rowsort label-2875
SELECT + SUM ( 50 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2876
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 28 + - col1 * + - col0 AS col2 FROM tab0
----
1243
125
1855

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT DISTINCT MIN( - 22 ), 93 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-22
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2878
SELECT DISTINCT MIN ( - 22 ), 93 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-22
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) + - 47 + - col1 col2 FROM tab2 AS cor0
----
-39
-52
-60

query I rowsort
SELECT DISTINCT + col0 + col1 + + col1 * - - col0 * + 98 * col1 FROM tab2 AS cor0
----
11725405
32994292
37186829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * - + 50 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-2881
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * - + 50 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT - - ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > - 17
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > - 17
----
0

query I rowsort
SELECT DISTINCT - ( + + col2 ) + - - 27 FROM tab0 cor0
----
-20
-72
17

query I rowsort
SELECT DISTINCT 84 * + col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - - col2 * + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - - col0
----

query I rowsort
SELECT - 85 * col0 AS col1 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT - COUNT( * ) - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + + 83 AS col2 FROM tab2
----
129
147
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - SUM( DISTINCT + col1 ) - - 91 AS col0 FROM tab2
----
-104

skipif mysql # not compatible
query I rowsort label-2892
SELECT - SUM ( DISTINCT + col1 ) - - 91 AS col0 FROM tab2
----
-104

query I rowsort
SELECT 7 * - + col1 FROM tab1 WHERE - col2 BETWEEN NULL AND + - 82 * + + col2
----

query II rowsort
SELECT - - 21 * + ( col0 ) - + 72 AS col1, - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + - 39 AS col0 FROM tab0 cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 23 AS col2, 18 col2 FROM tab0
----
23
18
23
18
23
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col1 + - - col1 + - - 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - - MIN( DISTINCT + + 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - - MIN ( DISTINCT + + 88 ) FROM tab2 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + + SUM( ALL - - col0 ) FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT + + SUM ( ALL - - col0 ) FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <= + 51
----
-67

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * col2 - + - 75 AND + 77 * - 16 * 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT SUM( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT - col0 >= + 90 - + 50
----
223

skipif mysql # not compatible
query I rowsort label-2906
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT - col0 >= + 90 - + 50
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ALL - COUNT( * ) * COUNT( * ) col2 FROM tab1 WHERE NOT NULL NOT IN ( + 77 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2907
SELECT ALL - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 WHERE NOT NULL NOT IN ( + 77 )
----
0

query I rowsort
SELECT DISTINCT - col0 * 71 * - 73 AS col0 FROM tab2
----
238418
331712
388725

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( - 53 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( - 53 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL - 21 DIV + - 16 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - 21 / + - 16 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2911
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2911
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2912
SELECT ALL * FROM tab0 WHERE - col1 - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2912
SELECT ALL * FROM tab0 WHERE - col1 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-51

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-51

query II rowsort
SELECT DISTINCT - - col2 * + 87, col2 FROM tab0 AS cor0
----
4089
47
8613
99
870
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ( COUNT( DISTINCT - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2916
SELECT ( COUNT ( DISTINCT - col0 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT - 54 * + CAST( 85 AS SIGNED ) AS col1, - COUNT( * ) FROM tab2
----
-4590
-3

skipif mysql # not compatible
query II rowsort label-2917
SELECT - 54 * + CAST ( 85 AS INTEGER ) AS col1, - COUNT ( * ) FROM tab2
----
-4590
-3

query I rowsort
SELECT - 6 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE 59 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT DISTINCT col0 DIV + 7 FROM tab2
----
10
6
9

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT col0 / + 7 FROM tab2
----
10
6
9

query I rowsort
SELECT - - 47 * col1 + + col2 + + col1 * + col1 FROM tab0 AS cor0
----
10415
1438
147

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + - 23 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT ALL - col0 + - col0 * + 25 - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1247
-1741
-2017

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - col0 + - col0 * + 25 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1247
-1741
-2017

query I rowsort
SELECT ALL - ( - 96 ) * - + ( ( + col0 ) ) FROM tab1 cor0
----
-4896
-8160
-8736

query I rowsort
SELECT - col1 + - - 46 FROM tab1 cor0
----
-1
32
41

query I rowsort
SELECT + 90 + - col1 AS col0 FROM tab2 cor0
----
13
23
39

query I rowsort
SELECT + + 40 + - + col1 FROM tab0 AS cor0
----
-41
19
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2928
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1, + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2928
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1, + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 + col2 + + 44 BETWEEN + - 93 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - 18 AS col1 FROM tab0 WHERE NOT col1 + col0 > - - 48 / - col2 + + 33
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 + - 66 + col2 AS col2 FROM tab1 cor0
----
-2
44
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL MIN( ALL + col0 ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT ALL MIN ( ALL + col0 ) col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + ( + col0 ) * + col1 + + + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 75
----
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT - SUM( ALL + ( - 73 ) ) AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - SUM ( ALL + ( - 73 ) ) AS col2 FROM tab1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 87 FROM tab2 AS cor0
----
-46
-87
-64
-87
-75
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - col0 DIV col2 + 87 AS col0 FROM tab0 cor0
----
79
87
87

skipif mysql # not compatible
query I rowsort label-2939
SELECT - col0 / col2 + 87 AS col0 FROM tab0 cor0
----
79
87
87

query I rowsort
SELECT ALL - - 80 AS col0 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT 32 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
2774
3005
433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT + 57 DIV + COUNT( + col0 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 57 / + COUNT ( + col0 ) FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, 10 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 < NULL
----

query II rowsort
SELECT DISTINCT - col2, 30 + - col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL + CAST( col2 AS SIGNED ) * col2 * + col1 * col1 AS col1 FROM tab2
----
1375929
15100996
9486400

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + CAST ( col2 AS INTEGER ) * col2 * + col1 * col1 AS col1 FROM tab2
----
1375929
15100996
9486400

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 61 * + + col1 FROM tab1
----
2867
305
854

query II rowsort
SELECT - + col1 AS col1, - col2 FROM tab0 WHERE NOT + + 24 IS NULL
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 36, + 71 + + - 60 col2 FROM tab2 AS cor0
----
-36
11

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT + - col0 + + col0 * + 63 FROM tab1 AS cor0
----
3162
5270
5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT 96 DIV COUNT( 35 ) + COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-2953
SELECT 96 / COUNT ( 35 ) + COUNT ( * ) FROM tab1
----
35

query I rowsort
SELECT ALL + - col1 * + + col0 + 25 FROM tab1 AS cor0
----
-400
-4252
-689

query II rowsort
SELECT ALL + - 54 + - 0 AS col2, - col1 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-54
-145
-54
-2118
-54
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT 40 * - col2 + 68 * col2 DIV + + col2 FROM tab2 AS cor0
----
-1532
-2252
-852

skipif mysql # not compatible
query I rowsort label-2956
SELECT 40 * - col2 + 68 * col2 / + + col2 FROM tab2 AS cor0
----
-1532
-2252
-852

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 95 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 56 * + col0 * + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2959
SELECT + CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 99 * - col1 AND - CAST( + - col1 AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 99 * - col1 AND - CAST ( + - col1 AS INTEGER ) * - 6
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 * + 50 BETWEEN + col2 * - col0 AND - 37 * + + col1 * col0 / + - col2
----
85
5
59

query I rowsort
SELECT DISTINCT + col1 * col1 - col0 + 69 FROM tab2
----
2624
4483
5934

query I rowsort
SELECT col1 * 27 + - + col2 AS col1 FROM tab1
----
1201
282
76

query II rowsort
SELECT col2, - col2 + - 0 AS col1 FROM tab2 WHERE - + 40 IS NOT NULL
----
23
-23
40
-40
58
-58

query I rowsort
SELECT col2 * - 75 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT ALL 24 * + - 63 AS col2 FROM tab0
----
-1512
-1512
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + COUNT( * ) * + 12 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2966
SELECT + COUNT ( * ) * + 12 AS col2 FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT - + col1 DIV - - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT - + col1 / - - col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT + + SUM( DISTINCT + CAST( - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + + SUM ( DISTINCT + CAST ( - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - ( - + 34 ) * - - SUM( + col0 ) * + ( - COUNT( - col1 ) ) FROM tab1 AS cor0
----
-23154

skipif mysql # not compatible
query I rowsort label-2969
SELECT - ( - + 34 ) * - - SUM ( + col0 ) * + ( - COUNT ( - col1 ) ) FROM tab1 AS cor0
----
-23154

query II rowsort
SELECT + + col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT - ( + col2 ) + + 64 AS col1 FROM tab1
----
-32
-4
5

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0 - - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 95 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 95 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT COUNT( * ) + - AVG ( + 77 ) FROM tab1 WHERE ( CAST( col1 AS SIGNED ) * 70 + - col2 ) IN ( + 1 + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT COUNT ( * ) + - AVG ( + 77 ) FROM tab1 WHERE ( CAST ( col1 AS INTEGER ) * 70 + - col2 ) IN ( + 1 + 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL - SUM( ( col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL - SUM ( ( col1 ) ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * + col1 ) NOT BETWEEN ( col1 ) AND + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col0 + + col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL COUNT( * ) * 50 + MAX( DISTINCT + 8 ) FROM tab1
----
158

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL COUNT ( * ) * 50 + MAX ( DISTINCT + 8 ) FROM tab1
----
158

query I rowsort
SELECT + 92 * col1 + 70 AS col2 FROM tab1
----
1358
4394
530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT CAST( + COUNT( - col0 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2981
SELECT CAST ( + COUNT ( - col0 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL 31 * + col0 FROM tab0
----
2697
3007
465

query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab0 WHERE NOT col1 + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT - col0 * + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT - col0 * + col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 38 + + 18 FROM tab1
----
-2224
-2566
-3630

query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - MAX( DISTINCT ( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - MAX ( DISTINCT ( col2 ) ) FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT 39 DIV + col2 - - 14 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2988
SELECT 39 / + col2 - - 14 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - MIN( ALL col2 ) * 27 FROM tab2
----
-621

skipif mysql # not compatible
query I rowsort label-2989
SELECT - MIN ( ALL col2 ) * 27 FROM tab2
----
-621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( 0 ) * + col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * 74 col2 FROM tab2
----
-1332
-1332
-1332

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = NULL
----

query I rowsort
SELECT - 17 * col1 + - col2 AS col2 FROM tab0
----
-116
-1424
-367

query I rowsort
SELECT ALL col0 * + col0 + col1 AS col0 FROM tab2 cor0
----
2167
4173
5692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - 76 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - 76 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2998
SELECT ALL * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT ALL * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT MIN( + ( + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT MIN ( + ( + col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 87 + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE NOT col0 * - col2 NOT BETWEEN col1 + - 15 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL COUNT( - 74 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL COUNT ( - 74 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 66 FROM tab1 AS cor0 CROSS JOIN tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL - CAST( col1 AS SIGNED ) + + col0 * col2 AS col2 FROM tab2
----
1007
2483
4283

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - CAST ( col1 AS INTEGER ) + + col0 * col2 AS col2 FROM tab2
----
1007
2483
4283

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + + 23 * 90 IN ( - 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 40 * - col2 FROM tab2 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + COUNT( * ) + + 55 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + COUNT ( * ) + + 55 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT ALL + col1 / + CAST( NULL AS SIGNED ) + - 75 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) + - 75 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT - CAST( col0 AS SIGNED ) + col1 * + col1 AS col1 FROM tab2 AS cor0
----
2555
4414
5865

skipif mysql # not compatible
query I rowsort label-3011
SELECT - CAST ( col0 AS INTEGER ) + col1 * + col1 AS col1 FROM tab2 AS cor0
----
2555
4414
5865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 57 col1 FROM tab1 AS cor0 WHERE + col1 * col2 IS NOT NULL
----
3363
3876
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT - CAST( 30 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0 WHERE ( 89 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CAST ( 30 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0 WHERE ( 89 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT - 87 * ( 41 ) + - COUNT( * ) * - 32 AS col0 FROM tab1 AS cor0
----
-3471

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - 87 * ( 41 ) + - COUNT ( * ) * - 32 AS col0 FROM tab1 AS cor0
----
-3471

query I rowsort
SELECT DISTINCT + col1 - col0 * col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > - col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > - col2 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + 85 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + 85 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 - col0 col1 FROM tab2 AS cor0
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + 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-3020
SELECT + MAX ( col2 ) col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 93 * - col1 FROM tab0
----
1953
7533
93

query I rowsort
SELECT ALL - 0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * + 9 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT MAX( ALL - 12 ) * - 79 AS col0 FROM tab1
----
948

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT MAX ( ALL - 12 ) * - 79 AS col0 FROM tab1
----
948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT DISTINCT - 54 DIV - SUM( ALL col0 ) * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 54 / - SUM ( ALL col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * - + 44 FROM tab1 AS cor0
----
-2244
-3740
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab0 cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3030
SELECT * FROM tab0 cor0 WHERE NOT ( CAST( CAST( ( 87 ) AS DECIMAL ) AS SIGNED ) * - ( col0 * col2 ) + col2 ) BETWEEN + col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3030
SELECT * FROM tab0 cor0 WHERE NOT ( CAST ( CAST ( ( 87 ) AS REAL ) AS INTEGER ) * - ( col0 * col2 ) + col2 ) BETWEEN + col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT DISTINCT - - CAST( - - COUNT( DISTINCT col2 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT DISTINCT - - CAST ( - - COUNT ( DISTINCT col2 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT + + 49 / CAST( NULL AS SIGNED ) * 69 + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + + 49 / CAST ( NULL AS INTEGER ) * 69 + - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL MAX( - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL MAX ( - - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL MIN( - ( + 86 ) ) FROM tab2, tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL MIN ( - ( + 86 ) ) FROM tab2, tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT MIN( ALL + 53 ) * + 14 + + 64 FROM tab1, tab1 AS cor0
----
806

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT MIN ( ALL + 53 ) * + 14 + + 64 FROM tab1, tab1 AS cor0
----
806

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT - 89 + + 63 + - col0 DIV + col2 col2 FROM tab2 AS cor0
----
-27
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT DISTINCT - 89 + + 63 + - col0 / + col2 col2 FROM tab2 AS cor0
----
-27
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT COUNT( * ) + + 50 AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3037
SELECT COUNT ( * ) + + 50 AS col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT 47 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - - col1 - col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT NULL > ( col0 )
----

query I rowsort
SELECT + - 20 + + 94 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL COUNT( * ) + - COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT ALL COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + 76 )
----

query I rowsort
SELECT + + ( - col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE + col0 + + - col0 / - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 + + - col0 / - col1 >= NULL
----
0

query II rowsort
SELECT DISTINCT + 23, col0 AS col2 FROM tab0 AS cor0
----
23
15
23
87
23
97

query II rowsort
SELECT DISTINCT col0, 14 FROM tab2 cor0
----
46
14
64
14
75
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 AND col0
----

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col0 * - col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 24 AS col0 FROM tab2 WHERE col0 > + ( + col0 )
----

query I rowsort
SELECT + 27 * - - col0 FROM tab2
----
1242
1728
2025

query I rowsort
SELECT DISTINCT + 59 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT MIN( ALL + 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-3052
SELECT MIN ( ALL + 67 ) FROM tab2
----
67

query I rowsort
SELECT ALL - ( col0 ) * + 26 AS col0 FROM tab2 WHERE NOT + 53 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 31 FROM tab2 WHERE ( + - col0 ) = - col0 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + ( - ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0 WHERE ( 45 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3056
SELECT + ( - ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0 WHERE ( 45 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - MIN( ALL + ( - col1 ) ) + + + 59 FROM tab0 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - MIN ( ALL + ( - col1 ) ) + + + 59 FROM tab0 AS cor0
----
140

query I rowsort
SELECT DISTINCT + + 0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col2 - + 18 FROM tab2 cor0 WHERE 48 IN ( 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) + ( + + COUNT( * ) ) - + 62 AS col0 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) + ( + + COUNT ( * ) ) - + 62 AS col0 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT ALL - col1 * - col2 + col2 - + - col2 FROM tab0 AS cor0
----
230
297
3901

query I rowsort
SELECT ALL - 48 + + col1 FROM tab0 AS cor0
----
-27
-47
33

query I rowsort
SELECT ALL + 20 AS col1 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - + COUNT( * ) + + - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-88

skipif mysql # not compatible
query I rowsort label-3064
SELECT - + COUNT ( * ) + + - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-88

query I rowsort
SELECT - ( ( + 35 ) ) * + 37 FROM tab1
----
-1295
-1295
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT col0 DIV 19 AS col0 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3066
SELECT col0 / 19 AS col0 FROM tab2
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - MIN( DISTINCT + 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3067
SELECT - MIN ( DISTINCT + 90 ) FROM tab1
----
-90

query I rowsort
SELECT ALL + col1 + + ( col0 ) + - col2 * + col0 FROM tab1 AS cor0
----
-4831
-4925
-6050

query I rowsort
SELECT + + 98 AS col1 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT ALL - 76 * 47 FROM tab1 AS cor0
----
-3572
-3572
-3572

query I rowsort
SELECT ALL - - col0 + + - col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3073
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col0 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3073
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col0 ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - 31 * + + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 31 * + + COUNT ( * ) FROM tab0
----
-93

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / - col1 / + ( + col1 ) BETWEEN + 24 AND ( 49 ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 24 * - col2 AND + 45 * + col1 + col0
----

query I rowsort
SELECT - ( ( + + col1 ) ) AS col0 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + - 59 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
-59
-15
-59
-87
-59
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col0 + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - 97 * + 75 col0 FROM tab0 cor0
----
-618375
-618375
-618375

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT 99 * MAX( + col1 ) FROM tab0
----
8019

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT 99 * MAX ( + col1 ) FROM tab0
----
8019

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3083
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col2 AS col2, - col1 AS col0 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-3083
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col2 AS col2, - col1 AS col0 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0 * + + col0
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 34 ) IN ( 53 * + col2, - col2 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3086
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3086
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 86 AS col0 FROM tab0 AS cor0
----
86

query I rowsort
SELECT + ( + + col0 ) + - - col0 AS col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL - ( + COUNT( * ) ) * + 56 AS col1 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - ( + COUNT ( * ) ) * + 56 AS col1 FROM tab0 AS cor0
----
-168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 = NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 67 IN ( - + col0 + - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT + col1 DIV + 24 col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3092
SELECT DISTINCT + col1 / + 24 col0 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT + col1 + + 3 - - CAST( 3 AS SIGNED ) AS col0 FROM tab0
----
27
7
87

skipif mysql # not compatible
query I rowsort label-3093
SELECT + col1 + + 3 - - CAST ( 3 AS INTEGER ) AS col0 FROM tab0
----
27
7
87

query I rowsort
SELECT + col2 + - 54 AS col2 FROM tab0
----
-44
-7
45

query II rowsort
SELECT DISTINCT col0 AS col2, col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col1 + col0 * - - 24 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 51 + 27 AS col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL 17 + - col0 + - col1 FROM tab1
----
-121
-48
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-3099
SELECT DISTINCT + col2 DIV ( - 61 ), 70 AS col0 FROM tab2
----
0
70

skipif mysql # not compatible
query II rowsort label-3099
SELECT DISTINCT + col2 / ( - 61 ), 70 AS col0 FROM tab2
----
0
70

query I rowsort
SELECT DISTINCT + col0 - - col2 + + ( + - col0 ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * 43 col2 FROM tab1 cor0
----
1505
1505
1505

query I rowsort
SELECT ALL + 40 - - 90 FROM tab1 AS cor0
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT + MIN( DISTINCT 72 ) * - 83 + - 92 FROM tab2 WHERE NOT ( NOT ( ( ( - col0 ) * col1 ) IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT + MIN ( DISTINCT 72 ) * - 83 + - 92 FROM tab2 WHERE NOT ( NOT ( ( ( - col0 ) * col1 ) IS NULL ) )
----
NULL

query I rowsort
SELECT DISTINCT col0 - 40 * - col1 AS col2 FROM tab0
----
137
3255
927

query I rowsort
SELECT ALL + 70 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL MAX( - 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL MAX ( - 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query II rowsort
SELECT DISTINCT col0 + + col2, col1 AS col1 FROM tab0
----
196
1
62
81
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT + COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 col2 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT - - CAST( ( + COUNT( + col1 ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - CAST ( ( + COUNT ( + col1 ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * - 3 AS col1 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3112
SELECT MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( - 55 ) AS col0 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT DISTINCT - - MAX( ALL - 56 ) AS col2, + 8 FROM tab2 cor0
----
-56
8

skipif mysql # not compatible
query II rowsort label-3114
SELECT DISTINCT - - MAX ( ALL - 56 ) AS col2, + 8 FROM tab2 cor0
----
-56
8

query I rowsort
SELECT DISTINCT 23 * + col1 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL COUNT( * ) * - 53 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL COUNT ( * ) * - 53 FROM tab0
----
-159

query II rowsort
SELECT - + col0, col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 10 * + col0 AS col1 FROM tab2 AS cor0
----
460
640
750

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 61 + col0 AS col1, + col2 AS col1 FROM tab2
----
-15
23
14
58
3
40

query I rowsort
SELECT DISTINCT + 29 * - col2 * - - col2 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-284328
-2910
-64108

query II rowsort
SELECT DISTINCT 70, col1 FROM tab0 AS cor0
----
70
1
70
21
70
81

query I rowsort
SELECT + ( + 91 ) FROM tab1 AS cor0
----
91
91
91

query II rowsort
SELECT - col1, col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT DISTINCT - col2 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT - + 28 AS col0 FROM tab2 WHERE - 41 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3129
SELECT + CAST( NULL AS DECIMAL ) / + 31 * col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3129
SELECT + CAST ( NULL AS REAL ) / + 31 * col2 col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col2 - + - 88, 9 AS col0 FROM tab0
----
135
9
187
9
98
9

query I rowsort
SELECT DISTINCT col0 * + 80 AS col2 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT ALL - + col1 / + 61 * - 18 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 + + 98 - col1 AS col2, - col1 + + col1 FROM tab0
----
-10
0
0
0
2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + col0 + - 92 <> - + 91 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT + COUNT( DISTINCT + ( + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + COUNT ( DISTINCT + ( + col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3136
SELECT - col2 / + 90 + + col2 + - CAST( NULL AS DECIMAL ) + + ( 78 ) * - 71 + - 20 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT - col2 / + 90 + + col2 + - CAST ( NULL AS REAL ) + + ( 78 ) * - 71 + - 20 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - + col1 FROM tab0 AS cor0 WHERE NULL <= + 78
----

query I rowsort
SELECT ALL - + 4 * + + col1 * + + col2 - col1 FROM tab2 AS cor0
----
-12397
-15611
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT - + MAX( - + 33 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - + MAX ( - + 33 ) FROM tab0 cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 79 + + col1 + col0 <> - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL - COUNT( * ) * - SUM( ALL + + 24 ) AS col0 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - COUNT ( * ) * - SUM ( ALL + + 24 ) AS col0 FROM tab0 AS cor0
----
216

query II rowsort
SELECT DISTINCT + 72 AS col1, col0 AS col0 FROM tab2 AS cor0
----
72
46
72
64
72
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 51 - + - SUM( + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * col0 + col2 > - col1
----
144

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 51 - + - SUM ( + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * col0 + col2 > - col1
----
144

query I rowsort
SELECT + col1 + - 76 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - ( - SUM( + + col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3145
SELECT - ( - SUM ( + + col0 ) ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL + MAX( + col1 ) * 94 FROM tab2
----
7238

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + MAX ( + col1 ) * 94 FROM tab2
----
7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 27 ) * + col1 col0 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - COUNT( DISTINCT + col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3150
SELECT DISTINCT - col0 + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - col0 + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 10 ) < ( - col0 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT 61 DIV 88 + + ( col0 ) + - 38 + + col0 - col1 AS col1 FROM tab0 AS cor0
----
-89
115
155

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT 61 / 88 + + ( col0 ) + - 38 + + col0 - col1 AS col1 FROM tab0 AS cor0
----
-89
115
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + - ( - - 52 ) + COUNT( * ) FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + - ( - - 52 ) + COUNT ( * ) FROM tab1 cor0
----
-49

query I rowsort
SELECT + col0 + + col0 * - - ( + col1 ) AS col2 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT MIN( - - 84 ) + + - 30 AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3157
SELECT MIN ( - - 84 ) + + - 30 AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ( - + 9 ) + - - col1 AS col1 FROM tab2 AS cor0
----
42
58
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT + col1 DIV + 15 FROM tab1
----
0
3

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + col1 / + 15 FROM tab1
----
0
3

query II rowsort
SELECT - 69, + 2 AS col2 FROM tab1
----
-69
2
-69
2
-69
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT DISTINCT CAST( 79 AS SIGNED ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT CAST ( 79 AS INTEGER ) AS col0 FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT + 14 * + + 54 * + CAST( NULL AS SIGNED ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT + 14 * + + 54 * + CAST ( NULL AS INTEGER ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 - - col1 + + 17 - + col2 * + col2 FROM tab0 AS cor0
----
-2064
-52
-9684

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT NULL >= NULL ) )
----

query I rowsort
SELECT + 91 - - col2 AS col2 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3166
SELECT ALL MIN( - - CAST( - + 93 AS SIGNED ) ) + - 22 DIV - - 25 * + ( - 6 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL MIN ( - - CAST ( - + 93 AS INTEGER ) ) + - 22 / - - 25 * + ( - 6 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col1 - col1 - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL 1 * - col2 * + + 32 FROM tab1 AS cor0
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3169
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - ( + 2 ) AS col0 FROM tab0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT ( - - 51 ) DIV + 10 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT ( - - 51 ) / + 10 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3172
SELECT - 57 * - col1 AS col2, 30 DIV + - col0 FROM tab1 AS cor0
----
2679
0
285
0
798
0

skipif mysql # not compatible
query II rowsort label-3172
SELECT - 57 * - col1 AS col2, 30 / + - col0 FROM tab1 AS cor0
----
2679
0
285
0
798
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col2 * - 93 * 20 AS col2 FROM tab1 AS cor0
----
109740
126480
178560

query I rowsort
SELECT + col0 * - col1 - - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-281
-4118
-567

onlyif mysql # DIV for integer division: 
query II rowsort label-3176
SELECT + col2 DIV col0 AS col0, + 5 AS col1 FROM tab0 AS cor0
----
0
5
1
5
3
5

skipif mysql # not compatible
query II rowsort label-3176
SELECT + col2 / col0 AS col0, + 5 AS col1 FROM tab0 AS cor0
----
0
5
1
5
3
5

query II rowsort
SELECT ALL ( 80 ) AS col1, + col2 + col1 FROM tab0 AS cor0
----
80
100
80
128
80
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT + ( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT + ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 37 FROM tab0, tab1 AS cor0
----
-37

query II rowsort
SELECT DISTINCT + col1, col0 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT ALL 87 + - - ( 13 ) * + + 2, col2 AS col2 FROM tab0
----
113
10
113
47
113
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col2, - col2 * + + col0 + - col1 * - + col2 FROM tab1
----
52
-2992
52
-3552
52
-4720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ( + SUM( ALL - col0 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - 7 + - - 90 * - 33 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ( + SUM ( ALL - col0 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - 7 + - - 90 * - 33 <> NULL
----
NULL

query I rowsort
SELECT ALL + col1 + 87 FROM tab1 cor0
----
101
134
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 25 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT + 37 * - 20 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - 88 + - MIN( - - col2 ) AS col2 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 88 + - MIN ( - - col2 ) AS col2 FROM tab0
----
-98

query I rowsort
SELECT ALL + 43 + - + col1 FROM tab2
----
-24
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + 55 + + COUNT( * ) col2 FROM tab1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3189
SELECT + 55 + + COUNT ( * ) col2 FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT + CAST( + - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3190
SELECT + CAST ( + - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + + col1 * - - col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE ( - col2 > NULL )
----

query I rowsort
SELECT ALL - + 60 AS col1 FROM tab0 AS cor0 WHERE NOT ( + + col2 ) < 99
----
-60

query II rowsort
SELECT ALL col2 * - + col2 - - col1 + - col0 AS col2, col0 + + col2 * ( + col1 ) AS col0 FROM tab1 cor0
----
-3561
380
-4668
3287
-9253
1395

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3195
SELECT * FROM tab2 AS cor0 WHERE CAST( + - 24 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3195
SELECT * FROM tab2 AS cor0 WHERE CAST ( + - 24 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( 45 ) FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 78 - 81 AS col0 FROM tab0 cor0
----
-159

query I rowsort
SELECT DISTINCT + + col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - col2 * + - col1 - 80 AS col2 FROM tab0
----
18190
57025
9523

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT MAX( DISTINCT + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT MAX ( DISTINCT + + col1 ) FROM tab2
----
77

query I rowsort
SELECT 90 - 28 * - col1 AS col2 FROM tab1
----
1406
230
482

query I rowsort
SELECT DISTINCT + 55 * + 37 FROM tab0
----
2035

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - - ( - + 24 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab2 AS cor0 WHERE - 73 - - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + ( + COUNT( * ) ) * - COUNT( - + col1 ) - - SUM( + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT + ( + COUNT ( * ) ) * - COUNT ( - + col1 ) - - SUM ( + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + COUNT( * ) * COUNT( - col1 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3207
SELECT + COUNT ( * ) * COUNT ( - col1 ) FROM tab1 cor0
----
9

query I rowsort
SELECT - 88 * + ( + 24 ) + - col2 FROM tab2 cor0
----
-2135
-2152
-2170

query I rowsort
SELECT ALL + + 18 * - col0 + col2 * + + col1 * - - col0 AS col2 FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 57 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 40 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( - col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3213
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) DIV 20 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) / 20 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 * + col1 * + col0 * - 58 * - col1 + - + col1 + + col2 FROM tab0 AS cor0
----
193599871
545820
85621016

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL - + col1 DIV - + col1 + + ( ( 61 ) ) + col1 FROM tab1 cor0
----
109
67
76

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - + col1 / - + col1 + + ( ( 61 ) ) + col1 FROM tab1 cor0
----
109
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 4 col1 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT + CAST( NULL AS SIGNED ) * - 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CAST ( NULL AS INTEGER ) * - 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3219
SELECT * FROM tab1 WHERE NOT NULL > CAST( - - 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3219
SELECT * FROM tab1 WHERE NOT NULL > CAST ( - - 52 AS INTEGER )
----

query I rowsort
SELECT col2 + 5 FROM tab0
----
104
15
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 col0 FROM tab2
----
49
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3222
SELECT * FROM tab0 WHERE NOT + CAST( - - 23 AS SIGNED ) BETWEEN - col2 AND + - col1 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3222
SELECT * FROM tab0 WHERE NOT + CAST ( - - 23 AS INTEGER ) BETWEEN - col2 AND + - col1 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * - col2 + col0 col1 FROM tab0 AS cor0
----
-267
-497
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND - 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND - 59 IS NULL
----
0

query I rowsort
SELECT ALL col0 * - col0 + - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT ALL + col0 + col1 - col2 + col0, + col1 FROM tab0 AS cor0
----
185
21
64
81
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT COUNT( * ) * - + MIN( DISTINCT + 33 ) AS col2, - COUNT( DISTINCT col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-99
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT COUNT ( * ) * - + MIN ( DISTINCT + 33 ) AS col2, - COUNT ( DISTINCT col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-99
-3

query I rowsort
SELECT - - 50 + - 23 AS col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT DISTINCT - - col2 - + col0 + CAST( - 4 AS SIGNED ) FROM tab2 AS cor0
----
-21
-27
-28

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - - col2 - + col0 + CAST ( - 4 AS INTEGER ) FROM tab2 AS cor0
----
-21
-27
-28

query I rowsort
SELECT 2 * + - col0 FROM tab2 WHERE - - col1 <> + 0 * - 22
----
-128
-150
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 BETWEEN - - col2 + + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + - ( + col2 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 80 FROM tab1 WHERE col2 BETWEEN + col0 - + + col2 * + + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL + ( - COUNT( * ) ) * + + COUNT( * ) + + 7 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL + ( - COUNT ( * ) ) * + + COUNT ( * ) + + 7 AS col0 FROM tab1
----
-2

query I rowsort
SELECT AVG ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT + 84 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - - 26 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL < col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL < col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - COUNT( DISTINCT - col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3239
SELECT - COUNT ( DISTINCT - col1 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL COUNT( * ) * - + 28 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COUNT ( * ) * - + 28 AS col2 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3241
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col1 * + ( - + col2 ) * + 53 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
163304
206033
62215

query II rowsort
SELECT - col2 AS col0, + 28 AS col0 FROM tab2
----
-23
28
-40
28
-58
28

query III rowsort
SELECT ALL * FROM tab1 WHERE - 23 IN ( - ( 78 ) + - col1 + - col2, - col2, - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT + SUM( ALL + 60 ) / + ( - - 29 ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + SUM ( ALL + 60 ) / + ( - - 29 ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 * col2 col1 FROM tab0 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - - col1 + col1 * col1 FROM tab0 AS cor0
----
3
483
6723

query I rowsort
SELECT DISTINCT - + 83 * + col1 AS col0 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT - + MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - + MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 37 ) * - + ( - ( col1 ) ) FROM tab1 AS cor0
----
-1739
-185
-518

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) = 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3252
SELECT ALL + col0 * + col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + col0 * + col2 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 82 + - 87 <> + col0
----

query I rowsort
SELECT DISTINCT 37 * + 57 AS col2 FROM tab2
----
2109

query II rowsort
SELECT col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT + - 12 / col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1, col0 * col1 * + 52 + col0 FROM tab0
----
1
5141
21
95091
81
63195

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT col0 DIV 89 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT col0 / 89 / col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 12 FROM tab0 AS cor0 WHERE NULL < + col1
----

query II rowsort
SELECT DISTINCT + col0 + - + col2 AS col1, 98 FROM tab2 cor0
----
17
98
23
98
24
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3261
SELECT ALL - COUNT( * ) DIV 35 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - COUNT ( * ) / 35 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3262
SELECT * FROM tab1 WHERE CAST( + 1 AS SIGNED ) + + 50 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3262
SELECT * FROM tab1 WHERE CAST ( + 1 AS INTEGER ) + + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT - MIN( DISTINCT + + 27 ), 99 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-27
297

skipif mysql # not compatible
query II rowsort label-3263
SELECT - MIN ( DISTINCT + + 27 ), 99 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-27
297

query II rowsort
SELECT ALL - col2 + + + col0, - col1 AS col0 FROM tab2 AS cor0
----
17
-67
23
-51
24
-77

query I rowsort
SELECT ALL - - 99 + + col0 + - 52 AS col2 FROM tab2 cor0
----
111
122
93

query I rowsort
SELECT DISTINCT - col1 - + 58 - - col0 AS col2 FROM tab0 AS cor0
----
-124
38
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - 70 AND + col0
----
75
67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3268
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 84 * col2 + - 11 col2 FROM tab0
----
1
8305
21
829
81
3937

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - - 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 - col1 AS col1 FROM tab0
----
15
-162
87
-42
97
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 51 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT DISTINCT 57 AS col1, 49 + + ( - COUNT( * ) ) AS col0 FROM tab2
----
57
46

skipif mysql # not compatible
query II rowsort label-3273
SELECT DISTINCT 57 AS col1, 49 + + ( - COUNT ( * ) ) AS col0 FROM tab2
----
57
46

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN col1 + - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3276
SELECT + col1 * - ( - - col0 ) AS col2, CAST( NULL AS SIGNED ) / + + col1 * + - col0 + + - 99 + - + 28 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3276
SELECT + col1 * - ( - - col0 ) AS col2, CAST ( NULL AS INTEGER ) / + + col1 * + - col0 + + - 99 + - + 28 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT MAX( + + ( + 91 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT MAX ( + + ( + 91 ) ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - 37 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT COUNT( * ) * + + 89 col1 FROM tab1 AS cor0 WHERE NOT ( NOT + + 62 NOT IN ( + 84 - + - col0 + + + col2 ) )
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3280
SELECT COUNT ( * ) * + + 89 col1 FROM tab1 AS cor0 WHERE NOT ( NOT + + 62 NOT IN ( + 84 - + - col0 + + + col2 ) )
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3281
SELECT MAX ( col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3282
SELECT DISTINCT 45 AS col2, 86 DIV + - col0 + - 54 FROM tab0 AS cor0
----
45
-54
45
-59

skipif mysql # not compatible
query II rowsort label-3282
SELECT DISTINCT 45 AS col2, 86 / + - col0 + - 54 FROM tab0 AS cor0
----
45
-54
45
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col2 FROM tab0
----
12
12
12

query I rowsort
SELECT - 35 * + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col2 + - + 6 FROM tab0
----
-105
-16
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT ALL - CAST( - + 44 AS SIGNED ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 * - + CAST( NULL AS SIGNED ) * + ( + col2 ) * col0 + + col2 * + col0 + - col2 AND - + col1 )
----

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - CAST ( - + 44 AS INTEGER ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 * - + CAST ( NULL AS INTEGER ) * + ( + col2 ) * col0 + + col2 * + col0 + - col2 AND - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - COUNT( * ) FROM tab0 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + - col0 IS NULL
----
0

query I rowsort
SELECT col2 + + 62 AS col1 FROM tab0
----
109
161
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3289
SELECT - col1 * - col0 * - + ( + - CAST( col2 AS SIGNED ) ) + + + 10 - col0 - + - col1, + col1 col1 FROM tab2
----
197143
77
291452
67
53973
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3289
SELECT - col1 * - col0 * - + ( + - CAST ( col2 AS INTEGER ) ) + + + 10 - col0 - + - col1, + col1 col1 FROM tab2
----
197143
77
291452
67
53973
51

query I rowsort
SELECT ALL 62 * + 34 + + - col0 AS col1 FROM tab2
----
2033
2044
2062

query I rowsort
SELECT DISTINCT + col0 - + + col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL + - 31 - + 94 FROM tab2 AS cor0
----
-125
-125
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT - - 7 col0, + COUNT( DISTINCT 91 ) FROM tab2 AS cor0
----
7
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3293
SELECT - - 7 col0, + COUNT ( DISTINCT 91 ) FROM tab2 AS cor0
----
7
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL - col0 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT 33, col1 FROM tab2 AS cor0
----
33
51
33
67
33
77

query II rowsort
SELECT + col2, ( 95 ) * col2 AS col0 FROM tab2 AS cor0
----
23
2185
40
3800
58
5510

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3297
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99 + + CAST( NULL AS SIGNED ) * + 92 + + 36
----

skipif mysql # not compatible
query III rowsort label-3297
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99 + + CAST ( NULL AS INTEGER ) * + 92 + + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT ALL + col1 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN NULL AND + 33
----

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + col1 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN NULL AND + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL + MAX( ALL + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + MAX ( ALL + - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3300
SELECT DISTINCT * FROM tab2 WHERE + CAST( col2 AS DECIMAL ) <> - col1 + + col2 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3300
SELECT DISTINCT * FROM tab2 WHERE + CAST ( col2 AS REAL ) <> - col1 + + col2 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 88 ) * + 12 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT 51 * - CAST( + - col0 AS SIGNED ) * - + col1 FROM tab1
----
-21675
-218127
-36414

skipif mysql # not compatible
query I rowsort label-3302
SELECT 51 * - CAST ( + - col0 AS INTEGER ) * - + col1 FROM tab1
----
-21675
-218127
-36414

query I rowsort
SELECT + 49 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT + 77 * + 56 + + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
4315

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + 77 * + 56 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
4315

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - + 1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3306
SELECT + - MAX( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT + - MAX ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col0, + 66 FROM tab2 AS cor0
----
46
66
64
66
75
66

query I rowsort
SELECT - + col0 * 47 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT ( + - ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE + 62 * + + col0 IN ( - 72 )
----

query I rowsort
SELECT DISTINCT - 78 * - - col0 FROM tab0 AS cor0
----
-1170
-6786
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 24 col1 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT col0 - + + 18 + + col0 FROM tab1
----
152
164
84

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col0 + - 47 + - col2 AS col2 FROM tab1
----
-21
-24
-92

query I rowsort
SELECT DISTINCT - col1 * + col1 + + 57 AS col2 FROM tab1 AS cor0
----
-139
-2152
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT - col2 DIV + ( + 9 ) + + - col1 + - 71 + col1 AS col2 FROM tab0 AS cor0
----
-72
-76
-82

skipif mysql # not compatible
query I rowsort label-3316
SELECT - col2 / + ( + 9 ) + + - col1 + - 71 + col1 AS col2 FROM tab0 AS cor0
----
-72
-76
-82

query I rowsort
SELECT ALL + + 41 - - 10 FROM tab2 cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - - col0 * - 42, - 78 )
----

query I rowsort
SELECT DISTINCT - + col1 - - 47 FROM tab1 cor0
----
0
33
42

query I rowsort
SELECT ALL + + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - 82 * - col2 FROM tab2 AS cor0
----
1886
3280
4756

query I rowsort
SELECT DISTINCT - 90 FROM tab2 cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT + 43 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + 43 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT DISTINCT + ( - COUNT( * ) ), + COUNT( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + col1
----
0
0

skipif mysql # not compatible
query II rowsort label-3324
SELECT DISTINCT + ( - COUNT ( * ) ), + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 35 * + 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - + col0 ) + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * 73 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3330
SELECT ALL - COUNT( * ) AS col1, - 23 FROM tab1
----
-3
-23

skipif mysql # not compatible
query II rowsort label-3330
SELECT ALL - COUNT ( * ) AS col1, - 23 FROM tab1
----
-3
-23

query I rowsort
SELECT DISTINCT 75 * + + 31 * + - 70 AS col0 FROM tab2
----
-162750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab2
----
71
71
71

query II rowsort
SELECT - col0 AS col2, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT + 97 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN col2 * - + 79 * + col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT + 76 * + - col1 + + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT + 76 * + - col1 + + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - col2 - - + 90 * col0 + + + col1 + + 85 + - + col0 AS col2 FROM tab1 cor0
----
12670
14419
9534

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3340
SELECT ALL + - 4 + CAST( NULL AS DECIMAL ) / + - COUNT( * ) * + - 61 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3340
SELECT ALL + - 4 + CAST ( NULL AS REAL ) / + - COUNT ( * ) * + - 61 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT + 61 + - MAX( ALL col1 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + 61 + - MAX ( ALL col1 ) FROM tab2 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT col0 * - col0 + - - 23 + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2579
-7203
-8259

skipif mysql # not compatible
query I rowsort label-3342
SELECT col0 * - col0 + - - 23 + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-2579
-7203
-8259

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL - + 69 + + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - + 69 + + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3344
SELECT + CAST( col0 AS SIGNED ) DIV col2 DIV - - col1 * - + col2 FROM tab0 AS cor0 WHERE - col1 * col1 NOT IN ( - + 67, 97 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT + CAST ( col0 AS INTEGER ) / col2 / - - col1 * - + col2 FROM tab0 AS cor0 WHERE - col1 * col1 NOT IN ( - + 67, 97 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab2
----
46

query I rowsort
SELECT col2 + + 7 FROM tab2
----
30
47
65

onlyif mysql # DIV for integer division: 
query II rowsort label-3349
SELECT ALL 24, col0 DIV 63 AS col0 FROM tab2
----
24
0
24
1
24
1

skipif mysql # not compatible
query II rowsort label-3349
SELECT ALL 24, col0 / 63 AS col0 FROM tab2
----
24
0
24
1
24
1

query II rowsort
SELECT DISTINCT col2 AS col1, 93 AS col0 FROM tab1
----
59
93
68
93
96
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * ( + - 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3352
SELECT - 10 FROM tab0 WHERE col2 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 10 FROM tab0 WHERE col2 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - 48 * ( + 64 ) + ( col0 ) + col0 + - ( + col0 ) + 75 * - col0 FROM tab2 AS cor0
----
-6476
-7808
-8622

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + 82 DIV - col1 FROM tab0 AS cor0
----
-1
-3
-82

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 82 / - col1 FROM tab0 AS cor0
----
-1
-3
-82

query I rowsort
SELECT - - col1 - 99 - - 42 * + col1 AS col2 FROM tab2 cor0
----
2094
2782
3212

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT COUNT( * ) + + 72 * + - 62 AS col2 FROM tab2
----
-4461

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT COUNT ( * ) + + 72 * + - 62 AS col2 FROM tab2
----
-4461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab2
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3358
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 IN ( + - 93, - col0 * col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3358
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 IN ( + - 93, - col0 * col2, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL - 56 * + COUNT( * ) + CAST( + 52 AS SIGNED ) FROM tab0 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - 56 * + COUNT ( * ) + CAST ( + 52 AS INTEGER ) FROM tab0 AS cor0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL + + COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + + COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * col2 * col0 - 38 + + - ( - col0 ) * col1 * + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( 40 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col0 FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT - + 82 AS col2 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col0 * col0 * + col2 FROM tab0 cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - col1 * col0 AS col2 FROM tab2 WHERE + 35 + - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 74 col0, col0 FROM tab1
----
-74
51
-74
85
-74
91

query I rowsort
SELECT DISTINCT 30 * + 92 AS col1 FROM tab1
----
2760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3369
SELECT DISTINCT + ( + col0 ) * - CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + ( + col0 ) * - CAST ( NULL AS REAL ) + - col2 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL col2 * - col0 * 36 * + - col1 + 31 AS col0 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) NOT IN ( - 59, + col2, - col0 * col1 * + col1 + - 18, - - col0 * + col0 * + - col1, - - col2, col2 )
----

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL col2 * - col0 * 36 * + - col1 + 31 AS col0 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) NOT IN ( - 59, + col2, - col0 * col1 * + col1 + - 18, - - col0 * + col0 * + - col1, - - col2, col2 )
----

query I rowsort
SELECT ALL 3 * col2 FROM tab2
----
120
174
69

query I rowsort
SELECT DISTINCT + col2 + 34 * + - col1 + - + col2 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + - 38 * + SUM( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0
----
4598

skipif mysql # not compatible
query I rowsort label-3373
SELECT + - 38 * + SUM ( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0
----
4598

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3374
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - - col1 ) IN ( - col0, - CAST( NULL AS SIGNED ), col0, ( - 36 ) )
----

skipif mysql # not compatible
query III rowsort label-3374
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - - col1 ) IN ( - col0, - CAST ( NULL AS INTEGER ), col0, ( - 36 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT + 62 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + 62 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL col1 + ( - 42 ) FROM tab1 AS cor0
----
-28
-37
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 24 / + col1 NOT IN ( col1, + 93, + 55, - col1, - + col1, + col0 + - 50, + + col0 + ( - col0 ) + 44 + - ( - 8 ) * - 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - - 57 ) FROM tab2 AS cor0
----
57

query II rowsort
SELECT - col1, - col1 * col1 - col1 AS col2 FROM tab1 AS cor0
----
-14
-210
-47
-2256
-5
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + + col2 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 / + col1 * 97 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT DISTINCT + 62 - - + col1 * + 4 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + 62 - - + col1 * + 4 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 75 - + col2 AS col0 FROM tab0
----
-24
28
65

query III rowsort
SELECT * FROM tab2 WHERE + - 65 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col2 + - - 22 FROM tab1
----
22

query I rowsort
SELECT - col2 + + 21 AS col1 FROM tab1
----
-38
-47
-75

query III rowsort
SELECT + - col2 + col2, + 15 AS col1, col0 FROM tab0 AS cor0
----
9 values hashing to 75246ce4a65abbafb1ef132401ba4ef2

query I rowsort
SELECT DISTINCT - - 91 + col1 FROM tab2 AS cor0
----
142
158
168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + col0 - + col0 + - col1 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT SUM( + 45 ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3390
SELECT SUM ( + 45 ) AS col2 FROM tab1
----
135

query I rowsort
SELECT 10 * - - 61 AS col0 FROM tab1
----
610
610
610

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 59 * - COUNT( * ) * + COUNT( * ) FROM tab0
----
-531

skipif mysql # not compatible
query I rowsort label-3393
SELECT 59 * - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-531

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 * col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL ( + COUNT( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL ( + COUNT ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT + MAX( ALL - ( + - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT + MAX ( ALL - ( + - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 89 ) col2 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT ALL - ( + - 99 ) DIV col2 * + col1 AS col1 FROM tab2
----
154
204
67

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - ( + - 99 ) / col2 * + col1 AS col1 FROM tab2
----
154
204
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3400
SELECT + 46 + + - ( + ( + - AVG ( DISTINCT + + 99 ) ) ) * 81 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 46 + + - ( + ( + - AVG ( DISTINCT + + 99 ) ) ) * 81 + + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3401
SELECT 58 * + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT 58 * + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + + COUNT( - col2 ) + 26 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + + COUNT ( - col2 ) + 26 FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3403
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL + MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL + MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT COUNT( * ) * 47 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3405
SELECT COUNT ( * ) * 47 FROM tab1
----
141

query I rowsort
SELECT DISTINCT - 6 + + col0 FROM tab0 WHERE NOT - 44 BETWEEN - 39 AND col1
----
81
9
91

query I rowsort
SELECT - ( + - 62 ) * + 52 / 96 AS col1 FROM tab1 AS cor0 WHERE + col1 + col2 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT DISTINCT col1 DIV + + col0 col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3408
SELECT DISTINCT col1 / + + col0 col0 FROM tab1 cor0
----
0

query II rowsort
SELECT DISTINCT col0 + 15 + 9, - 26 AS col1 FROM tab0 cor0
----
111
-26
121
-26
39
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL + - 8 + + + 66 * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + - 8 + + + 66 * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3411
SELECT ALL + - CAST( NULL AS DECIMAL ) - - MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + - CAST ( NULL AS REAL ) - - MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT - col0 * - - col2 + + 46 * - col2 - col1 + - CAST( NULL AS SIGNED ) / - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT - col0 * - - col2 + + 46 * - col2 - col1 + - CAST ( NULL AS INTEGER ) / - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - col0 IS NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT COUNT( - ( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( - ( col2 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE + - 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + - ( - - col0 ) FROM tab1
----
2601
7225
8281

query II rowsort
SELECT - 74, ( 20 ) AS col2 FROM tab2
----
-74
20
-74
20
-74
20

query III rowsort
SELECT * FROM tab2 WHERE + - 38 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT + CAST( col1 AS SIGNED ) / - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT + CAST ( col1 AS INTEGER ) / - col2 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * + - 80 + 5 + - col1 - - + col1 * - 47 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + + col0 DIV - + col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3421
SELECT + + col0 / - + col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3422
SELECT - 96, - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-96
-1
-96
-1
-96
-1

skipif mysql # not compatible
query II rowsort label-3422
SELECT - 96, - col0 / col0 AS col1 FROM tab2 AS cor0
----
-96
-1
-96
-1
-96
-1

query I rowsort
SELECT ALL + 27 * + + col1 AS col0 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT SUM( 21 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3424
SELECT SUM ( 21 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT col1 * + col0 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
2392
4992
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab1 AS cor0 WHERE 99 IS NOT NULL
----
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3427
SELECT DISTINCT CAST( + col2 AS SIGNED ), + col0 DIV - + col0 AS col1 FROM tab0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-3427
SELECT DISTINCT CAST ( + col2 AS INTEGER ), + col0 / - + col0 AS col1 FROM tab0
----
10
-1
47
-1
99
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 19 > - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 90 AS col2 FROM tab1 cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 78, + col2 * col0 / col1 + - 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + CAST( + 53 AS SIGNED ) FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-3431
SELECT + CAST ( + 53 AS INTEGER ) FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NOT col1 * 92 BETWEEN - + 48 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NOT col1 * 92 BETWEEN - + 48 AND NULL )
----
0

query II rowsort
SELECT DISTINCT + + col2 - ( + + col1 ) AS col2, + col0 FROM tab2 WHERE NULL = col0 * - 9 + 72
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT DISTINCT - col1 AS col1, - ( - - 86 ) DIV + + 83 AS col1 FROM tab1
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-3434
SELECT DISTINCT - col1 AS col1, - ( - - 86 ) / + + 83 AS col1 FROM tab1
----
-14
-1
-47
-1
-5
-1

query I rowsort
SELECT ALL + 9 * + 54 * + col2 + - 38 FROM tab1 cor0
----
28636
33010
46618

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL < col1 + + ( ( + col1 ) + + 9 * + ( col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE 93 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 43 FROM tab0
----
-2021
-4257
-430

query I rowsort
SELECT + 59 * 59 AS col0 FROM tab1
----
3481
3481
3481

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL BETWEEN ( - col0 ) AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= - col1 * - 68
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col2 * col2
----

query I rowsort
SELECT 80 - col1 AS col2 FROM tab1 WHERE NOT NULL <> ( - 79 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + COUNT( * ) FROM tab1 WHERE + col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT + COUNT ( * ) FROM tab1 WHERE + col1 <> ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3445
SELECT ALL + SUM( + 34 ) DIV + ( - COUNT( * ) ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + SUM ( + 34 ) / + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-34

query I rowsort
SELECT ALL col0 + 66 FROM tab0
----
153
163
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ( + ( CAST( NULL AS SIGNED ) ) ) / 66 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT ( + ( CAST ( NULL AS INTEGER ) ) ) / 66 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 75 AS col0 FROM tab1 WHERE NOT ( - col0 ) + - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + ( col1 ) AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - 66 + col1 FROM tab0
----
-45
-65
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3451
SELECT + col1 + + CAST( 59 AS SIGNED ) DIV 75 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3451
SELECT + col1 + + CAST ( 59 AS INTEGER ) / 75 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( ( - 91 ) ) IN ( + col1 * - 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3453
SELECT ALL 83 + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE NOT 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL 83 + MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0 WHERE NOT 27 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT COUNT( * ) + 88 * + COUNT( * ) AS col0 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT COUNT ( * ) + 88 * + COUNT ( * ) AS col0 FROM tab1
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT CAST( NULL AS SIGNED ) * 1 - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT CAST ( NULL AS INTEGER ) * 1 - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT MIN( ALL 52 ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3456
SELECT MIN ( ALL 52 ) AS col0 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 81 > + col0 + 74 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 81 > + col0 + 74 * 98
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - 19 * + 11 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3460
SELECT - 61 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
6

skipif mysql # not compatible
query I rowsort label-3460
SELECT - 61 / - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3461
SELECT ALL * FROM tab0 WHERE + col0 * + col1 + CAST( col2 + col0 AS DECIMAL ) > 20 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3461
SELECT ALL * FROM tab0 WHERE + col0 * + col1 + CAST ( col2 + col0 AS REAL ) > 20 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - 66 ) col0 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT + SUM( - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + SUM ( - col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT DISTINCT + 61 + - col2 * + CAST( + col2 + col0 AS SIGNED ) FROM tab2 cor0
----
-1526
-4099
-7653

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 61 + - col2 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab2 cor0
----
-1526
-4099
-7653

query I rowsort
SELECT ALL - + 2 * col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 2 * col0 + - 70 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT - 21 * ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - 21 * ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + 93 * col1 FROM tab2
----
4766
6289
7201

query I rowsort
SELECT ( - col0 ) + + 99 * col0 AS col1 FROM tab1
----
4998
8330
8918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT DISTINCT CAST( + - MIN( col0 ) AS SIGNED ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT CAST ( + - MIN ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE - ( col2 ) IS NULL
----

query I rowsort
SELECT + 88 FROM tab1 WHERE NULL IS NULL
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IN ( ( 63 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL CAST( 6 AS SIGNED ) FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL CAST ( 6 AS INTEGER ) FROM tab1
----
6
6
6

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 53 = col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - MIN( ALL - 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - MIN ( ALL - 13 ) FROM tab2
----
13

query I rowsort
SELECT DISTINCT 84 * col1 AS col1 FROM tab1 WHERE - col1 * col0 IS NOT NULL
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL - 35 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 * + col0 + 93 / + col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - 35 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 * + col0 + 93 / + col0 ) <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3481
SELECT + ( + - CAST( NULL AS DECIMAL ) ) * 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT + ( + - CAST ( NULL AS REAL ) ) * 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= col0
----

query I rowsort
SELECT ALL - + col1 + col1 * - 80 FROM tab0 AS cor0
----
-1701
-6561
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 93 ) <> ( NULL )
----

query I rowsort
SELECT ALL + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT - 72 * + 74 FROM tab0 cor0
----
-5328
-5328
-5328

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + COUNT( * ) + 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + COUNT ( * ) + 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + + COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + + COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL + ( - + col0 ) + col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + col1 + - col1 + + 28 AS col0 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL + col1 DIV + col2 + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + col1 / + col2 + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - 68 AS col1 FROM tab1 AS cor0 WHERE col0 >= - + col1 * - 86 - - col0 / + col1
----

query I rowsort
SELECT DISTINCT - - col1 + 31 + ( - 14 ) FROM tab1 AS cor0
----
22
31
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 19, col0 AS col1 FROM tab2 cor0
----
19
46
19
64
19
75

query II rowsort
SELECT + col1 AS col2, - 75 FROM tab2 AS cor0
----
51
-75
67
-75
77
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL + CAST( + COUNT( ALL 28 ) AS SIGNED ) * + 60 AS col1 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + CAST ( + COUNT ( ALL 28 ) AS INTEGER ) * + 60 AS col1 FROM tab2
----
180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 48 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3499
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + col0 AS col1 FROM tab2 WHERE NOT NULL > - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL SUM( ALL + col2 ) FROM tab2 WHERE NOT + 54 IN ( + + 67 * col2 )
----
121

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL SUM ( ALL + col2 ) FROM tab2 WHERE NOT + 54 IN ( + + 67 * col2 )
----
121

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col1 * 17
----

query II rowsort
SELECT ALL 13 * + col2 AS col0, 47 FROM tab2
----
299
47
520
47
754
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT ALL col0 + CAST( - col2 AS SIGNED ) * 82 AS col0 FROM tab1 WHERE NOT NULL <= ( col1 + - + 59 )
----

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL col0 + CAST ( - col2 AS INTEGER ) * 82 AS col0 FROM tab1 WHERE NOT NULL <= ( col1 + - + 59 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + 75 <> ( NULL )
----

query I rowsort
SELECT + AVG ( ALL - col0 ) AS col1 FROM tab0 cor0 WHERE NOT + col1 / col2 * - 79 * 97 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL AVG ( ALL - col1 ) / - 96 + MIN( ALL - 19 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL AVG ( ALL - col1 ) / - 96 + MIN ( ALL - 19 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + + col0 FROM tab0 AS cor0 WHERE ( 59 ) IS NOT NULL
----
174
194
30

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL >= + 69
----

query I rowsort
SELECT + 50 + 11 FROM tab2
----
61
61
61

query I rowsort
SELECT + col0 + - col0 + col2 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 69, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( + - 38 + - 6 )
----

query I rowsort
SELECT ALL - ( 42 ) FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + + col2 * 67 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
3211
6829
767

query I rowsort
SELECT + col1 + - col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * 85 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 col1, + 7 - - col0 AS col0 FROM tab1
----
36
58
36
92
36
98

query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab2 WHERE ( - col1 ) >= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT ALL 26, + 98 - - col1 AS col1 FROM tab0
----
26
119
26
179
26
99

query I rowsort
SELECT 32 * col0 AS col2 FROM tab2
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ( - - 55 ) * COUNT( * ) + + 2 col2 FROM tab2, tab0 AS cor0
----
497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3523
SELECT ( - - 55 ) * COUNT ( * ) + + 2 col2 FROM tab2, tab0 AS cor0
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT COUNT( * ) + - 57 AS col0 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( * ) + - 57 AS col0 FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT - col0 + col2 + 71 + + ( 37 ) * - 73 * - col0 + col2 DIV + col0 AS col0 FROM tab1
----
137868
229630
245839

skipif mysql # not compatible
query I rowsort label-3525
SELECT - col0 + col2 + 71 + + ( 37 ) * - 73 * - col0 + col2 / + col0 AS col0 FROM tab1
----
137868
229630
245839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT 19 + + col2 * CAST( - - 35 AS SIGNED ) * 89 FROM tab0 AS cor0
----
146424
308404
31169

skipif mysql # not compatible
query I rowsort label-3526
SELECT 19 + + col2 * CAST ( - - 35 AS INTEGER ) * 89 FROM tab0 AS cor0
----
146424
308404
31169

query I rowsort
SELECT - col0 + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-144
-191
-92

query I rowsort
SELECT DISTINCT + col0 - - + 92 * col0 FROM tab2 cor0
----
4278
5952
6975

query II rowsort
SELECT DISTINCT - 93 * + + 62 - + col0, col2 FROM tab1
----
-5817
96
-5851
59
-5857
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT - - 38 - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT - - 38 - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 * + + col0, col2 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL col0 + - col0 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL col0 + - col0 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3533
SELECT - CAST( NULL AS DECIMAL ) * + col0 - col2 * - 58 AS col1 FROM tab1 cor0 WHERE NOT ( NOT ( ( NOT + - 46 IS NOT NULL ) ) )
----

skipif mysql # not compatible
query I rowsort label-3533
SELECT - CAST ( NULL AS REAL ) * + col0 - col2 * - 58 AS col1 FROM tab1 cor0 WHERE NOT ( NOT ( ( NOT + - 46 IS NOT NULL ) ) )
----

query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT - ( - + COUNT( ALL col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - ( - + COUNT ( ALL col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT - - MAX( DISTINCT - 62 ) AS col1, 94 * 62 AS col1 FROM tab0 cor0
----
-62
5828

skipif mysql # not compatible
query II rowsort label-3536
SELECT - - MAX ( DISTINCT - 62 ) AS col1, 94 * 62 AS col1 FROM tab0 cor0
----
-62
5828

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - MIN( DISTINCT col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + - 15 * 61 + + col0 ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + - 15 * 61 + + col0 ) AND + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3541
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - - 35 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT CAST ( NULL AS REAL ) / - - 35 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 75 * - COUNT( - + 41 ) DIV - COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 75 * - COUNT ( - + 41 ) / - COUNT ( * ) FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT - CAST( + - 60 AS SIGNED ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - CAST ( + - 60 AS INTEGER ) AS col1 FROM tab1
----
60

query I rowsort
SELECT - col1 + - - 38 FROM tab2 WHERE NOT - col2 NOT IN ( 7 + + 86, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT DISTINCT col0 * + 54 * + CAST( 10 AS SIGNED ) * + col0 - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
121419
4087239
5080859

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT col0 * + 54 * + CAST ( 10 AS INTEGER ) * + col0 - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
121419
4087239
5080859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col2 * - col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * col0 col2 FROM tab2 cor0
----
3036
4224
4950

query I rowsort
SELECT + 42 * - 74 FROM tab0
----
-3108
-3108
-3108

query I rowsort
SELECT ALL - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 18 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + - COUNT( * ) * - 49 - + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + - COUNT ( * ) * - 49 - + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT + + COUNT( ALL - - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + + COUNT ( ALL - - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT + COUNT( * ) + - 29 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT + COUNT ( * ) + - 29 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 + - ( - col1 ) * col0 )
----

query I rowsort
SELECT - - 70 AS col2 FROM tab2 AS cor0
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 68
----

query I rowsort
SELECT - + col1 * - - col0 + - + 20 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-4297
-445
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL MAX( DISTINCT + 65 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 69 ) < col2
----
65

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL MAX ( DISTINCT + 65 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 69 ) < col2
----
65

query I rowsort
SELECT - col2 + - 39 FROM tab1 AS cor0
----
-107
-135
-98

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL + col0 + + 72 AS col1 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT ( - col2 ) + + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3564
SELECT ALL * FROM tab2 WHERE NOT - + col2 / + 53 >= ( col0 * + CAST( col2 AS SIGNED ) * - + col1 + - 5 )
----

skipif mysql # not compatible
query III rowsort label-3564
SELECT ALL * FROM tab2 WHERE NOT - + col2 / + 53 >= ( col0 * + CAST ( col2 AS INTEGER ) * - + col1 + - 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT - col0 + ( + CAST( + 46 AS SIGNED ) ) FROM tab1
----
-39
-45
-5

skipif mysql # not compatible
query I rowsort label-3565
SELECT - col0 + ( + CAST ( + 46 AS INTEGER ) ) FROM tab1
----
-39
-45
-5

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT + ( + 80 ) + col1 + - + col1 / + 64 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ( - COUNT( * ) ) + + - 48 + + + 80 col0 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT ( - COUNT ( * ) ) + + - 48 + + + 80 col0 FROM tab0
----
29

query I rowsort
SELECT DISTINCT + 89 * - ( + col1 ) * - 92 FROM tab0
----
171948
663228
8188

query I rowsort
SELECT ALL + 6 + - col0 FROM tab2
----
-40
-58
-69

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * - col1 + 31 IS NULL
----

query I rowsort
SELECT ALL - 11 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-110
-221
-3818

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( ALL + 85 ) - + 31 AS col0 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( ALL + 85 ) - + 31 AS col0 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - 18 * col1 + - 29 - col2 AS col2 FROM tab0 AS cor0
----
-146
-1534
-417

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 >= + + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - COUNT( * ) + 11 * + COUNT( * ) FROM tab0 WHERE 44 + - - col0 IN ( - - 40 ) OR NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - COUNT ( * ) + 11 * + COUNT ( * ) FROM tab0 WHERE 44 + - - col0 IN ( - - 40 ) OR NULL IS NULL
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT DISTINCT + 58, + MIN( col1 ) col0 FROM tab2
----
58
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3576
SELECT DISTINCT + 58, + MIN ( col1 ) col0 FROM tab2
----
58
51

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT ( 77 ) BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT ALL COUNT( * ) AS col1, 33 * 36 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3564

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL COUNT ( * ) AS col1, 33 * 36 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3564

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT - 69 * - 86 * - 16 AS col2 FROM tab1 AS cor0
----
-94944
-94944
-94944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col0 FROM tab0 cor0
----
-32
-32
-32

query I rowsort
SELECT 5 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( - 28 )
----

query II rowsort
SELECT - + 67 AS col2, + col1 * 49 FROM tab2 AS cor0
----
-67
2499
-67
3283
-67
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + MIN ( col2 ) FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3587
SELECT 2 * + COUNT( * ) DIV + 40 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT 2 * + COUNT ( * ) / + 40 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT 83, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
83
3

skipif mysql # not compatible
query II rowsort label-3588
SELECT 83, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
83
3

query II rowsort
SELECT DISTINCT + col2 AS col1, - 80 * + + col0 FROM tab2 AS cor0
----
23
-3680
40
-5120
58
-6000

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 11 IN ( ( col1 ) - - 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( 18 ) AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT - col0 * col0 + + 39 FROM tab1 AS cor0
----
-2562
-7186
-8242

query I rowsort
SELECT - ( 42 ) * - col0 FROM tab1 AS cor0
----
2142
3570
3822

query I rowsort
SELECT ALL col0 + 70 * 77 AS col1 FROM tab2 AS cor0
----
5436
5454
5465

query II rowsort
SELECT ALL - col0 * - - 22 AS col2, 86 + + ( - - col0 ) FROM tab0 AS cor0
----
-1914
173
-2134
183
-330
101

query I rowsort
SELECT 1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( * ) + MIN( DISTINCT - + col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( * ) + MIN ( DISTINCT - + col1 ) FROM tab0
----
-78

query I rowsort
SELECT ALL - + col2 / 26 * + col2 + - - col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3601
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 + + 28 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + CAST ( NULL AS REAL ) * col1 + + 28 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + 25 + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + 25 + - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3603
SELECT - - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col2 * - - 86 AS col1 FROM tab1 AS cor0
----
5074
5848
8256

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 + - 86 >= 97
----

query I rowsort
SELECT ALL - col0 * 8 + - + col2 - + - col0 + - - col1 * col0 + + + col0 FROM tab1 cor0
----
-144
312
3663

query I rowsort
SELECT ALL ( - - 81 ) + col0 AS col2 FROM tab1
----
132
166
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - MAX( + + col2 ) col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + col0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3608
SELECT - MAX ( + + col2 ) col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + col0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) BETWEEN ( col0 ) AND ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 - + - col2 col2 FROM tab1
----
-23
-32
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT + MAX( ALL - 5 ) + - + CAST( ( + - 98 ) AS SIGNED ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3611
SELECT + MAX ( ALL - 5 ) + - + CAST ( ( + - 98 ) AS INTEGER ) FROM tab0
----
93

query I rowsort
SELECT - 81 * + - col0 + - 42 AS col1 FROM tab1
----
4089
6843
7329

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + col0 + - col2 DIV + 41 AS col2 FROM tab1 AS cor0
----
49
84
90

skipif mysql # not compatible
query I rowsort label-3613
SELECT + col0 + - col2 / + 41 AS col2 FROM tab1 AS cor0
----
49
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - - 79 + SUM( ALL - - 13 ) + - 75 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - - 79 + SUM ( ALL - - 13 ) + - 75 FROM tab0 AS cor0
----
43

query I rowsort
SELECT + - 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3616
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= - 26 * + col2 * - ( col2 )
----

query II rowsort
SELECT DISTINCT + col1, - 21 FROM tab2 AS cor0
----
51
-21
67
-21
77
-21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( 5 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - 72 * - col1, ( ( col2 ) ) FROM tab1 WHERE ( - col0 ) = - - 60
----

query II rowsort
SELECT col2, 80 AS col2 FROM tab0
----
10
80
47
80
99
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3623
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * + col2 * - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3623
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * + col2 * - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL + ( + + SUM( ALL - + col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + ( + + SUM ( ALL - + col0 ) ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + ( col1 ) col2 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT - col0 AS col1, col1 + col1 + col1 AS col2 FROM tab1
----
-51
42
-85
15
-91
141

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 62 * + 75 + 7 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT + col1 DIV + + col1 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT + col1 / + + col1 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ( + 61 ) AS col2 FROM tab1
----
61
61
61

query I rowsort
SELECT ALL + 6 + - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-111
-119
-68

query II rowsort
SELECT - + col2 + + col0, col2 FROM tab2 AS cor0
----
17
58
23
23
24
40

query I rowsort
SELECT DISTINCT + col0 + - 55 * + col2 FROM tab1 AS cor0
----
-3160
-3649
-5229

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT - 27 DIV + col0 * - col1 * + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - 27 / + col0 * - col1 * + col2 FROM tab2 AS cor0
----
0

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 - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT DISTINCT + COUNT( * ) AS col2, 20 FROM tab1
----
3
20

skipif mysql # not compatible
query II rowsort label-3638
SELECT DISTINCT + COUNT ( * ) AS col2, 20 FROM tab1
----
3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL 16 - + + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL 16 - + + COUNT ( * ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT 52 * - MIN( ALL col2 ) - 40 FROM tab0
----
-560

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT 52 * - MIN ( ALL col2 ) - 40 FROM tab0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT + MIN( + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT + MIN ( + 38 ) FROM tab0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT + 0 * + + col2 DIV - + col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 0 * + + col2 / - + col2 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col1 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT - COUNT( 85 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - COUNT ( 85 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3645
SELECT * FROM tab2 WHERE ( NOT ( - col2 ) NOT IN ( + col0, col0 + + 57 + - col0, col1 + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3645
SELECT * FROM tab2 WHERE ( NOT ( - col2 ) NOT IN ( + col0, col0 + + 57 + - col0, col1 + + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ( MAX( DISTINCT + col1 ) ) - - + 72 AS col2 FROM tab1 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-3646
SELECT ( MAX ( DISTINCT + col1 ) ) - - + 72 AS col2 FROM tab1 AS cor0
----
119

query I rowsort
SELECT DISTINCT 64 * - + col1 + - 89 AS col2 FROM tab1 AS cor0
----
-3097
-409
-985

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3648
SELECT - + CAST( ( - col2 ) AS SIGNED ) AS col1, 62 FROM tab2 AS cor0
----
23
62
40
62
58
62

skipif mysql # not compatible
query II rowsort label-3648
SELECT - + CAST ( ( - col2 ) AS INTEGER ) AS col1, 62 FROM tab2 AS cor0
----
23
62
40
62
58
62

query I rowsort
SELECT DISTINCT - 19 / 70 + - - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT - SUM( ALL - CAST( col1 AS SIGNED ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3650
SELECT - SUM ( ALL - CAST ( col1 AS INTEGER ) ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * + 86 * 32 + + - col0 ) < + 1
----

query I rowsort
SELECT ALL + - 38 AS col1 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + + col2 * + + col0 + - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT - - 34 * 84 FROM tab2 AS cor0
----
2856
2856
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - + COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - + COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - - 55 ) AS col2 FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 - + - col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 - + - col2 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 80 ) FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL col1 * + col1 + + col2 FROM tab1 AS cor0
----
2277
292
84

query III rowsort
SELECT * FROM tab0 WHERE col2 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL - COUNT( col2 ) * - COUNT( * ) AS col0 FROM tab1 WHERE NOT + - col0 + col2 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - COUNT ( col2 ) * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - col0 + col2 NOT BETWEEN - col1 AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 + 30 / col1 / + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 90 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 + + col0 col2, col1 col2 FROM tab2 AS cor0
----
141
77
142
67
97
51

query II rowsort
SELECT col0, + 48 AS col1 FROM tab2 AS cor0
----
46
48
64
48
75
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 AS cor0 WHERE 94 + + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT col0 + + col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + + col0 - + col0 - + col2 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col1 + col1 + col2 - - col0 * - col0 * - + 21 AS col2 FROM tab1
----
151794
174063
54745

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3670
SELECT + + ( + MAX( - CAST( NULL AS DECIMAL ) ) ) FROM tab2 WHERE NULL <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT + + ( + MAX ( - CAST ( NULL AS REAL ) ) ) FROM tab2 WHERE NULL <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT 99 + - SUM( - 77 ) AS col1, 73 AS col1 FROM tab1
----
330
73

skipif mysql # not compatible
query II rowsort label-3671
SELECT 99 + - SUM ( - 77 ) AS col1, 73 AS col1 FROM tab1
----
330
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - + col1 col2, ( + 21 ) FROM tab0
----
1
21
441
21
6561
21

query I rowsort
SELECT DISTINCT ( col0 ) * 35 AS col0 FROM tab0
----
3045
3395
525

query II rowsort
SELECT ALL 46 * col0 AS col2, col1 FROM tab2
----
2116
51
2944
77
3450
67

query II rowsort
SELECT col2 + + - col0, 53 * + + col1 AS col0 FROM tab1
----
-23
2491
-26
265
45
742

onlyif mysql # DIV for integer division: 
query II rowsort label-3676
SELECT + col1 DIV - - ( - + col1 ) AS col1, col1 DIV + col1 FROM tab1
----
-1
1
-1
1
-1
1

skipif mysql # not compatible
query II rowsort label-3676
SELECT + col1 / - - ( - + col1 ) AS col1, col1 / + col1 FROM tab1
----
-1
1
-1
1
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT MAX( DISTINCT - - 85 ) AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MAX ( DISTINCT - - 85 ) AS col1 FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL + 45 * col0 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - MAX( ALL col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3679
SELECT - MAX ( ALL col0 ) AS col1 FROM tab2
----
-75

query II rowsort
SELECT 61, + col2 AS col2 FROM tab0
----
61
10
61
47
61
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * 67
----

query I rowsort
SELECT ( - 63 ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3683
SELECT DISTINCT MAX( ALL + + CAST( NULL AS DECIMAL ) ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT DISTINCT MAX ( ALL + + CAST ( NULL AS REAL ) ) col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT ALL - col2, col0 * - + col0 AS col0 FROM tab0 cor0
----
-10
-7569
-47
-225
-99
-9409

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3685
SELECT + + 80 * + col2 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
1840
23
3200
40
4640
58

skipif mysql # not compatible
query II rowsort label-3685
SELECT + + 80 * + col2 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
1840
23
3200
40
4640
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3686
SELECT + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT 24 * + COUNT( * ) + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3688
SELECT 24 * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 + + - 51 FROM tab2
----
-11
-28
7

query I rowsort
SELECT col1 + - 30 AS col1 FROM tab2
----
21
37
47

query I rowsort
SELECT DISTINCT col2 + - 99 FROM tab0 AS cor0
----
-52
-89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT - COUNT( ALL + + ( CAST( 58 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3693
SELECT - COUNT ( ALL + + ( CAST ( 58 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0, - col0 AS col2 FROM tab2 cor0 WHERE + ( - - col2 ) IS NOT NULL
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 * + col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT + col2 - - + 68 FROM tab0
----
115
167
78

query II rowsort
SELECT 4 / - + col2 AS col2, - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + ( + col0 ) * col2 FROM tab1 cor0
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - col1 * - - 56 * + col1 col1 FROM tab0 AS cor0
----
-24675
-367335
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 48 col0 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT 88 * 51 * + - col1 * ( + ( - + col1 ) ) + - 93 - col1 * - col2 * + col0 AS col1 FROM tab1 cor0
----
10204735
137182
948099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) - + 93 * - 45 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) - + 93 * - 45 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35 col2, - col0 AS col0 FROM tab1
----
-35
-51
-35
-85
-35
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) <> 5 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - - COUNT( * ) * - + 80 + + 86 FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - - COUNT ( * ) * - + 80 + + 86 FROM tab2 AS cor0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL + - COUNT( * ) * - 58 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + - COUNT ( * ) * - 58 FROM tab2 cor0
----
174

query II rowsort
SELECT + + col2 * 41 * ( + + col0 ), + col0 * - - col1 AS col0 FROM tab1 AS cor0
----
200736
714
205615
425
253708
4277

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

query II rowsort
SELECT col0, + ( col0 ) * - ( - col1 ) * - 14 FROM tab2 AS cor0
----
46
-32844
64
-68992
75
-70350

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 62 + + 16 + - - col0 * + 1 * + col0 * - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 62 + + 16 + - - col0 * + 1 * + col0 * - + col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 * + + ( + 98 ) FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT ALL + ( - + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT + - COUNT( * ) + MAX( ALL + col1 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + - COUNT ( * ) + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
74

query I rowsort
SELECT - + 95 * col1 AS col0 FROM tab0 AS cor0
----
-1995
-7695
-95

query I rowsort
SELECT - 54 * col2 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL + CAST( - ( col1 ) AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + CAST ( - ( col1 ) AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT 59 * - COUNT( * ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-3719
SELECT 59 * - COUNT ( * ) FROM tab2
----
-177

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( - col0 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 94 + 3 * col1 - 81 + - col1 + col1 * 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, - 76 FROM tab0
----
10
-76
47
-76
99
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT ALL col1 DIV + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL col1 / + col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + 59 * - col1 + + - col2 * - col1 + + ( - 2 ) AS col0 FROM tab1 AS cor0
----
-2
421
516

query I rowsort
SELECT ALL + + 25 AS col1 FROM tab2 AS cor0
----
25
25
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + - MIN( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + - MIN ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + + col0 * + col1 - - col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col1 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 > - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * col1 + + + col0 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN 24 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL 4 * + COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL 4 * + COUNT ( * ) AS col0 FROM tab1
----
12

query II rowsort
SELECT DISTINCT - col1, - ( - + ( - col1 ) ) AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT + col2 * - - col1 * - CAST( + 68 AS SIGNED ) FROM tab1
----
-20060
-217328
-91392

skipif mysql # not compatible
query I rowsort label-3734
SELECT + col2 * - - col1 * - CAST ( + 68 AS INTEGER ) FROM tab1
----
-20060
-217328
-91392

query I rowsort
SELECT - 37 * col0 * + 16 * - col1 FROM tab2
----
1388832
2917376
2974800

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 95 )
----

query I rowsort
SELECT + col1 * + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3739
SELECT * FROM tab1 WHERE NOT - col1 + col1 * + CAST( NULL AS DECIMAL ) NOT BETWEEN 53 * + col2 - - col2 * + col2 AND - 13
----

skipif mysql # not compatible
query III rowsort label-3739
SELECT * FROM tab1 WHERE NOT - col1 + col1 * + CAST ( NULL AS REAL ) NOT BETWEEN 53 * + col2 - - col2 * + col2 AND - 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3740
SELECT DISTINCT 89, + CAST( - + 12 AS SIGNED ) * 5 * - 47 + COUNT( * ) col2 FROM tab0
----
89
2823

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3740
SELECT DISTINCT 89, + CAST ( - + 12 AS INTEGER ) * 5 * - 47 + COUNT ( * ) col2 FROM tab0
----
89
2823

query I rowsort
SELECT ALL + 12 + 33 + + + ( - col1 ) FROM tab1
----
-2
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - - MAX( DISTINCT + 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3742
SELECT - - MAX ( DISTINCT + 11 ) FROM tab2 AS cor0
----
11

query I rowsort
SELECT + col1 * + 77 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT DISTINCT + col2 + + 2 AS col1 FROM tab2 cor0
----
25
42
60

query I rowsort
SELECT DISTINCT - + 44 * + col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT - ( + col2 ) + + col1 AS col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT + col1 AS col2, - 67 FROM tab0 WHERE + - 4 * - - col2 + + 66 / - - col2 IS NULL
----

query I rowsort
SELECT ALL 9 * 92 AS col2 FROM tab0
----
828
828
828

query I rowsort
SELECT 28 + + - col0 FROM tab0
----
-59
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + COUNT( * ) * 31 AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + COUNT ( * ) * 31 AS col2 FROM tab0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT col2 + - col2 DIV 9 FROM tab2
----
21
36
52

skipif mysql # not compatible
query I rowsort label-3751
SELECT col2 + - col2 / 9 FROM tab2
----
21
36
52

query I rowsort
SELECT - 10 + col0 FROM tab1
----
41
75
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT + col1 DIV + col0 + + - col1 AS col0 FROM tab1 WHERE 56 * + - col0 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3753
SELECT + col1 / + col0 + + - col1 AS col0 FROM tab1 WHERE 56 * + - col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col1 + 15 AS col1 FROM tab0
----
-6
-66
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE + col1 / 47 NOT BETWEEN 62 / + ( - + 85 ) + + 0 AND - col0
----
-46
-64
-75

query I rowsort
SELECT ( - col0 ) * + col1 * + ( - 39 ) + col2 - ( - + col2 ) FROM tab1 AS cor0
----
16693
166939
28038

query II rowsort
SELECT ALL col1 AS col0, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3759
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, + col2 col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - SUM( DISTINCT + 74 ) col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3762
SELECT DISTINCT - SUM ( DISTINCT + 74 ) col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + 23 * + + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT - SUM( + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT - SUM ( + col0 ) AS col0 FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 75 * + - col0 FROM tab0 AS cor0
----
-1125
-6525
-7275

query II rowsort
SELECT + + 54 * + 98 AS col0, - ( + - ( + - 76 ) ) * - 68 AS col0 FROM tab1 cor0
----
5292
5168
5292
5168
5292
5168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3769
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 32 * + CAST( NULL AS SIGNED ) * + 28 * + col2 = NULL )
----

skipif mysql # not compatible
query III rowsort label-3769
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 32 * + CAST ( NULL AS INTEGER ) * + 28 * + col2 = NULL )
----

query I rowsort
SELECT ALL + 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT CAST( NULL AS SIGNED ) + - + col1 * - + col2 + 44 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT CAST ( NULL AS INTEGER ) + - + col1 * - + col2 + 44 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + + ( - col0 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 7 + + col0 AND - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - - COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3774
SELECT - - COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + + COUNT( + - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3775
SELECT + + COUNT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT DISTINCT + 49 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + 49 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 60 * - col0 AS col1 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT DISTINCT - col0 + + col0 + + - 65 DIV col0 * - + 50 col1 FROM tab1 AS cor0
----
0
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3778
SELECT DISTINCT - col0 + + col0 + + - 65 / col0 * - + 50 col1 FROM tab1 AS cor0
----
0
50

query I rowsort
SELECT col1 * - col1 * - + col0 + col2 AS col2 FROM tab0 cor0
----
196
38377
98462

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col2 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + 27 * - 13 AS col0 FROM tab1
----
-351
-351
-351

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT ALL col0 * - + col2 DIV - col2 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL col0 * - + col2 / - col2 AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query III rowsort label-3784
SELECT ALL + col1 AS col2, col0 col0, + 48 DIV col1 + - - col1 + - - col0 + - col0 FROM tab0
----
9 values hashing to 276f8de0c0e7d2b87ab514a3cf7ad683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3784
SELECT ALL + col1 AS col2, col0 col0, + 48 / col1 + - - col1 + - - col0 + - col0 FROM tab0
----
9 values hashing to 276f8de0c0e7d2b87ab514a3cf7ad683

query III rowsort
SELECT * FROM tab1 WHERE ( 74 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab2
----
23
40
58

query I rowsort
SELECT - 26 + + - 24 AS col1 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT + + 96 + - col2 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT DISTINCT + + col0 - - 24 FROM tab1 AS cor0
----
109
115
75

query III rowsort
SELECT * FROM tab1 WHERE - + ( + - col2 ) IS NULL
----

query I rowsort
SELECT - 97 * + 66 FROM tab0
----
-6402
-6402
-6402

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + - col0 AND 74 / + 92 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 NOT IN ( - col1, - 32, + col0 + - col2 )
----

query I rowsort
SELECT ALL - 71 AS col1 FROM tab1 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - AVG ( ALL + + 69 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT + - CAST( - ( 41 ) AS SIGNED ) + MAX( - col2 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - 26 * - 51 / + + col2 / - - col1 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + - CAST ( - ( 41 ) AS INTEGER ) + MAX ( - col2 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - 26 * - 51 / + + col2 / - - col1 AND NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3798
SELECT + MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - ( CAST( 91 AS SIGNED ) ) FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-3799
SELECT - ( CAST ( 91 AS INTEGER ) ) FROM tab0
----
-91
-91
-91

query II rowsort
SELECT ALL - 40 AS col1, + ( col1 ) * - 79 AS col0 FROM tab1
----
-40
-1106
-40
-3713
-40
-395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL CAST( + - col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL ( - + col1 ) DIV + 8 AS col2 FROM tab2
----
-6
-8
-9

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL ( - + col1 ) / + 8 AS col2 FROM tab2
----
-6
-8
-9

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 56 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 21 ), + 52 + + col1 col1 FROM tab0
----
-21
133
-21
53
-21
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT DISTINCT - - CAST( - 98 AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3806
SELECT DISTINCT - - CAST ( - 98 AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

query I rowsort
SELECT ALL - + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT DISTINCT - col1 + - ( + 14 ) + + CAST( col2 AS SIGNED ) * + - 59 AS col1 FROM tab0 AS cor0
----
-2868
-5856
-625

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - col1 + - ( + 14 ) + + CAST ( col2 AS INTEGER ) * + - 59 AS col1 FROM tab0 AS cor0
----
-2868
-5856
-625

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT ALL + col1 DIV + - col0 + + col2 FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + col1 / + - col0 + + col2 FROM tab2 AS cor0
----
22
39
58

query I rowsort
SELECT ALL - + col1 * + - col0 + - 9 FROM tab1 AS cor0
----
416
4268
705

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3811
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3811
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col1 + + - col2 + ( - col2 ) FROM tab1 AS cor0
----
307
4141
522

query I rowsort
SELECT col1 * - col1 + ( - col0 ) AS col2 FROM tab1
----
-110
-2300
-247

query I rowsort
SELECT + col2 * + - 80 AS col1 FROM tab0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL + MIN( - col1 ) * - - 59 FROM tab2 WHERE NOT + + 98 * 12 + - 96 - + col0 - col0 * - col0 * + ( - col1 ) IS NULL
----
-4543

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + MIN ( - col1 ) * - - 59 FROM tab2 WHERE NOT + + 98 * 12 + - 96 - + col0 - col0 * - col0 * + ( - col1 ) IS NULL
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL COUNT( * ) * + 59 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL COUNT ( * ) * + 59 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL - SUM( + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - SUM ( + col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - 49 - + ( 79 ) AS col2 FROM tab0 cor0
----
-128
-128
-128

query I rowsort
SELECT DISTINCT 39 - + 2 AS col1 FROM tab1 AS cor0
----
37

query I rowsort
SELECT ALL + + 48 - 19 AS col0 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT col0 * 3 AS col2 FROM tab1
----
153
255
273

query I rowsort
SELECT ALL 98 * + ( + 20 ) FROM tab2 AS cor0
----
1960
1960
1960

query II rowsort
SELECT col0 AS col1, - 30 FROM tab1 AS cor0
----
51
-30
85
-30
91
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT - ( + 1 ) * + col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2 - 33
----

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - ( + 1 ) * + col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2 - 33
----

query II rowsort
SELECT + - col1, + 99 AS col0 FROM tab0 AS cor0
----
-1
99
-21
99
-81
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT + 83 DIV + - col0 + - - col1 FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-3829
SELECT + 83 / + - col0 + - - col1 FROM tab0 AS cor0
----
1
21
76

query II rowsort
SELECT - - 60 AS col1, - col0 FROM tab1 AS cor0
----
60
-51
60
-85
60
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( 74 ) BETWEEN NULL AND + col0 / - + 66
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( 74 ) BETWEEN NULL AND + col0 / - + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab0 AS cor0 WHERE NOT NULL > ( - 64 )
----

query II rowsort
SELECT - - 95 AS col2, - 95 FROM tab2 AS cor0
----
95
-95
95
-95
95
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3835
SELECT - COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col0, + ( - - COUNT( * ) ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3835
SELECT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col0, + ( - - COUNT ( * ) ) FROM tab0
----
NULL
3

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col1 > + ( - + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL - CAST( + col2 AS SIGNED ) * - + col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - CAST ( + col2 AS INTEGER ) * - + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT MIN( col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT DISTINCT MIN ( col0 ) col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT DISTINCT - CAST( - 40 AS SIGNED ) + + col1 / - + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - CAST ( - 40 AS INTEGER ) + + col1 / - + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3840
SELECT * FROM tab0 WHERE NOT + + ( + + CAST( NULL AS DECIMAL ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3840
SELECT * FROM tab0 WHERE NOT + + ( + + CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 84 BETWEEN - col1 - + col0 AND - + 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col1 FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT ALL - + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - ( + ( - 70 ) ) * - - 44 - COUNT( * ) FROM tab0 AS cor0
----
3077

skipif mysql # not compatible
query I rowsort label-3845
SELECT - ( + ( - 70 ) ) * - - 44 - COUNT ( * ) FROM tab0 AS cor0
----
3077

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT 18 + - 83 * + + ( - MIN( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
-3883

skipif mysql # not compatible
query I rowsort label-3846
SELECT 18 + - 83 * + + ( - MIN ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
-3883

query I rowsort
SELECT ALL 13 + - col2 FROM tab1
----
-46
-55
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT + col1 + CAST( NULL AS SIGNED ) + + col2 + 39 + + 65 * - 7 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + col1 + CAST ( NULL AS INTEGER ) + + col2 + 39 + + 65 * - 7 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0, 39 FROM tab2
----
46
39
64
39
75
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3850
SELECT 33 DIV col1 * - col1, + col1 col1 FROM tab0 AS cor0
----
-21
21
-33
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3850
SELECT 33 / col1 * - col1, + col1 col1 FROM tab0 AS cor0
----
-21
21
-33
1
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 74 col2 FROM tab0 AS cor0 WHERE - col1 - + - col1 + - col2 = NULL
----

query I rowsort
SELECT ALL + col0 + - - 38 FROM tab0 cor0
----
125
135
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT DISTINCT col0 + + - 15 * - + col1, + CAST( NULL AS SIGNED ) AS col2, + col0 col0 FROM tab0 AS cor0
----
9 values hashing to 8962de190b24d482a296877caa2c1189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3853
SELECT DISTINCT col0 + + - 15 * - + col1, + CAST ( NULL AS INTEGER ) AS col2, + col0 col0 FROM tab0 AS cor0
----
9 values hashing to 8962de190b24d482a296877caa2c1189

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT COUNT( * ) - MAX( DISTINCT + + col1 ) * + COUNT( * ) + - + 76 AS col1 FROM tab1
----
-214

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( * ) - MAX ( DISTINCT + + col1 ) * + COUNT ( * ) + - + 76 AS col1 FROM tab1
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - SUM( + col2 ) - 39 - + - COUNT( * ) AS col0 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-3855
SELECT - SUM ( + col2 ) - 39 - + - COUNT ( * ) AS col0 FROM tab0
----
-192

query I rowsort
SELECT col2 + 68 FROM tab1
----
127
136
164

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT 90 + - MAX( + col0 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3858
SELECT 90 + - MAX ( + col0 ) AS col1 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col2 * + 69
----

query I rowsort
SELECT DISTINCT ( - 76 ) AS col0 FROM tab1
----
-76

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3862
SELECT DISTINCT + col2 + - col1 + + + CAST( + col2 AS SIGNED ) + + + col0 * col2 - + + 93 AS col2, - col2 - - 56 + - 15 * + col2 FROM tab0 AS cor0
----
625
-696
776
-104
9707
-1528

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT + col2 + - col1 + + + CAST ( + col2 AS INTEGER ) + + + col0 * col2 - + + 93 AS col2, - col2 - - 56 + - 15 * + col2 FROM tab0 AS cor0
----
625
-696
776
-104
9707
-1528

query I rowsort
SELECT ALL 45 + + col1 + 96 FROM tab2 AS cor0
----
192
208
218

query III rowsort
SELECT ALL * FROM tab2 WHERE + 96 * ( - 8 ) <= + + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3865
SELECT - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

query I rowsort
SELECT - col0 * + col1 * + col2 AS col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 15 * + col1 AS col2 FROM tab0
----
1215
15
315

query I rowsort
SELECT - - 49 AS col0 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - - 67 AS col2 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - - ( - MIN( col0 ) ) FROM tab0 AS cor0 WHERE + col2 <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - - ( - MIN ( col0 ) ) FROM tab0 AS cor0 WHERE + col2 <= - col2
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0, col1 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - 69 * - col0 - - col0 FROM tab2 AS cor0
----
3220
4480
5250

query I rowsort
SELECT ALL 19 * - 29 AS col0 FROM tab0
----
-551
-551
-551

query II rowsort
SELECT col1, col2 * - + 28 FROM tab1
----
14
-2688
47
-1904
5
-1652

query I rowsort
SELECT ALL + ( + col2 ) * - + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ( - col0 ) + + + col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 21 / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 * col2 AS col0 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT - 36 * + COUNT( - + 23 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - 36 * + COUNT ( - + 23 ) FROM tab0
----
-108

query I rowsort
SELECT + + 10 AS col1 FROM tab0 WHERE NOT + 22 * col2 IS NOT NULL
----

query I rowsort
SELECT col0 + - + col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT + ( - COUNT( * ) ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ( + col0 ) FROM tab2 WHERE + col2 BETWEEN + - col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT + + col2 + - col0 DIV 32 FROM tab0 AS cor0
----
47
8
96

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + + col2 + - col0 / 32 FROM tab0 AS cor0
----
47
8
96

query I rowsort
SELECT col0 * - + 41 * + 79 * - - 75 + + col1 AS col2 FROM tab1 AS cor0
----
-12389161
-20648620
-22106128

query I rowsort
SELECT ALL - - col2 + 1 AS col1 FROM tab0 AS cor0
----
100
11
48

query II rowsort
SELECT DISTINCT - col0, + col1 + + 72 AS col0 FROM tab1
----
-51
86
-85
77
-91
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + COUNT( * ) * + SUM( + 64 ) FROM tab0 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) * + SUM ( + 64 ) FROM tab0 AS cor0
----
576

query II rowsort
SELECT col1 AS col0, + col2 * - - col0 AS col1 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT CAST( - 4 AS SIGNED ) + col1 * 90 AS col2 FROM tab2
----
4586
6026
6926

skipif mysql # not compatible
query I rowsort label-3892
SELECT CAST ( - 4 AS INTEGER ) + col1 * 90 AS col2 FROM tab2
----
4586
6026
6926

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3894
SELECT * FROM tab0 WHERE col2 >= - col1 / CAST( - col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3894
SELECT * FROM tab0 WHERE col2 >= - col1 / CAST ( - col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col1 ) = - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col1 ) = - CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3897
SELECT * FROM tab0 WHERE NOT ( + ( 35 ) + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3897
SELECT * FROM tab0 WHERE NOT ( + ( 35 ) + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / - 32 >= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab0 WHERE + col1 BETWEEN 41 * - col0 AND col1 + 21
----
156

skipif mysql # not compatible
query I rowsort label-3899
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab0 WHERE + col1 BETWEEN 41 * - col0 AND col1 + 21
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT + ( + CAST( col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + ( + CAST ( col0 AS INTEGER ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL + 50 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 50 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT - COUNT( * ) * + 63 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( * ) * + 63 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 + col0 col2 FROM tab0
----
106
24
96

query I rowsort
SELECT DISTINCT col2 * 38 + 6 FROM tab0
----
1792
3768
386

query I rowsort
SELECT - 55 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
-55
-55
-55

query I rowsort
SELECT 32 + + col2 FROM tab0
----
131
42
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT 1 DIV + col2 + - 2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3907
SELECT 1 / + col2 + - 2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 57 + + ( - col0 ) AS col2 FROM tab0
----
-30
-40
42

query I rowsort
SELECT + 82 * + col0 + + col0 FROM tab2 WHERE col0 + col2 < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT COUNT( * ) - + COUNT( * ) * + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3911
SELECT COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + 72 + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT col1 * col1 + + 58 DIV 61 col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT col1 * col1 + + 58 / 61 col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - 48 + col1 AS col0 FROM tab1 AS cor0
----
-1
-34
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 73 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 > col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3917
SELECT - + col2 DIV + CAST( col1 * - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3917
SELECT - + col2 / + CAST ( col1 * - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
62

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
62

query I rowsort
SELECT DISTINCT + + 93 + - col0 FROM tab0 AS cor0
----
-4
6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL - 86 + COUNT( * ) col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3920
SELECT ALL - 86 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - - col2 AS col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - 97 + MIN( - 6 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3923
SELECT DISTINCT - 97 + MIN ( - 6 ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT col2 - + CAST( NULL AS SIGNED ) * + ( - 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-3924
SELECT col2 - + CAST ( NULL AS INTEGER ) * + ( - col0 + col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + col1 col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT 85 / 89 AS col2 FROM tab0 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT - 93 - - col0 AS col1 FROM tab2 AS cor0
----
-18
-29
-47

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE - ( + col0 ) * - col1 NOT BETWEEN NULL AND + col2
----
15
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab1 WHERE + 42 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3929
SELECT CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab1 WHERE + 42 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT - ( 91 ) - COUNT( * ) AS col2 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - ( 91 ) - COUNT ( * ) AS col2 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - MIN( + ( col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3932
SELECT - MIN ( + ( col2 ) ) FROM tab2
----
-23

query I rowsort
SELECT col2 * col1 * + col0 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - COUNT( ALL + - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3934
SELECT - COUNT ( ALL + - col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 / col2 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT + COUNT( + 67 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT + COUNT ( + 67 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 40 AS col2 FROM tab0 AS cor0 WHERE NOT ( 62 ) NOT BETWEEN + col0 / + 38 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) <> ( col0 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 - + 93 FROM tab2 WHERE + + ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, - col0 col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT 63 * 98 DIV - 70 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3942
SELECT 63 * 98 / - 70 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT 71 * - COUNT( * ) FROM tab1, tab0 AS cor0
----
-639

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 71 * - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-639

onlyif mysql # DIV for integer division: 
query III rowsort label-3944
SELECT * FROM tab0 AS cor0 WHERE NOT col2 DIV + + 90 <> + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-3944
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + + 90 <> + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL SUM( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL SUM ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT AVG ( ALL 25 ) FROM tab2 AS cor0 WHERE NOT + col0 + 99 + 58 * 44 > - col2 * + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3947
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 35 * + - col0 ) NOT IN ( col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3947
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 35 * + - col0 ) NOT IN ( col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT DISTINCT - col0 * - col0 - - col0 - - 66 DIV 36 AS col2 FROM tab1 cor0
----
2653
7311
8373

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - col0 * - col0 - - col0 - - 66 / 36 AS col2 FROM tab1 cor0
----
2653
7311
8373

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - - ( + COUNT( col2 ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - - ( + COUNT ( col2 ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + 22 - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - MIN( DISTINCT - col2 ) + AVG ( ( + 61 ) - - col2 * + col1 ) / COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 * 96 - 43 ) AND col1 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - MIN ( DISTINCT - col2 ) + AVG ( ( + 61 ) - - col2 * + col1 ) / COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 * 96 - 43 ) AND col1 + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT 11 * - COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT 11 * - COUNT ( * ) FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT DISTINCT - COUNT( ALL col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - COUNT ( ALL col0 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col0 ) NOT IN ( 77 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) + - 7 * - + 47 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 7 * - + 47 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= - + 73
----
46
51
23
75
67
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3959
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN ( + col0 + + - col0 ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-3959
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( + col0 + + - col0 ) AND - col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN - - col2 AND col2 + + 5 )
----

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT ( + 51 ) BETWEEN 25 AND col0
----
-3

query I rowsort
SELECT + + 57 * 87 * + col0 FROM tab0 cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT ALL col0 - - + 51 FROM tab1 AS cor0
----
102
136
142

query I rowsort
SELECT + 35 * + col1 AS col1 FROM tab1 AS cor0
----
1645
175
490

query I rowsort
SELECT DISTINCT 20 AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT + - ( - SUM( DISTINCT col0 ) ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + - ( - SUM ( DISTINCT col0 ) ) AS col1 FROM tab0 cor0
----
199

query I rowsort
SELECT ALL + 79 + + - 37 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 29 + + + col1 + col1 AS col1 FROM tab2 AS cor0
----
105
125
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 40 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 41 * - col2 <= + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + ( + COUNT( * ) ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3972
SELECT + ( + COUNT ( * ) ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - col0 * + 73 + + + 81 + + col2 FROM tab0 AS cor0
----
-6260
-6901
-967

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + - 76 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * ( - + col0 ) col0, 40 * - - 84 + + col0 AS col1 FROM tab0 AS cor0
----
705
3375
870
3447
9603
3457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT + CAST( COUNT( + ( col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3976
SELECT + CAST ( COUNT ( + ( col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT ALL - col2 DIV + + col1 + + col2 + + col2 + - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - col2 / + + col1 + + col2 + + col2 + - col2 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + - 8 ) ) col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT SUM( DISTINCT 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3979
SELECT SUM ( DISTINCT 7 ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT 61 * - COUNT( * ) AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-3980
SELECT 61 * - COUNT ( * ) AS col2 FROM tab1
----
-183

query I rowsort
SELECT ALL + + col0 * - ( - 38 ) FROM tab2 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL + 13 * col1 + + + col0 FROM tab2 WHERE - col1 IS NOT NULL
----
1065
709
946

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - MAX( + + 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - MAX ( + + 74 ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - col2 * + - 78 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT ( COUNT( * ) ) * - + 26 * - 83 col1 FROM tab0
----
6474

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3985
SELECT DISTINCT ( COUNT ( * ) ) * - + 26 * - 83 col1 FROM tab0
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3986
SELECT * FROM tab2 AS cor0 WHERE NOT 84 + - ( + col0 ) + col0 * 5 * ( + col1 ) + 49 = + CAST( + 30 AS SIGNED ) * 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3986
SELECT * FROM tab2 AS cor0 WHERE NOT 84 + - ( + col0 ) + col0 * 5 * ( + col1 ) + 49 = + CAST ( + 30 AS INTEGER ) * 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 * - 95 col1 FROM tab1 AS cor0
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT - COUNT( * ) * + + MIN( - + 34 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - COUNT ( * ) * + + MIN ( - + 34 ) FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT + 77 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-3989
SELECT + 77 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
77
3

query I rowsort
SELECT col0 + ( - + col2 ) - col1 AS col0 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ALL - 85 + - 64 FROM tab1 AS cor0
----
-149
-149
-149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + col1 / 23 * + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 BETWEEN - - ( - 10 ) + + + 42 / + 54 * + - 37 * 86 AND col0
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT DISTINCT - 75, + COUNT( * ) col0 FROM tab1
----
-75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3996
SELECT DISTINCT - 75, + COUNT ( * ) col0 FROM tab1
----
-75
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT + 61 DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 61 / col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL 55 + - col0 + - 66 * + col1 AS col0 FROM tab0
----
-108
-1418
-5306

query I rowsort
SELECT col0 + + col2 + - + 4 AS col2 FROM tab1
----
140
143
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT ALL - 92 + + COUNT( * ) DIV 94 * - - 98 AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - 92 + + COUNT ( * ) / 94 * - - 98 AS col1 FROM tab2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT + 42 + col0 DIV - - 55 FROM tab1
----
42
43
43

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 42 + col0 / - - 55 FROM tab1
----
42
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT - + MAX( - CAST( + 9 AS SIGNED ) ) + + - 35 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4002
SELECT - + MAX ( - CAST ( + 9 AS INTEGER ) ) + + - 35 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT + ( - col2 ) + + col1 + + col2 * + col1 FROM tab0 AS cor0
----
1
221
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT + MIN( col2 ) + + + 36 * - - COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + MIN ( col2 ) + + + 36 * - - COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + 49 * 49 + + + MIN( DISTINCT - + 50 ) * - 94 + 21 FROM tab1 AS cor0
----
7122

skipif mysql # not compatible
query I rowsort label-4005
SELECT + 49 * 49 + + + MIN ( DISTINCT - + 50 ) * - 94 + 21 FROM tab1 AS cor0
----
7122

query I rowsort
SELECT - 23 FROM tab0 AS cor0 WHERE ( 3 ) IN ( 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 - - col1 col0 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4008
SELECT - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4008
SELECT - + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - SUM( DISTINCT - - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-4009
SELECT - SUM ( DISTINCT - - 32 ) FROM tab0
----
-32

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4011
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - - MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4012
SELECT - - MAX ( - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - 66 * + col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= - 48
----

query I rowsort
SELECT + col0 * - 86 FROM tab0 AS cor0
----
-1290
-7482
-8342

query I rowsort
SELECT ALL + ( - 76 ) AS col0 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL COUNT( ALL - 34 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL COUNT ( ALL - 34 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + COUNT( DISTINCT - col1 ) * ( 59 ) AS col2 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + COUNT ( DISTINCT - col1 ) * ( 59 ) AS col2 FROM tab1
----
177

query I rowsort
SELECT - ( 77 ) FROM tab0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + MIN( ALL col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4020
SELECT + MIN ( ALL col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4021
SELECT - col0 * - CAST( NULL AS SIGNED ) * - CAST( + + col2 AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT - col0 * - CAST ( NULL AS INTEGER ) * - CAST ( + + col2 AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT col0 + + 34 + col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + 11 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col1 * + col0 + - col2 AS col0, col1 * 78 * - col0 AS col2 FROM tab0 AS cor0
----
-2
-7566
1168
-94770
1817
-142506

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT - + MIN( ALL 7 ) AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - + MIN ( ALL 7 ) AS col2 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL COUNT( * ) + + 37 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + col0 + + + 98 AND - col2
----
37

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL COUNT ( * ) + + 37 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + col0 + + + 98 AND - col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT DISTINCT + 74 * col2 * - 32 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + 74 * col2 * - 32 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * 95 + + col1 col2 FROM tab1 AS cor0
----
6275
6284
6317

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + - 75 + + COUNT( * ) * 10 AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4030
SELECT + - 75 + + COUNT ( * ) * 10 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - col0 / + + col1 + col2 - + + col1 + 19 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT CAST( NULL AS SIGNED ) + - col1 + 29 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT CAST ( NULL AS INTEGER ) + - col1 + 29 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4033
SELECT + col2 DIV col2 AS col2, - col0 AS col1 FROM tab0
----
1
-15
1
-87
1
-97

skipif mysql # not compatible
query II rowsort label-4033
SELECT + col2 / col2 AS col2, - col0 AS col1 FROM tab0
----
1
-15
1
-87
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT COUNT( - + col0 ) * + - 54 * + + MAX( col0 ) AS col0 FROM tab2
----
-12150

skipif mysql # not compatible
query I rowsort label-4034
SELECT COUNT ( - + col0 ) * + - 54 * + + MAX ( col0 ) AS col0 FROM tab2
----
-12150

query I rowsort
SELECT DISTINCT - + col2 * - - 7 FROM tab2 WHERE NOT + col0 IS NULL
----
-161
-280
-406

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT - - col0 + + col1 - - ( + - col2 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - - col2 - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4040
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT - - 70 * + col1 FROM tab0 AS cor0
----
1470
5670
70

query I rowsort
SELECT DISTINCT + ( + + 79 ) AS col1 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + ( + + 18 ) * + + 4 FROM tab2 AS cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT - col2 DIV + col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 - + ( - col1 ) + ( + col2 ) * - - 46 IS NOT NULL ) )
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4044
SELECT - col2 / + col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 - + ( - col1 ) + ( + col2 ) * - - 46 IS NOT NULL ) )
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - - COUNT( DISTINCT - 44 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4045
SELECT - - COUNT ( DISTINCT - 44 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( + col1 ) / col1
----

query II rowsort
SELECT ALL - ( - col2 ), + col0 * + col1 AS col1 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT + col2 * + col1 * col2 AS col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT DISTINCT ( col2 ) * + + ( + + 96 ) AS col2 FROM tab1
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL 25 * + MIN( col0 ) AS col1 FROM tab1
----
1275

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL 25 * + MIN ( col0 ) AS col1 FROM tab1
----
1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT - 80 + 30 - - 45 - + + 97 + + col2 * - ( - - CAST( NULL AS SIGNED ) ) * + + col1 * + - ( 44 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT - 80 + 30 - - 45 - + + 97 + + col2 * - ( - - CAST ( NULL AS INTEGER ) ) * + + col1 * + - ( 44 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 * col2 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - 56 * COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-168

skipif mysql # not compatible
query I rowsort label-4053
SELECT - 56 * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT - 75 + - CAST( MIN( DISTINCT + ( 83 ) ) AS SIGNED ) AS col1 FROM tab1
----
-158

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - 75 + - CAST ( MIN ( DISTINCT + ( 83 ) ) AS INTEGER ) AS col1 FROM tab1
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL - + COUNT( * ) + - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4055
SELECT ALL - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 65 ) + + col0 * - - 94 AS col0 FROM tab1 AS cor0
----
4729
7925
8489

query I rowsort
SELECT - ( + + col0 ) AS col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL - 47 + + MAX( - CAST( col2 AS SIGNED ) ) * - + ( - + 64 ) FROM tab2 AS cor0
----
-1519

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - 47 + + MAX ( - CAST ( col2 AS INTEGER ) ) * - + ( - + 64 ) FROM tab2 AS cor0
----
-1519

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - MAX( col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4059
SELECT - MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT MAX( ALL 9 ) - - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4060
SELECT MAX ( ALL 9 ) - - COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT col1 - - ( col1 ) FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4062
SELECT col1 AS col2, 14 - CAST( ( + - col2 ) AS SIGNED ) AS col1 FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4062
SELECT col1 AS col2, 14 - CAST ( ( + - col2 ) AS INTEGER ) AS col1 FROM tab2 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 col1, col0 AS col1 FROM tab1
----
71
51
71
85
71
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT + col1 DIV - 48 + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4064
SELECT + col1 / - 48 + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 + - + 67 col2 FROM tab2
----
-136
-171
-200

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - + 83 + + ( - + 92 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 61, + col1 FROM tab0
----
61
1
61
21
61
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 32 NOT BETWEEN + 84 AND + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL col1 * - col2 - + 52 * - 70 + + 39 + + 38 / ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL col1 * - col2 - + 52 * - 70 + + 39 + + 38 / ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( col1 * + + 33 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 90 FROM tab2
----
-4140
-5760
-6750

query II rowsort
SELECT ( + + 98 ) AS col0, - col2 FROM tab1
----
98
-59
98
-68
98
-96

query I rowsort
SELECT ( + - 33 ) * - col0 AS col2 FROM tab1 AS cor0
----
1683
2805
3003

query I rowsort
SELECT + col1 * 26 * + 36 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1137321
1710093
90793

query II rowsort
SELECT - col0 * 11 AS col1, + 28 FROM tab1 AS cor0
----
-1001
28
-561
28
-935
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT + - MIN( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + - MIN ( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ( COUNT( * ) ) * SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4080
SELECT ( COUNT ( * ) ) * SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
585

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4081
SELECT ALL - col0 AS col2, + CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL - col0 AS col2, + CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT - ( 60 ) DIV - - ( - + ( ( - - COUNT( * ) ) ) ) + + - MAX( + col1 ) - - COUNT( + 89 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4082
SELECT - ( 60 ) / - - ( - + ( ( - - COUNT ( * ) ) ) ) + + - MAX ( + col1 ) - - COUNT ( + 89 ) FROM tab1
----
-24

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + 27 / + 56 IS NOT NULL
----

query I rowsort
SELECT + col2 + 84 AS col1 FROM tab2
----
107
124
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT ALL 42 DIV + + col1 + + - col1 DIV + + col2 AS col0 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 42 / + + col1 + + - col1 / + + col2 AS col0 FROM tab1
----
0
3
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4086
SELECT ALL * FROM tab2 WHERE + - CAST( - col0 AS SIGNED ) < - 46 + + + col1
----

skipif mysql # not compatible
query III rowsort label-4086
SELECT ALL * FROM tab2 WHERE + - CAST ( - col0 AS INTEGER ) < - 46 + + + col1
----

query I rowsort
SELECT ALL 34 + col0 AS col2 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT + - col0 * - + ( + 37 ) * + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT + - col0 * - + ( + 37 ) * + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 80 * + col1 AS col1 FROM tab1 AS cor0
----
1120
3760
400

query I rowsort
SELECT ALL - col0 * col1 * + - col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL COUNT( * ) * - 58 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL COUNT ( * ) * - 58 FROM tab0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT col1 DIV - 3 AS col1 FROM tab0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT col1 / - 3 AS col1 FROM tab0
----
-27
-7
0

query I rowsort
SELECT ALL + 41 * - + col0 * + + col2 * - col1 FROM tab2
----
11949450
2212278
8081920

query III rowsort
SELECT * FROM tab2 WHERE ( + 69 ) + - + 73 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + col1 + col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT DISTINCT - 29 + + + col2 FROM tab1 AS cor0
----
30
39
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4097
SELECT ALL + col1 / 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-4097
SELECT ALL + col1 / CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4098
SELECT DISTINCT - 90 + - - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3
NULL
-75
NULL
7
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT DISTINCT - 90 + - - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
NULL
-75
NULL
7
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL - col0 + + col0 * + - CAST( + + col0 AS SIGNED ) * + + 98 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - col0 + + col0 * + - CAST ( + + col0 AS INTEGER ) * + + 98 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 35 * - col0 + - 97 + + 21 AS col0 FROM tab1 AS cor0
----
-1861
-3051
-3261

query I rowsort
SELECT ALL - + 52 * col1 + 62 FROM tab2 AS cor0
----
-2590
-3422
-3942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT ALL - MIN( ALL col2 ) DIV + 30 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - MIN ( ALL col2 ) / + 30 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT 75 DIV ( - - col2 ) FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4103
SELECT 75 / ( - - col2 ) FROM tab0
----
0
1
7

query I rowsort
SELECT col2 * ( - 93 ) * 20 + + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) + - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 53 ) FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT SUM( ALL - + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT SUM ( ALL - + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4109
SELECT + ( - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col0, col0 * 26 - + col1 col1 FROM tab2 AS cor0
----
NULL
1145
NULL
1587
NULL
1883

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4109
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col0, col0 * 26 - + col1 col1 FROM tab2 AS cor0
----
NULL
1145
NULL
1587
NULL
1883

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT 94 col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
94
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4110
SELECT 94 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94
3

query II rowsort
SELECT - - col2 AS col1, col2 - - col1 AS col1 FROM tab0 AS cor0
----
10
31
47
128
99
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT + 96 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4114
SELECT ALL + col0, CAST( NULL AS SIGNED ) * col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4114
SELECT ALL + col0, CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT - - 31 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - 31 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4117
SELECT ALL - - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 12, - 62 AS col0 FROM tab0 AS cor0
----
12
-62
12
-62
12
-62

query II rowsort
SELECT - 54, 79 * - 29 AS col2 FROM tab2 AS cor0
----
-54
-2291
-54
-2291
-54
-2291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN 59 / + - col2 + + col1 - - 92 * col0 * + col0 * - - col1 AND - 81
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4121
SELECT ALL - col0, + col0 col0, - - 95 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to d6338a06e6b5b59fa62255dbb5a508e5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4121
SELECT ALL - col0, + col0 col0, - - 95 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to d6338a06e6b5b59fa62255dbb5a508e5

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - MIN( - 11 ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - MIN ( - 11 ) AS col0 FROM tab1 AS cor0
----
11

query II rowsort
SELECT - col2, + 40 AS col0 FROM tab1 AS cor0
----
-59
40
-68
40
-96
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 54 IN ( - 64, + col0, - 53 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT + MAX( - - CAST( NULL AS SIGNED ) ) + + + 85 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + MAX ( - - CAST ( NULL AS INTEGER ) ) + + + 85 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 WHERE NOT + 33 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT ALL CAST( + - 6 AS SIGNED ) col2, col2 col2 FROM tab0 AS cor0 WHERE 36 > - + col2
----
-6
10
-6
47
-6
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4128
SELECT ALL CAST ( + - 6 AS INTEGER ) col2, col2 col2 FROM tab0 AS cor0 WHERE 36 > - + col2
----
-6
10
-6
47
-6
99

query I rowsort
SELECT DISTINCT + 2 * + col0 + + + col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL MIN( DISTINCT - ( + 54 ) ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL MIN ( DISTINCT - ( + 54 ) ) FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT - - COUNT( ALL - CAST( - col2 AS SIGNED ) ) + + - 69 AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4131
SELECT - - COUNT ( ALL - CAST ( - col2 AS INTEGER ) ) + + - 69 AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) * 42 * COUNT( * ) + + + 83 AS col0 FROM tab0
----
3
-295

skipif mysql # not compatible
query II rowsort label-4132
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) * 42 * COUNT ( * ) + + + 83 AS col0 FROM tab0
----
3
-295

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4133
SELECT + col0 DIV + col2 AS col0 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) * - 87 DIV + col2 - - col1 IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT + col0 / + col2 AS col0 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) * - 87 / + col2 - - col1 IS NULL
----
0
1
1

query I rowsort
SELECT + 56 * + 86 FROM tab2
----
4816
4816
4816

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT - col0 * - + col2 AS col0 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT - + col2 * + + col1 + 39 AS col2 FROM tab2 AS cor0 WHERE + ( + 5 ) IN ( - + CAST( - + col1 AS SIGNED ), 56, - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4137
SELECT - + col2 * + + col1 + 39 AS col2 FROM tab2 AS cor0 WHERE + ( + 5 ) IN ( - + CAST ( - + col1 AS INTEGER ), 56, - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 * - + col2
----

query I rowsort
SELECT ALL col0 + - col2 * col1 + + col1 FROM tab2 AS cor0
----
-1076
-2939
-3744

query I rowsort
SELECT 64 - + - 81 * + 16 + + + 65 AS col0 FROM tab1 AS cor0
----
1425
1425
1425

query I rowsort
SELECT ALL - col0 + - 77 + + col1 FROM tab0 cor0
----
-11
-143
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col0 FROM tab0 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL ( - col1 ) * - - 33 - + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL ( - col1 ) * - - 33 - + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab1, tab2 cor0
----
76

query I rowsort
SELECT ( - 93 ) * - + 46 + 54 FROM tab1
----
4332
4332
4332

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT DISTINCT col2 * col2 - - 77 DIV + col0 + + col0 AS col0 FROM tab0
----
187
2229
9898

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT col2 * col2 - - 77 / + col0 + + col0 AS col0 FROM tab0
----
187
2229
9898

query I rowsort
SELECT + col1 * ( + + col1 ) FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + MIN( - 87 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + MIN ( - 87 ) AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL - 53 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - 53 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + 63 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + 63 / + - COUNT ( * ) FROM tab2 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - + col1 - - col0 * + col0 - + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * ( - 40 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + 7 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col0 >= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 23 ) AS col0 FROM tab0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL col0 * col2 * + - CAST( + col0 AS SIGNED ) FROM tab2
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL col0 * col2 * + - CAST ( + col0 AS INTEGER ) FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT + col2 + - + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + - col0 + + + 48 FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL 69 * + COUNT( * ) + - 45 AS col1 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 69 * + COUNT ( * ) + - 45 AS col1 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - MIN( DISTINCT 95 ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-4162
SELECT - MIN ( DISTINCT 95 ) AS col2 FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4163
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab0 cor0 WHERE 91 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4166
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + + col2 AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4166
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + + col2 AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + COUNT( * ) * + 71 - 66 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4167
SELECT + COUNT ( * ) * + 71 - 66 FROM tab2
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT ALL 25 DIV + COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 81 DIV 7 * - 99 + + 19 BETWEEN + - 40 AND + + 1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4168
SELECT ALL 25 / + COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 81 / 7 * - 99 + + 19 BETWEEN + - 40 AND + + 1
----
2

query I rowsort
SELECT col1 + 28 + ( - 6 ) * - col2 AS col2 FROM tab0 AS cor0
----
109
391
623

query I rowsort
SELECT AVG ( - - 53 ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND - ( + col0 ) * - col0
----
NULL

query I rowsort
SELECT + 84 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL 9 * col2 + - CAST( + 65 AS SIGNED ) + + - col2 * + col1 FROM tab2 AS cor0
----
-1031
-2785
-3429

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL 9 * col2 + - CAST ( + 65 AS INTEGER ) + + - col2 * + col1 FROM tab2 AS cor0
----
-1031
-2785
-3429

query I rowsort
SELECT DISTINCT - - col0 - + - 12 + - - 15 * + col0 FROM tab1 cor0
----
1372
1468
828

query I rowsort
SELECT ALL + 81 + + ( - col2 ) - + col1 AS col1 FROM tab2 AS cor0
----
-36
-44
7

query I rowsort
SELECT ALL - 98 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col1 + + 83 + - 96 NOT BETWEEN + - col2 AND NULL
----

query II rowsort
SELECT + + col2, - col1 FROM tab1 AS cor0 WHERE + 91 IS NULL
----

query I rowsort
SELECT ALL + col2 * + col2 - 94 AS col2 FROM tab0 AS cor0
----
2115
6
9707

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT MAX( DISTINCT + col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4179
SELECT MAX ( DISTINCT + col2 ) col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT - MAX( DISTINCT 72 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - MAX ( DISTINCT 72 ) AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4181
SELECT ALL * FROM tab1 WHERE NOT - - col1 * + col2 + - col1 BETWEEN + col0 / + col0 AND + col0 * + + CAST( - col0 AS SIGNED ) + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4181
SELECT ALL * FROM tab1 WHERE NOT - - col1 * + col2 + - col1 BETWEEN + col0 / + col0 AND + col0 * + + CAST ( - col0 AS INTEGER ) + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 30 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4182
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 30 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + 65 * COUNT( * ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 65 * COUNT ( * ) AS col1 FROM tab2
----
195

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) * - ( + + col1 ) FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT - col1, - ( ( + col1 ) ) FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL - COUNT( * ) * - ( ( 39 ) ) * + + 81 AS col1 FROM tab0
----
9477

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - COUNT ( * ) * - ( ( 39 ) ) * + + 81 AS col1 FROM tab0
----
9477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT - ( + 50 ) DIV MIN( - col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - ( + 50 ) / MIN ( - col1 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT - col2 * - 65 * + 10 FROM tab0 AS cor0
----
30550
64350
6500

query I rowsort
SELECT - - 3 * - ( - - col0 ) * col1 * + + ( + col1 ) FROM tab0 AS cor0
----
-115101
-291
-295245

query I rowsort
SELECT ALL 36 * - col1 AS col0 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - 99 + 95 + - SUM( DISTINCT - col2 ) + - 46 FROM tab2 WHERE NULL IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - 99 + 95 + - SUM ( DISTINCT - col2 ) + - 46 FROM tab2 WHERE NULL IS NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL + COUNT( * ) + + 56 AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + COUNT ( * ) + + 56 AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 99 IS NULL
----

query I rowsort
SELECT ALL + 12 + + + 46 AS col0 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 96 + + - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 96 + + - COUNT ( * ) FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4199
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4200
SELECT CAST( NULL AS SIGNED ) - + CAST( - col2 AS SIGNED ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4200
SELECT CAST ( NULL AS INTEGER ) - + CAST ( - col2 AS INTEGER ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT ALL 12 AS col0, + 64 AS col2 FROM tab2 AS cor0
----
12
64
12
64
12
64

query I rowsort
SELECT + - ( col2 ) FROM tab0 AS cor0 WHERE 29 * - - col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 2 * col2 - col1 FROM tab1 AS cor0
----
113
178
89

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 13 NOT BETWEEN + 93 AND - - col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) <= ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 97 * - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT - - COUNT( * ) col2, - 26 FROM tab0 AS cor0
----
3
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4207
SELECT - - COUNT ( * ) col2, - 26 FROM tab0 AS cor0
----
3
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + col2 AS col1 FROM tab2 cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 + - ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4210
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - col2 + - - 5 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4210
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 + - - 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ( + + ( + + COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT ( + + ( + + COUNT ( * ) ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT MIN( DISTINCT 67 ) AS col1 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT MIN ( DISTINCT 67 ) AS col1 FROM tab1
----
67

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT DISTINCT col0 * + 72 AS col1, 76 * - + col0 / - CAST( NULL AS SIGNED ) - 40 FROM tab2
----
3312
NULL
4608
NULL
5400
NULL

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT col0 * + 72 AS col1, 76 * - + col0 / - CAST ( NULL AS INTEGER ) - 40 FROM tab2
----
3312
NULL
4608
NULL
5400
NULL

query I rowsort
SELECT ALL 96 * - ( col2 ) AS col2 FROM tab2
----
-2208
-3840
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT COUNT( ALL col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT COUNT ( ALL col0 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL col0 * - col2 AS col0, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT - 27 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
3

query I rowsort
SELECT + - 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4222
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) * - CAST( - 47 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4222
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) * - CAST ( - 47 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - - 13 * - + col2 * + col2
----

query I rowsort
SELECT ALL - - col0 * col0 AS col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT + col1 + + - col1 * + + col2 - + + col0 AS col1 FROM tab0 cor0
----
-195
-276
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT COUNT( ( + col2 ) ) + - SUM( ALL + col0 ) + - - COUNT( * ) AS col1 FROM tab0
----
-193

skipif mysql # not compatible
query I rowsort label-4226
SELECT COUNT ( ( + col2 ) ) + - SUM ( ALL + col0 ) + - - COUNT ( * ) AS col1 FROM tab0
----
-193

query I rowsort
SELECT - col2 + 81 FROM tab0
----
-18
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - COUNT( * ) + - + COUNT( - - col0 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COUNT ( * ) + - + COUNT ( - - col0 ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT COUNT( * ) + + + 14 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4229
SELECT COUNT ( * ) + + + 14 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT DISTINCT + SUM( + 90 ) * - + 88 + - SUM( DISTINCT 31 ) AS col2, 2 AS col0 FROM tab2
----
-23791
2

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT + SUM ( + 90 ) * - + 88 + - SUM ( DISTINCT 31 ) AS col2, 2 AS col0 FROM tab2
----
-23791
2

query III rowsort
SELECT * FROM tab2 WHERE - - ( - col0 ) IS NULL
----

query I rowsort
SELECT 71 * + col0 + + ( - 99 ) AS col0 FROM tab0
----
6078
6788
966

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL col0 DIV - - 46 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL col0 / - - 46 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT COUNT( * ) DIV - 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( * ) / - 69 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT 88 DIV + + COUNT( * ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT 88 / + + COUNT ( * ) AS col0 FROM tab1
----
29

query I rowsort
SELECT ALL col0 + + + col0 AS col2 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 30 * - col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL 56 - - - MAX( + - 64 ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL 56 - - - MAX ( + - 64 ) FROM tab0 AS cor0
----
120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + 66 <> - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - MAX( DISTINCT - 72 ) AS col0 FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-4240
SELECT - MAX ( DISTINCT - 72 ) AS col0 FROM tab2 cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0, col1 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + COUNT( - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + COUNT ( - col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab0 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + MAX( DISTINCT 74 ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + MAX ( DISTINCT 74 ) AS col1 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT - SUM( + col2 ) col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4245
SELECT DISTINCT - SUM ( + col2 ) col2 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + 12 * MIN( + ( col2 ) ) FROM tab1 AS cor0
----
708

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + 12 * MIN ( + ( col2 ) ) FROM tab1 AS cor0
----
708

query I rowsort
SELECT ALL col0 * - - col0 + + - col2 AS col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT CAST( - 3 AS SIGNED ) / - col1 + - 99 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4249
SELECT CAST ( - 3 AS INTEGER ) / - col1 + - 99 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 62 * + col0 AS col1 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT - col2 * + col0 + ( col2 ) + + - col1 * + col2 * 76 FROM tab0 AS cor0
----
-16820
-17028
-289990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71, - col1 col1 FROM tab1 AS cor0
----
-71
-14
-71
-47
-71
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + SUM( DISTINCT 10 ) col1 FROM tab1
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4253
SELECT DISTINCT + SUM ( DISTINCT 10 ) col1 FROM tab1
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4254
SELECT DISTINCT + + col2 * - col1 FROM tab0 WHERE NULL = - CAST( NULL AS DECIMAL ) * + col1 * 79
----

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + + col2 * - col1 FROM tab0 WHERE NULL = - CAST ( NULL AS REAL ) * + col1 * 79
----

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col1 FROM tab1 WHERE ( - 80 * - col0 - col0 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT - ( + CAST( col2 AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - ( + CAST ( col2 AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4257
SELECT ALL - 64 AS col0, - CAST( NULL AS SIGNED ) + + 10 FROM tab0
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-4257
SELECT ALL - 64 AS col0, - CAST ( NULL AS INTEGER ) + + 10 FROM tab0
----
-64
NULL
-64
NULL
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT COUNT( * ) * - COUNT( * ) * + MIN( ALL - - col1 ) col0 FROM tab1
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4258
SELECT COUNT ( * ) * - COUNT ( * ) * + MIN ( ALL - - col1 ) col0 FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT col2 FROM tab1 WHERE NOT col1 BETWEEN + 64 * ( - col1 ) * - 19 AND + CAST( + 48 AS SIGNED ) * + 61 * + CAST( NULL AS SIGNED ) * - 27
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT col2 FROM tab1 WHERE NOT col1 BETWEEN + 64 * ( - col1 ) * - 19 AND + CAST ( + 48 AS INTEGER ) * + 61 * + CAST ( NULL AS INTEGER ) * - 27
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT ( - SUM( ALL - col1 ) ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT ( - SUM ( ALL - col1 ) ) AS col0 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, col2 col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT ALL - - COUNT( * ) * + - 51 DIV + - 45 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - - COUNT ( * ) * + - 51 / + - 45 AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 91 + ( - 86 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4265
SELECT - MAX( DISTINCT + col1 ) AS col1, + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-4265
SELECT - MAX ( DISTINCT + col1 ) AS col1, + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-77
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 * + col2 col1, - col0 col1 FROM tab1 AS cor0
----
1180
-85
1360
-91
1920
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL - CAST( NULL AS SIGNED ) + + - ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - CAST ( NULL AS INTEGER ) + + - ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT - + ( - ( - 2 ) ) * - 64 * COUNT( * ) FROM tab1 AS cor0
----
384

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT - + ( - ( - 2 ) ) * - 64 * COUNT ( * ) FROM tab1 AS cor0
----
384

query I rowsort
SELECT ALL 98 - col0 * - - col0 * - col2 + + 97 AS col0 FROM tab2
----
164035
326445
48863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT COUNT( * ) * + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT COUNT ( * ) * + 42 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL MIN( + + 14 ) AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL MIN ( + + 14 ) AS col2 FROM tab0
----
14

query I rowsort
SELECT + ( col1 ) + - 1 FROM tab0
----
0
20
80

query I rowsort
SELECT col0 + - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL + - 76 + - col0 FROM tab0 AS cor0
----
-163
-173
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT - COUNT( DISTINCT + 9 ) + 11 col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT DISTINCT - COUNT ( DISTINCT + 9 ) + 11 col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab2 WHERE NOT - 80 * + col2 > + - 23 * 14
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * + - col1 col1 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + + 13 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4279
SELECT + + 13 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4280
SELECT COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 65 < 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT ALL - col0 * 76 DIV + - 97 FROM tab1 AS cor0
----
39
66
71

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - col0 * 76 / + - 97 FROM tab1 AS cor0
----
39
66
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL - CAST( NULL AS SIGNED ) * AVG ( 91 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - CAST ( NULL AS INTEGER ) * AVG ( 91 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - + MAX( col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - + MAX ( col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + + ( - + 24 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab1 WHERE col0 - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab1 WHERE col0 - + col2 IS NOT NULL
----
3

query I rowsort
SELECT ( + col0 ) * - + col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + - 18 AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( - - col1 >= col0 + - col2 )
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - - 87 col0 FROM tab1
----
5307
5307
5307

onlyif mysql # DIV for integer division: 
query II rowsort label-4291
SELECT - col2 AS col0, + col1 DIV + col2 * - 99 * + col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-4291
SELECT - col2 AS col0, + col1 / + col2 * - 99 * + col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL 98 + - + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 98 + - + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 8 - col1 col0 FROM tab0 AS cor0
----
-29
-89
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT - CAST( - col2 AS SIGNED ) + + - 34 col2 FROM tab1 AS cor0
----
25
34
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT - CAST ( - col2 AS INTEGER ) + + - 34 col2 FROM tab1 AS cor0
----
25
34
62

query II rowsort
SELECT DISTINCT + 11 - 81, 85 AS col0 FROM tab0
----
-70
85

query I rowsort
SELECT ALL col1 + - 14 + 39 * - 13 FROM tab0
----
-440
-500
-520

query I rowsort
SELECT ALL - 56 FROM tab2 WHERE NOT ( NOT col0 IS NULL )
----

query I rowsort
SELECT DISTINCT 41 + + col1 AS col0 FROM tab2
----
108
118
92

query I rowsort
SELECT ALL + 55 + - col0 FROM tab1
----
-30
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + - COUNT( * ) + 5 FROM tab1 WHERE - 77 < - col0 * + col1
----
5

skipif mysql # not compatible
query I rowsort label-4301
SELECT + - COUNT ( * ) + 5 FROM tab1 WHERE - 77 < - col0 * + col1
----
5

query I rowsort
SELECT DISTINCT - 91 - + col0 FROM tab2 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT - ( + + col2 ) - - col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - col2 - - + col2 * col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - COUNT( * ) - + 44 + - 94 AS col0 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4305
SELECT - COUNT ( * ) - + 44 + - 94 AS col0 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT - ( - 22 ) * col1 FROM tab1
----
1034
110
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - col1 col2 FROM tab2 AS cor0
----
-2346
-3082
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT - + 56 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4308
SELECT - + 56 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
168

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 26 + 42 + - - 37 > + col0 + - col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ALL + col1 DIV - 34 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + col1 / - 34 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4312
SELECT 24 DIV col2 + - col2 col2, - col2 AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4312
SELECT 24 / col2 + - col2 col2, - col2 AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT - col0 DIV + - col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - col0 / + - col0 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + + MIN( DISTINCT + - 99 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4314
SELECT + + MIN ( DISTINCT + - 99 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL - CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT - col0, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT - - 40 AS col0, 15 + + COUNT( * ) * 32 FROM tab2 AS cor0
----
40
111

skipif mysql # not compatible
query II rowsort label-4318
SELECT - - 40 AS col0, 15 + + COUNT ( * ) * 32 FROM tab2 AS cor0
----
40
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL SUM( DISTINCT - ( - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL SUM ( DISTINCT - ( - col1 ) ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT + 51 - + col1 FROM tab0 WHERE + - 86 IS NULL
----

query I rowsort
SELECT + + 26 * - col2 / + col1 * - 6 + - - col0 FROM tab1 WHERE NOT NULL < + - col0
----

query I rowsort
SELECT DISTINCT col1 - col1 * - col2 + - - col0 FROM tab2 WHERE NULL <> + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT CAST( - - 8 AS SIGNED ) FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-4323
SELECT CAST ( - - 8 AS INTEGER ) FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT MAX( DISTINCT - - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT MAX ( DISTINCT - - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT + + 11 + - 93 * col0 * - + col0 FROM tab1 AS cor0
----
241904
671936
770144

query I rowsort
SELECT ALL - - 14 + + col0 FROM tab1 AS cor0
----
105
65
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col0 + + 13 + - - col1 col2 FROM tab0 AS cor0
----
1339
1469
319

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT DISTINCT + col0 * - col2 / - col0 + + + col1 + col2 - - CAST( NULL AS SIGNED ) + 90 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + col0 * - col2 / - col0 + + + col1 + col2 - - CAST ( NULL AS INTEGER ) + 90 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4331
SELECT DISTINCT + col1 DIV + - col1 + + 92 AS col2, 2 * - 11 col0 FROM tab1 AS cor0
----
91
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4331
SELECT DISTINCT + col1 / + - col1 + + 92 AS col2, 2 * - 11 col0 FROM tab1 AS cor0
----
91
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - 99 * + - COUNT( * ) * - 16 * + - MAX( + col2 ) AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
275616

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 99 * + - COUNT ( * ) * - 16 * + - MAX ( + col2 ) AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
275616

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + MIN( + 46 ) AS col2 FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4333
SELECT + MIN ( + 46 ) AS col2 FROM tab1 cor0
----
46

query I rowsort
SELECT + + 97 FROM tab2 AS cor0 WHERE col2 + col0 IS NOT NULL
----
97
97
97

query I rowsort
SELECT ALL - 68 FROM tab2 AS cor0 WHERE col1 <> + ( col1 ) * col0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab0 AS cor0 WHERE NOT ( 15 ) + + ( + col1 ) / - - 1 - - 73 IS NULL
----
28

query II rowsort
SELECT DISTINCT + 15, 85 * - 81 AS col1 FROM tab0
----
15
-6885

query I rowsort
SELECT DISTINCT - 77 - + col0 + col2 FROM tab2
----
-100
-101
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + ( - + 67 ) col0 FROM tab1
----
59
-67
68
-67
96
-67

query I rowsort
SELECT - 24 + - - col2 AS col0 FROM tab1
----
35
44
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT 8 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 8 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 2 col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL - col1 * - 83 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT MAX( - + 16 ) AS col1 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4344
SELECT MAX ( - + 16 ) AS col1 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL - col1 * + CAST( - col1 AS SIGNED ) - - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT ALL - col1 * + CAST ( - col1 AS INTEGER ) - - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 74 * + col0 AS col0 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4347
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) - + col2 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) - + col2 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) * + COUNT( * ) FROM tab0 WHERE ( ( NULL ) > col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE ( ( NULL ) > col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT COUNT( DISTINCT col2 ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4349
SELECT COUNT ( DISTINCT col2 ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - SUM( ALL - 15 ) + + + SUM( DISTINCT - 91 ) FROM tab2 WHERE NOT - col0 NOT IN ( - col1, - col1 / - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT - SUM ( ALL - 15 ) + + + SUM ( DISTINCT - 91 ) FROM tab2 WHERE NOT - col0 NOT IN ( - col1, - col1 / - + col0 )
----
NULL

query I rowsort
SELECT - ( + + ( + col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT + MIN( + col0 ) + - - 31 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT + MIN ( + col0 ) + - - 31 FROM tab2
----
77

query I rowsort
SELECT ALL - + col2 + - + col0 * - ( + col1 ) FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT DISTINCT + - 43 * + + col0 * col0 * + + 27 AS col1 FROM tab2 AS cor0
----
-2456676
-4755456
-6530625

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - COUNT( * ) * 54 AS col0 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - COUNT ( * ) * 54 AS col0 FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT 47 DIV SUM( ALL - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT 47 / SUM ( ALL - col0 ) FROM tab2
----
0

query I rowsort
SELECT col1 + - 8 * - 68 FROM tab2
----
595
611
621

query I rowsort
SELECT 53 * - col2 AS col1 FROM tab1
----
-3127
-3604
-5088

query I rowsort
SELECT ( + col2 ) * + 16 FROM tab1
----
1088
1536
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 - 48 col0 FROM tab1
----
3
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 34 ) IN ( col2 - col0 )
----

query I rowsort
SELECT ALL 66 FROM tab2 WHERE col2 * col1 + 7 < ( + 69 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL 22 * COUNT( * ) AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * col1 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 22 * COUNT ( * ) AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * col1 IS NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT + 4 * COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + 4 * COUNT ( * ) AS col2 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT - AVG ( ALL col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT - AVG ( ALL col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 92 * - col1 AS col1 FROM tab2
----
-4692
-6164
-7084

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * + col0 ) BETWEEN col2 AND ( - col0 * - ( 17 ) )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL COUNT( * ) + 41 * + ( - COUNT( * ) ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL COUNT ( * ) + 41 * + ( - COUNT ( * ) ) FROM tab1
----
-120

query I rowsort
SELECT DISTINCT 26 + 17 * - col0 AS col0 FROM tab0
----
-1453
-1623
-229

query III rowsort
SELECT * FROM tab0 WHERE 13 < ( - 8 - - 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( + col2 * - 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT ALL - 20 DIV + 37 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - 20 / + 37 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT COUNT( * ) * 18 col1 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4373
SELECT DISTINCT COUNT ( * ) * 18 col1 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT SUM( DISTINCT - 97 ) FROM tab2 WHERE NOT - col2 + col0 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT SUM ( DISTINCT - 97 ) FROM tab2 WHERE NOT - col2 + col0 IS NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT ( + 64 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT ( + 64 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT - col0 DIV - 53 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - col0 / - 53 FROM tab1
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = ( + col0 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - 53 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4378
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 14 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 14 FROM tab1
----
NULL

query I rowsort
SELECT ALL 34 - 91 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT + col2 * col1 FROM tab0 WHERE NULL IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT DISTINCT ( 84 ) DIV col1 FROM tab0
----
1
4
84

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT ( 84 ) / col1 FROM tab0
----
1
4
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col2 NOT BETWEEN col0 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT 27 * MIN( ALL + 78 DIV col0 ) + + COUNT( * ) * 37 AS col0 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4384
SELECT 27 * MIN ( ALL + 78 / col0 ) + + COUNT ( * ) * 37 AS col0 FROM tab0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - COUNT( DISTINCT - 97 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4385
SELECT - COUNT ( DISTINCT - 97 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT 76 * - col1 - + 13 AS col0 FROM tab2
----
-3889
-5105
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT 48 * - COUNT( * ) AS col0 FROM tab1 WHERE + 37 IN ( + 15 * col0 + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT 48 * - COUNT ( * ) AS col0 FROM tab1 WHERE + 37 IN ( + 15 * col0 + 26 )
----
0

query I rowsort
SELECT + col1 * col1 FROM tab1 WHERE ( col0 ) >= 48
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT col1 * - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * - col0 AND + 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4391
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - 55 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - 55 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0 cor0
----
29

query I rowsort
SELECT DISTINCT + ( + 55 ) AS col2 FROM tab1
----
55

query I rowsort
SELECT DISTINCT - col2 / + col2 FROM tab0 WHERE NOT ( col2 * - 34 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT + col2 * 42 FROM tab1 AS cor0 WHERE NOT + 76 * + 43 + + CAST( NULL AS SIGNED ) * col1 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + col2 * 42 FROM tab1 AS cor0 WHERE NOT + 76 * + 43 + + CAST ( NULL AS INTEGER ) * col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col1 / + col1
----

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col1 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 col1 FROM tab2 AS cor0
----
-10
-10
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - 26 + col1 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 * - col2 + col2 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT + + SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT + + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL 39 * - + COUNT( * ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL 39 * - + COUNT ( * ) FROM tab1
----
-117

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 * + ( 7 ) AS col2 FROM tab2
----
322
448
525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT ALL col2 DIV + + 67 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4406
SELECT ALL col2 / + + 67 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col2 / - col0 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE col0 + + 59 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + 74 * - col2 FROM tab1 WHERE ( - col1 ) * + col2 IS NOT NULL
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT + ( + col2 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + ( + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + MAX( ALL - - col0 ) + - ( 44 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + MAX ( ALL - - col0 ) + - ( 44 ) FROM tab0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col0 FROM tab1 AS cor0 WHERE 40 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT - + 71 DIV - - SUM( + col2 ) * + ( + 83 ) - + COUNT( * ) * 28 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - + 71 / - - SUM ( + col2 ) * + ( + 83 ) - + COUNT ( * ) * 28 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT 36 - - col0 * col1 AS col1 FROM tab0 AS cor0
----
1251
133
1863

query I rowsort
SELECT ALL col2 * 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT + - 61 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + MAX( DISTINCT + + 4 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4417
SELECT + MAX ( DISTINCT + + 4 ) AS col2 FROM tab1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( 0 + + + CAST( NULL AS SIGNED ) ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4418
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( 0 + + + CAST ( NULL AS INTEGER ) ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 - + ( - + col0 ) * 34 col1 FROM tab2 cor0
----
1635
2247
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL MIN( ALL - col0 ) + - + COUNT( * ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL MIN ( ALL - col0 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT + ( 51 ) - + 56 + - 99 AS col0 FROM tab2 AS cor0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - - 59 - - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
286

skipif mysql # not compatible
query I rowsort label-4422
SELECT - - 59 - - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
286

query I rowsort
SELECT DISTINCT + + col1 * 9 + + col1 - col0 FROM tab1 AS cor0
----
-35
379
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL - ( COUNT( * ) ) + - + ( COUNT( * ) ) * 36 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - ( COUNT ( * ) ) + - + ( COUNT ( * ) ) * 36 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT 43 IN ( col0 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - 35 * ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT ( + + 47 * + 9 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - 35 * ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT ( + + 47 * + 9 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ( 45 ) * 76 - + MIN( + 11 ) FROM tab0 WHERE NOT col2 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ( 45 ) * 76 - + MIN ( + 11 ) FROM tab0 WHERE NOT col2 + + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 83 * + 76 FROM tab2
----
-6308
-6308
-6308

query I rowsort
SELECT ( + 24 ) AS col0 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - COUNT( ALL - ( - col1 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4430
SELECT - COUNT ( ALL - ( - col1 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT 27 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT 27 / + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT SUM( DISTINCT + 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT SUM ( DISTINCT + 16 ) FROM tab2
----
16

query I rowsort
SELECT - col1 * 45 AS col0 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT - 33 * - 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2376

query I rowsort
SELECT ALL + - 59 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4437
SELECT ALL - + COUNT( * ) + ( + - 19 ) + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - + COUNT ( * ) + ( + - 19 ) + - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + + MAX( ALL - col0 ) + + + 64 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + + MAX ( ALL - col0 ) + + + 64 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + SUM( - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4439
SELECT + SUM ( - - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + - - col2 FROM tab1 AS cor0 WHERE NOT - 86 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + - - col2 FROM tab1 AS cor0 WHERE NOT - 86 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 col0 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( * ) * + 81 * 12 * ( - - COUNT( - col2 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-26244

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( * ) * + 81 * 12 * ( - - COUNT ( - col2 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-26244

query I rowsort
SELECT DISTINCT - 85 + - col1 FROM tab2
----
-136
-152
-162

query II rowsort
SELECT DISTINCT + 62, + 40 - 75 AS col0 FROM tab0
----
62
-35

query I rowsort
SELECT ALL 78 / 65 + col0 FROM tab2 WHERE + - 79 IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - - col0 > ( + 81 + col0 / col1 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL MAX( 81 ) + - - 86 + COUNT( * ) FROM tab1
----
170

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL MAX ( 81 ) + - - 86 + COUNT ( * ) FROM tab1
----
170

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 83 + + + 39 * col2 col2 FROM tab0 AS cor0
----
1750
307
3778

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 = NULL
----

query I rowsort
SELECT + 89 - - 85 * - - col0 AS col0 FROM tab1
----
4424
7314
7824

onlyif mysql # DIV for integer division: 
query II rowsort label-4456
SELECT 15 - - - col0 AS col1, + 25 DIV - col2 AS col0 FROM tab0
----
-72
-2
-82
0
0
0

skipif mysql # not compatible
query II rowsort label-4456
SELECT 15 - - - col0 AS col1, + 25 / - col2 AS col0 FROM tab0
----
-72
-2
-82
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + 0 * COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 0 * COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + 87 + - COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + 87 + - COUNT ( * ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL 75 * - col2 AS col0 FROM tab1 AS cor0
----
-4425
-5100
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT MIN( 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT MIN ( 88 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT 26 * + col0 * - 61 * - - col0 + 78 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ( + - 88 ) AS col0, - 1 AS col2 FROM tab1 AS cor0
----
-88
-1
-88
-1
-88
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col1 FROM tab1 AS cor0
----
18
18
18

query II rowsort
SELECT + col1, col0 * - col1 FROM tab0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT + - ( - 88 ) * - col1 AS col1 FROM tab1 WHERE NOT - col0 - - 51 IS NULL
----
-1232
-4136
-440

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + 75 )
----

query I rowsort
SELECT + col2 * col0 FROM tab2 WHERE NOT + - 77 + ( - col0 ) + col2 * - col2 NOT IN ( + 73 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4469
SELECT DISTINCT - - col2 + - 94 - - CAST( NULL AS DECIMAL ) col1 FROM tab2 WHERE - col1 < + 77
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT - - col2 + - 94 - - CAST ( NULL AS REAL ) col1 FROM tab2 WHERE - col1 < + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT ALL 35 AS col1, - MAX( ALL - 82 ) FROM tab2
----
35
82

skipif mysql # not compatible
query II rowsort label-4470
SELECT ALL 35 AS col1, - MAX ( ALL - 82 ) FROM tab2
----
35
82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0
----

query II rowsort
SELECT DISTINCT + 83 * 58 * - - col2 AS col2, - col1 FROM tab0
----
226258
-81
476586
-1
48140
-21

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + - 6 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4474
SELECT ALL - CAST( - ( - COUNT( * ) ) AS SIGNED ) DIV + COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + - 73 * + COUNT( * ) col1 FROM tab1 cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT + - 73 * + COUNT ( * ) col1 FROM tab1 cor0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL + col2 DIV 70 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + col2 / 70 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT ALL col0 DIV ( 40 ) AS col1 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL col0 / ( 40 ) AS col1 FROM tab0 AS cor0
----
0
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + MAX( ALL + - 81 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-4479
SELECT + MAX ( ALL + - 81 ) FROM tab2
----
-81

query I rowsort
SELECT + col1 + + + col1 - + - 2 FROM tab2
----
104
136
156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL + + col0 + - col0 - + 91 + + + CAST( col1 AS SIGNED ) + + col2 * col2 FROM tab1 AS cor0
----
3395
4580
9139

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + + col0 + - col0 - + 91 + + + CAST ( col1 AS INTEGER ) + + col2 * col2 FROM tab1 AS cor0
----
3395
4580
9139

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 70 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 - - - 2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 - - - 2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 78 NOT BETWEEN NULL AND + col1 * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT COUNT( - - col2 ) DIV - 58 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( - - col2 ) / - 58 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4489
SELECT * FROM tab1 WHERE + col0 + + CAST( + 70 AS SIGNED ) * + 82 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4489
SELECT * FROM tab1 WHERE + col0 + + CAST ( + 70 AS INTEGER ) * + 82 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT CAST( + + ( COUNT( * ) ) AS SIGNED ) + + 65 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4490
SELECT CAST ( + + ( COUNT ( * ) ) AS INTEGER ) + + 65 FROM tab2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT 43 DIV - 1 + + + col1 AS col1 FROM tab2
----
24
34
8

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT 43 / - 1 + + + col1 AS col1 FROM tab2
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + + COUNT( * ) + 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + + COUNT ( * ) + 83 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL - col2 * - col2 + - 99 FROM tab1 AS cor0
----
3382
4525
9117

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - 64 + + + MIN( - 97 ) FROM tab1 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - 64 + + + MIN ( - 97 ) FROM tab1 AS cor0
----
-161

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE + col1 + 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 + - col1 col0 FROM tab1 WHERE + col2 - + col1 + - + 73 + 41 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4496
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 + - col1 col0 FROM tab1 WHERE + col2 - + col1 + - + 73 + 41 < NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + 52 * + - 63 FROM tab0 WHERE NULL IS NULL
----
-3286
-3323
-3375

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + col1 - col2 NOT IN ( + - 67 * 73 - 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4499
SELECT col2 AS col0, col2, - CAST( NULL AS SIGNED ) col2 FROM tab0
----
9 values hashing to c0a0662ee444b25121afcc629e1ffb28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4499
SELECT col2 AS col0, col2, - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
9 values hashing to c0a0662ee444b25121afcc629e1ffb28

query I rowsort
SELECT ALL - 27 * + - col2 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - SUM( ALL col1 ) FROM tab2 WHERE NOT ( - 3 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT - SUM ( ALL col1 ) FROM tab2 WHERE NOT ( - 3 ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT MAX( DISTINCT + col2 ) * - - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT MAX ( DISTINCT + col2 ) * - - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 19 AS col1 FROM tab0 AS cor0
----
10
-19
47
-19
99
-19

query I rowsort
SELECT ALL + col2 * + - col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL col2 AS col2, + col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

query II rowsort
SELECT ALL ( + 19 ) AS col2, 74 FROM tab1 AS cor0
----
19
74
19
74
19
74

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 81 >= NULL
----

query I rowsort
SELECT ALL AVG ( - - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 95 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4510
SELECT ALL 49 DIV + + COUNT( - 14 ) AS col0 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 49 / + + COUNT ( - 14 ) AS col0 FROM tab1 cor0
----
16

query I rowsort
SELECT DISTINCT col1 / - + 91 AS col2 FROM tab2 AS cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 36 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - MIN( DISTINCT - 2 ) AS col0 FROM tab1 WHERE NOT - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT - MIN ( DISTINCT - 2 ) AS col0 FROM tab1 WHERE NOT - col2 = NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 31 BETWEEN + col0 * col1 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - MIN( ALL + + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4515
SELECT - MIN ( ALL + + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT CAST( NULL AS SIGNED ) * - 7 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT CAST ( NULL AS INTEGER ) * - 7 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT CAST( + - MIN( + + col2 ) AS SIGNED ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4517
SELECT CAST ( + - MIN ( + + col2 ) AS INTEGER ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4518
SELECT ALL COUNT( * ) DIV + - 98, + 67 AS col0 FROM tab1
----
0
67

skipif mysql # not compatible
query II rowsort label-4518
SELECT ALL COUNT ( * ) / + - 98, + 67 AS col0 FROM tab1
----
0
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4519
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT IN ( - 62 + 57 + + col2 + CAST( + ( - 4 ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4519
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT IN ( - 62 + 57 + + col2 + CAST ( + ( - 4 ) AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT ALL - 60 DIV - 92 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 60 / - 92 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + 57 >= - col0 * - + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT 43 * - COUNT( * ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4522
SELECT 43 * - COUNT ( * ) FROM tab1 AS cor0
----
-129

query I rowsort
SELECT ALL col2 + - col2 * - 90 + ( + - col2 ) AS col1 FROM tab0
----
4230
8910
900

query I rowsort
SELECT DISTINCT 11 + 82 AS col2 FROM tab0
----
93

query II rowsort
SELECT col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - col0 col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT 45 + col2 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL 60 + SUM( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 60 + SUM ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
255

query I rowsort
SELECT ALL 67 + + ( - - ( - col0 ) ) FROM tab1 AS cor0
----
-18
-24
16

query I rowsort
SELECT ALL + col1 + + col2 AS col0 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 + - col2 FROM tab1 AS cor0
----
-24
-59
21

query II rowsort
SELECT ALL + 95 AS col0, col2 FROM tab2 AS cor0
----
95
23
95
40
95
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT col2 * + CAST( NULL AS SIGNED ) + - col1 + + col2 * - - col0 * + - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT col2 * + CAST ( NULL AS INTEGER ) + - col1 + + col2 * - - col0 * + - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + 16 * - + COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 16 * - + COUNT ( * ) FROM tab0
----
-48

query I rowsort
SELECT + col1 * 62 AS col2 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + 76 * COUNT( * ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 76 * COUNT ( * ) FROM tab0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4538
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 * + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 * + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT - COUNT( * ) * + COUNT( * ), COUNT( * ) col2 FROM tab1
----
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4539
SELECT - COUNT ( * ) * + COUNT ( * ), COUNT ( * ) col2 FROM tab1
----
-9
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 80 )
----

query I rowsort
SELECT ALL - 62 + 52 AS col1 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT - 86 * + - 95 - 0 FROM tab1 AS cor0
----
8170
8170
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT + COUNT( * ) + - 7 FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + COUNT ( * ) + - 7 FROM tab2 cor0
----
-4

query I rowsort
SELECT + 66 - 71 FROM tab1 cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 * - 16 FROM tab0 AS cor0
----
-527
7409
7825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL + col2 * + 60 / - 75 + + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + col2 * + 60 / - 75 + + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT 43 * + COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT 43 * + COUNT ( * ) FROM tab1
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 86 * col2 * + 25 * + col2 col0 FROM tab1 AS cor0
----
-19814400
-7484150
-9941600

query I rowsort
SELECT col0 * + 21 AS col1 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL > + 75 * - col0 * + + col1 * col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT - CAST( - 50 AS SIGNED ) FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - CAST ( - 50 AS INTEGER ) FROM tab0 cor0
----
50

query I rowsort
SELECT - - 32 * - col2 + - col0 FROM tab2 cor0
----
-1344
-1931
-782

query I rowsort
SELECT ( + col0 ) * - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - SUM( + - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4555
SELECT - SUM ( + - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT + + SUM( ALL + - 14 ) AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + + SUM ( ALL + - 14 ) AS col0 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT + 46 * + - COUNT( * ) + 88 * + MAX( DISTINCT col0 ) + + 37 + CAST( + 12 AS SIGNED ) FROM tab1 AS cor0
----
7919

skipif mysql # not compatible
query I rowsort label-4557
SELECT + 46 * + - COUNT ( * ) + 88 * + MAX ( DISTINCT col0 ) + + 37 + CAST ( + 12 AS INTEGER ) FROM tab1 AS cor0
----
7919

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4558
SELECT - - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < + ( + col2 ) + + + col2
----

query II rowsort
SELECT 95 AS col0, + col2 FROM tab2
----
95
23
95
40
95
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / col0
----

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 WHERE - col2 NOT BETWEEN + col1 * + + 4 AND NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - + 93 * + + col1 - + - col2 + + col2 * - col2 )
----

query I rowsort
SELECT ALL 34 * + + col2 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT DISTINCT - + 50 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0 * 25, col2 * col2 AS col2 FROM tab0
----
2175
100
2425
9801
375
2209

query I rowsort
SELECT ALL 14 * + col2 AS col1 FROM tab0
----
1386
140
658

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL + - COUNT( * ) + - 39 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL + - COUNT ( * ) + - 39 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT DISTINCT + col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + ( col1 ) col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ( - - col1 ) + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - 64 * - + ( - + col0 ) - - - ( - col1 ) AS col0 FROM tab1 WHERE NOT + col1 * - 26 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - + 51 + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - + 51 + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4575
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 54 + + + col0 FROM tab2 AS cor0
----
-8
10
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT ALL - + 51 * - COUNT( 25 ) + COUNT( * ) + 35 - + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - + 51 * - COUNT ( 25 ) + COUNT ( * ) + 35 - + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT - - ( + CAST( + 4 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT - - ( + CAST ( + 4 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col2 + + 18 col2 FROM tab1 AS cor0
----
-3463
-4606
-9198

query I rowsort
SELECT DISTINCT + col2 * + 69 * + col1 * + + col0 FROM tab0 AS cor0
----
1260630
3940245
662607

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT DISTINCT col1 - - col1 DIV col1 AS col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT col1 - - col1 / col1 AS col1 FROM tab2
----
52
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT col0 DIV + 91 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT col0 / + 91 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT + - 4 AS col1 FROM tab1 WHERE NULL BETWEEN - - col0 - - 40 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 43 + + - 40 NOT BETWEEN NULL AND - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 3 AS col1, col2 col2 FROM tab0
----
3
10
3
47
3
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT ALL + 54 AS col1, - COUNT( * ) AS col2 FROM tab0
----
54
-3

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL + 54 AS col1, - COUNT ( * ) AS col2 FROM tab0
----
54
-3

query I rowsort
SELECT 72 + + - col2 FROM tab0
----
-27
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 32 * + col2 AS col2 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT - - 10 AS col0 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ( 81 ) FROM tab1
----
81
81
81

query I rowsort
SELECT + 94 AS col2 FROM tab2 WHERE NOT + 80 * - - col2 * + col1 + + col1 > ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4596
SELECT col0 AS col2, + col2 * col1 / + CAST( NULL AS DECIMAL ) * - - 28 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4596
SELECT col0 AS col2, + col2 * col1 / + CAST ( NULL AS REAL ) * - - 28 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT COUNT( ALL + 34 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4598
SELECT COUNT ( ALL + 34 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT MAX( - 19 ) AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4599
SELECT MAX ( - 19 ) AS col1 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + - col2 + 44 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT + SUM( - + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + SUM ( - + col0 ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + - + col0 col2 FROM tab2 cor0
----
-57
-75
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL + 42 DIV - + 59 col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4604
SELECT ALL + 42 / - + 59 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / + col1 = col1
----

query I rowsort
SELECT DISTINCT + 71 + + - 27 + + ( - + col0 ) FROM tab1 cor0
----
-41
-47
-7

query I rowsort
SELECT ALL + ( + col0 ) + 42 AS col2 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT 73 AS col2 FROM tab2 AS cor0 WHERE 77 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - + 97 + + + 52 + - COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4610
SELECT - + 97 + + + 52 + - COUNT ( * ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + + col1 + + + col1 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-410
-6433
99

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL <= + 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + col0 * - 12 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4613
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + col0 * - 12 AND NULL
----

query II rowsort
SELECT col0 * - col1 * 56 + - + 91 + - 98 * col1 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
-136465
51
-283605
77
-288057
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT + 84 * - COUNT( * ) * - - MAX( - 22 ) AS col0 FROM tab2
----
5544

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 84 * - COUNT ( * ) * - - MAX ( - 22 ) AS col0 FROM tab2
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL MAX( + + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL MAX ( + + 56 ) FROM tab2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - MIN( col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - MIN ( col0 ) FROM tab0
----
-15

query I rowsort
SELECT ALL + + ( - + col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4619
SELECT ( + col2 ), CAST( NULL AS SIGNED ) / - col1 * + col2 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4619
SELECT ( + col2 ), CAST ( NULL AS INTEGER ) / - col1 * + col2 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 + - col2 + + - col0 * - col2 - - col2 NOT BETWEEN + col2 * + col2 AND 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + COUNT( - col0 ) * + ( + 42 ) * 24 AS col0 FROM tab2 cor0
----
3024

skipif mysql # not compatible
query I rowsort label-4621
SELECT + COUNT ( - col0 ) * + ( + 42 ) * 24 AS col0 FROM tab2 cor0
----
3024

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - MIN( ALL + + 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4623
SELECT - MIN ( ALL + + 22 ) FROM tab1
----
-22

query I rowsort
SELECT + - col1 FROM tab1 cor0 WHERE NOT + 61 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - 92 DIV col1 + - col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 92 / col1 + - col2 FROM tab2 AS cor0
----
-24
-41
-59

query I rowsort
SELECT + + 93 * + col0 * col2 * - col1 FROM tab0 AS cor0
----
-1699110
-5310765
-893079

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL + SUM( - 57 ) AS col2 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + SUM ( - 57 ) AS col2 FROM tab1 AS cor0
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT DISTINCT - - CAST( - ( - MAX( ALL - CAST( - - col0 AS SIGNED ) ) ) AS SIGNED ) + - + 3 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 AND - + col1 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - - CAST ( - ( - MAX ( ALL - CAST ( - - col0 AS INTEGER ) ) ) AS INTEGER ) + - + 3 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 AND - + col1 * + col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 + col0 * - - col1 - 38 + + - ( - + col2 ) * + col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - - COUNT( * ) * - COUNT( * ) * + - SUM( + 28 ) FROM tab0 cor0
----
756

skipif mysql # not compatible
query I rowsort label-4631
SELECT - - COUNT ( * ) * - COUNT ( * ) * + - SUM ( + 28 ) FROM tab0 cor0
----
756

query II rowsort
SELECT col1, 92 FROM tab2 cor0
----
51
92
67
92
77
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT DISTINCT + MAX( ( + 4 ) ) AS col0, - 96 AS col2 FROM tab0 AS cor0
----
4
-96

skipif mysql # not compatible
query II rowsort label-4633
SELECT DISTINCT + MAX ( ( + 4 ) ) AS col0, - 96 AS col2 FROM tab0 AS cor0
----
4
-96

query I rowsort
SELECT - - ( 80 ) * - col0 AS col1 FROM tab0 AS cor0
----
-1200
-6960
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 11 * + 74 + - col0 + 33 col1 FROM tab2 AS cor0
----
23
-827
40
-845
58
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT + SUM( ALL + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COUNT( + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COUNT ( + - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - COUNT( * ) + - + 8 col1 FROM tab2, tab2 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT - COUNT ( * ) + - + 8 col1 FROM tab2, tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT SUM( + + 76 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4640
SELECT SUM ( + + 76 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT DISTINCT - 64 + + 44 DIV - col0 AS col0 FROM tab0 AS cor0
----
-64
-66

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - 64 + + 44 / - col0 AS col0 FROM tab0 AS cor0
----
-64
-66

query II rowsort
SELECT DISTINCT 42 AS col1, 69 FROM tab1
----
42
69

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4644
SELECT col2 DIV + CAST( + - col2 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4644
SELECT col2 / + CAST ( + - col2 AS INTEGER ) FROM tab1
----
-1
-1
-1

query II rowsort
SELECT col1, - 59 + + - ( col0 ) + + col2 FROM tab1 AS cor0
----
14
-14
47
-82
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4646
SELECT - COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT 93 - + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4647
SELECT 93 - + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT 73 - + + 42 AS col2 FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 18 ) - + col1 col2 FROM tab1 AS cor0
----
-29
13
4

query II rowsort
SELECT ALL 78 - - col2 + - col2 + col0 * + ( + 23 ) AS col2, col2 FROM tab0 cor0
----
2079
10
2309
99
423
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 92 AND + 3
----

query I rowsort
SELECT + - col0 - col1 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + 61 + - col2 + + 12 * 30 FROM tab1 AS cor0
----
325
353
362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL + CAST( col2 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + CAST ( col2 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1, + ( - col0 ) AS col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + MIN( DISTINCT - 94 ) - 25 FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + MIN ( DISTINCT - 94 ) - 25 FROM tab1
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + col1 DIV + ( + + col2 ) + + col1 * - - col1 FROM tab0
----
1
443
6562

skipif mysql # not compatible
query I rowsort label-4658
SELECT + col1 / + ( + + col2 ) + + col1 * - - col1 FROM tab0
----
1
443
6562

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT 54 DIV - 72 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT 54 / - 72 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT 71 * MIN( ALL col0 ) DIV + + COUNT( * ) AS col1 FROM tab1
----
1207

skipif mysql # not compatible
query I rowsort label-4660
SELECT 71 * MIN ( ALL col0 ) / + + COUNT ( * ) AS col1 FROM tab1
----
1207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * + col1 col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4662
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4662
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4664
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4665
SELECT DISTINCT col1 * - - col0 AS col1, 40 - + col0 + - + 97 + - ( + col1 ) DIV 93 FROM tab2
----
2346
-103
4928
-121
5025
-132

skipif mysql # not compatible
query II rowsort label-4665
SELECT DISTINCT col1 * - - col0 AS col1, 40 - + col0 + - + 97 + - ( + col1 ) / 93 FROM tab2
----
2346
-103
4928
-121
5025
-132

query I rowsort
SELECT ALL + 25 + col0 FROM tab1 AS cor0
----
110
116
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) = col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4669
SELECT col2, col0 + - - CAST( NULL AS SIGNED ) + - + col2 AS col1, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 66ae4101094bd7c020f4f9a2c86fd2b7

skipif mysql # not compatible
query III rowsort label-4669
SELECT col2, col0 + - - CAST ( NULL AS INTEGER ) + - + col2 AS col1, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 66ae4101094bd7c020f4f9a2c86fd2b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT - CAST( + col2 AS SIGNED ) * 87 + + col2 + - 1 * col2 + + ( + ( + + col2 ) ) AS col0 FROM tab2
----
-1978
-3440
-4988

skipif mysql # not compatible
query I rowsort label-4670
SELECT - CAST ( + col2 AS INTEGER ) * 87 + + col2 + - 1 * col2 + + ( + ( + + col2 ) ) AS col0 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT col1 + + - col0 + + col0 AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 + - ( - 11 ) + 6 FROM tab2
----
-34
-50
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4673
SELECT CAST( + ( - ( 19 ) ) AS SIGNED ) DIV - col1 FROM tab0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-4673
SELECT CAST ( + ( - ( 19 ) ) AS INTEGER ) / - col1 FROM tab0
----
0
0
19

query I rowsort
SELECT ALL - 92 + col0 FROM tab1 cor0
----
-1
-41
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT - - COUNT( * ) AS col1, COUNT( * ) * ( + 81 ) AS col2 FROM tab0 AS cor0
----
3
243

skipif mysql # not compatible
query II rowsort label-4675
SELECT - - COUNT ( * ) AS col1, COUNT ( * ) * ( + 81 ) AS col2 FROM tab0 AS cor0
----
3
243

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 * - col2 / + col0 - col2 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT 74 DIV - - MAX( DISTINCT + ( + ( - 90 ) ) ) + - - MAX( DISTINCT - + col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT 74 / - - MAX ( DISTINCT + ( + ( - 90 ) ) ) + - - MAX ( DISTINCT - + col0 ) col1 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT - 24 + + + CAST( NULL AS SIGNED ) * + col0 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT - 24 + + + CAST ( NULL AS INTEGER ) * + col0 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 74 ) FROM tab2
----
-74

query I rowsort
SELECT ALL + + col2 * + 41 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + COUNT( - 85 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4681
SELECT + COUNT ( - 85 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT - COUNT( * ) - + + ( - - 57 ) AS col0 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - COUNT ( * ) - + + ( - - 57 ) AS col0 FROM tab0 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - MIN( - - 53 ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4683
SELECT - MIN ( - - 53 ) FROM tab1 AS cor0
----
-53

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 - CAST( NULL AS SIGNED ) <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 - CAST ( NULL AS INTEGER ) <> - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - + COUNT( * ) FROM tab1 WHERE ( col2 NOT IN ( col2 + + + 42, + 35, + col2, + col2, + 24 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE ( col2 NOT IN ( col2 + + + 42, + 35, + col2, + col2, + 24 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT + col0 * - - col0 AS col2 FROM tab2 WHERE NOT - - col0 * - + CAST( NULL AS SIGNED ) < - 58
----

skipif mysql # not compatible
query I rowsort label-4687
SELECT + col0 * - - col0 AS col2 FROM tab2 WHERE NOT - - col0 * - + CAST ( NULL AS INTEGER ) < - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL COUNT( - 14 ) * ( - - 71 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL COUNT ( - 14 ) * ( - - 71 ) FROM tab2
----
213

query I rowsort
SELECT col2 * + ( - col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT 42 * - - 90 AS col0 FROM tab2
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT MIN( - col0 ) * + CAST( NULL AS SIGNED ) + 60 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT MIN ( - col0 ) * + CAST ( NULL AS INTEGER ) + 60 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * - col0 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - col1 * + + 16
----

query I rowsort
SELECT ALL - ( - 34 ) + - 0 - - col1 + - col2 FROM tab1 WHERE col1 / + 1 IS NOT NULL
----
-20
-48
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( * ) * + 44 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4695
SELECT - COUNT ( * ) * + 44 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT - + col0 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT - col1 AS col1, - col1 * 36 + - - 2 * + col2 - + col1 FROM tab2 AS cor0
----
-51
-1841
-67
-2363
-77
-2769

query I rowsort
SELECT col1 * + col1 - + col0 AS col2 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4699
SELECT DISTINCT - CAST( + - 17 AS SIGNED ) col2, - 53 DIV + - col0 FROM tab0 AS cor0
----
17
0
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4699
SELECT DISTINCT - CAST ( + - 17 AS INTEGER ) col2, - 53 / + - col0 FROM tab0 AS cor0
----
17
0
17
3

query I rowsort
SELECT ALL col1 * - col2 * col2 * + col1 AS col0 FROM tab1
----
-10214416
-1806336
-87025

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab1 WHERE + + col0 * + + col1 < col2 / + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab1 WHERE + + col0 * + + col1 < col2 / + + col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + ( + col1 ) < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - COUNT( + + 10 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL OR - 86 * - col0 + - 45 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - COUNT ( + + 10 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL OR - 86 * - col0 + - 45 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4704
SELECT - COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

query II rowsort
SELECT - 11 + + - col2, col2 FROM tab1 AS cor0
----
-107
96
-70
59
-79
68

query I rowsort
SELECT col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - + 97 AS col2 FROM tab1 cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT - 67 + + - 44 AS col0, COUNT( * ) FROM tab0 cor0
----
-111
3

skipif mysql # not compatible
query II rowsort label-4708
SELECT - 67 + + - 44 AS col0, COUNT ( * ) FROM tab0 cor0
----
-111
3

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT SUM( DISTINCT + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT SUM ( DISTINCT + - col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + SUM( DISTINCT + 91 ) - - COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-4711
SELECT + SUM ( DISTINCT + 91 ) - - COUNT ( * ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - COUNT( + 8 ) - - 64 AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( + 8 ) - - 64 AS col1 FROM tab0 AS cor0
----
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + + ( COUNT( * ) ) + MAX( ALL + col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + + ( COUNT ( * ) ) + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 69, + col2 * 8, - 17 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col1 - + col2
----

query I rowsort
SELECT + 39 * 9 FROM tab0
----
351
351
351

query I rowsort
SELECT ALL ( - 81 ) * ( col1 ) FROM tab2
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + col1 * + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + col1 * + col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 91 * + - 36 FROM tab1
----
-3276

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + 85
----

query I rowsort
SELECT DISTINCT - - 18 FROM tab2 WHERE NULL >= 74 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4726
SELECT - COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT 6 * + col0 FROM tab1
----
306
510
546

query I rowsort
SELECT + col1 * col1 * - col1 AS col0 FROM tab1
----
-103823
-125
-2744

query I rowsort
SELECT - - col2 AS col0 FROM tab2 WHERE NOT 24 IS NOT NULL
----

query II rowsort
SELECT + col0 * + col0 AS col0, - 22 FROM tab0 AS cor0
----
225
-22
7569
-22
9409
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL MAX( ALL 67 ) AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL MAX ( ALL 67 ) AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT + col2 * - - 96 * + + col1 + + col1 - - col2 FROM tab2 AS cor0
----
112682
295797
373181

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT COUNT( * ) * - 76 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT COUNT ( * ) * - 76 FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT ALL - ( - COUNT( * ) ) AS col1, AVG ( + - 70 ) FROM tab0 WHERE - - col2 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT ALL - ( - COUNT ( * ) ) AS col1, AVG ( + - 70 ) FROM tab0 WHERE - - col2 IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT MIN( - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-4735
SELECT MIN ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-77

query I rowsort
SELECT DISTINCT col1 + + - col0 + + + 52 + - col1 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT DISTINCT + + 60 * 1 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - COUNT( * ) + - 70 col0 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT ALL - COUNT ( * ) + - 70 col0 FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL COUNT( - 9 ) + MIN( col0 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL COUNT ( - 9 ) + MIN ( col0 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab1
----
-102
-170
-182

query II rowsort
SELECT + col1 AS col2, 77 FROM tab1
----
14
77
47
77
5
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4743
SELECT ALL - 34 col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-34
NULL
-34
NULL
-34
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4743
SELECT ALL - 34 col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-34
NULL
-34
NULL
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT - 30 * + SUM( DISTINCT 14 ) + 91 AS col1 FROM tab0
----
-329

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - 30 * + SUM ( DISTINCT 14 ) + 91 AS col1 FROM tab0
----
-329

query I rowsort
SELECT ALL - col2 + - + 80 FROM tab1 AS cor0
----
-139
-148
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 * + col2 col2 FROM tab1 AS cor0 WHERE 63 * col0 IS NOT NULL
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT 33 + - - col1 - + 71 * + + 87 * - 82 AS col1 FROM tab2 AS cor0
----
506598
506614
506624

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT 84 DIV + + 84 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT 84 / + + 84 AS col0 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 27 ) col2 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col1 * - 20 - + col1 * - 18 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col0, - 77 col2 FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
-51
-77
-85
-77
-91
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT - col1 DIV - - col1 AS col0, 72 DIV - - col2 FROM tab1 AS cor0
----
-1
0
-1
1
-1
1

skipif mysql # not compatible
query II rowsort label-4753
SELECT - col1 / - - col1 AS col0, 72 / - - col2 FROM tab1 AS cor0
----
-1
0
-1
1
-1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * - - col2 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT + - 70 AS col0, col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT - 25 * + 60 FROM tab2 AS cor0
----
-1500

query I rowsort
SELECT - 37 * 48 - col2 FROM tab1 AS cor0
----
-1835
-1844
-1872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * + - col1 col0 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab1, tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col2 FROM tab2 WHERE NULL >= + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 WHERE NULL >= + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4762
SELECT - CAST( NULL AS DECIMAL ) * + ( + col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT - CAST ( NULL AS REAL ) * + ( + col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 51 ) + - 93 FROM tab2 AS cor0
----
-42

query II rowsort
SELECT ALL - col1 + col1, - 73 AS col2 FROM tab1 AS cor0
----
0
-73
0
-73
0
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) * + - col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) * + - col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - - 22 + + 17 * - col0 AS col2 FROM tab2 AS cor0
----
199
340
606

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + + MIN( - 40 ) * - COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + + MIN ( - 40 ) * - COUNT ( * ) FROM tab1 AS cor0
----
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 34 * - 38 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT + 30 DIV + 44 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + 30 / + 44 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT * FROM tab2 WHERE CAST( + 19 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4770
SELECT * FROM tab2 WHERE CAST ( + 19 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col1, 40 AS col0 FROM tab0
----
1
40
21
40
81
40

query I rowsort
SELECT - col0 + col2 * - col0 * col2 AS col0 FROM tab0
----
-33150
-8787
-950794

query I rowsort
SELECT - 48 + - - col0 AS col1 FROM tab0 AS cor0
----
-33
39
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + ( col1 ) col0 FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT DISTINCT - 26 + col2 FROM tab1 AS cor0
----
33
42
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4777
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + CAST( 70 AS SIGNED ) * - 5
----

skipif mysql # not compatible
query III rowsort label-4777
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + CAST ( 70 AS INTEGER ) * - 5
----

query II rowsort
SELECT ALL + 34, col0 AS col2 FROM tab1
----
34
51
34
85
34
91

query I rowsort
SELECT ALL - - col2 * + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - MAX( ALL - + col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4780
SELECT - MAX ( ALL - + col1 ) AS col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57, 74 col2 FROM tab1 AS cor0
----
57
74
57
74
57
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - SUM( ALL - ( + 0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - SUM ( ALL - ( + 0 ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + col0, - col0, ( - + col1 ), col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 78 + 48 - - 69 / + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 46 + + - ( - + 29 ) * + 0 FROM tab0
----
46

query I rowsort
SELECT + - col1 * + + 90 * + col1 - col0 FROM tab1 AS cor0
----
-17691
-198901
-2335

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL + 85 + + col2 + + 58 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + 85 + + col2 + + 58 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col1, - col2 + col1 FROM tab2
----
46
28
64
37
75
9

query II rowsort
SELECT + col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT - - col2 + - - 93 * + 8 AS col0 FROM tab1 AS cor0
----
803
812
840

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) * col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT ALL + ( + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT MAX( + 69 ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4796
SELECT MAX ( + 69 ) AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4797
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + + CAST( + 59 AS SIGNED ) + - col0 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4797
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + + CAST ( + 59 AS INTEGER ) + - col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - 30 * - COUNT( * ) * 69 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
6210

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - 30 * - COUNT ( * ) * 69 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT + SUM( ALL col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + SUM ( ALL col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT 34 DIV ( - COUNT( * ) ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4800
SELECT 34 / ( - COUNT ( * ) ) FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 BETWEEN 90 + + col1 AND - + col0
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 BETWEEN 90 + + col1 AND - + col0
----
0

query I rowsort
SELECT ALL 91 + col0 FROM tab2 AS cor0
----
137
155
166

query I rowsort
SELECT col1 - 16 + + col1 FROM tab2 AS cor0
----
118
138
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL 5 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 5 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - ( + 65 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT MAX( - - 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4806
SELECT MAX ( - - 71 ) FROM tab0
----
71

query I rowsort
SELECT ALL + 57 * 44 FROM tab2
----
2508
2508
2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 67 * 13 FROM tab1 AS cor0
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - - COUNT( * ) * - - COUNT( * ) * + 73 * + SUM( ALL - - 59 ) + COUNT( * ) FROM tab0 AS cor0
----
116292

skipif mysql # not compatible
query I rowsort label-4810
SELECT - - COUNT ( * ) * - - COUNT ( * ) * + 73 * + SUM ( ALL - - 59 ) + COUNT ( * ) FROM tab0 AS cor0
----
116292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL - CAST( 21 AS SIGNED ) col2 FROM tab0 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT ALL - CAST ( 21 AS INTEGER ) col2 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + CAST( NULL AS SIGNED ) + - col0 / - - col1 - - col1 + - 52 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) + - col0 / - - col1 - - col1 + - 52 >= NULL
----

query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab2 cor0 WHERE NOT NULL < 59
----

query I rowsort
SELECT 84 * - + col0 - - 38 FROM tab1 AS cor0
----
-4246
-7102
-7606

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + - SUM( DISTINCT + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4815
SELECT + - SUM ( DISTINCT + col0 ) FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL - SUM( - + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - SUM ( - + col2 ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT - col1 DIV ( 24 ) FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT - col1 / ( 24 ) FROM tab0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 1 FROM tab2
----
46
-1
64
-1
75
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT DISTINCT - col1 DIV + 68 + col0 + 73 AS col2 FROM tab2
----
119
136
148

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - col1 / + 68 + col0 + 73 AS col2 FROM tab2
----
119
136
148

query I rowsort
SELECT DISTINCT - + 1 FROM tab1 WHERE - col0 + - col2 BETWEEN - col1 AND 0
----

query II rowsort
SELECT ALL - 58 + 63 AS col1, + col2 + + + col0 AS col2 FROM tab0
----
5
196
5
62
5
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT ALL + 20, col1 DIV + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
20
-48
20
-65
20
-76

skipif mysql # not compatible
query II rowsort label-4822
SELECT ALL + 20, col1 / + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
20
-48
20
-65
20
-76

query I rowsort
SELECT DISTINCT + + col1 + - col1 FROM tab0 AS cor0 WHERE ( ( NOT ( NOT col2 * - 38 IS NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL CAST( 58 AS SIGNED ) FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL CAST ( 58 AS INTEGER ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + col0 + 32 + col0 AS col2 FROM tab2 AS cor0
----
124
160
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT - - SUM( ALL + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - - SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT 42 + - COUNT( * ) + - 11 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT 42 + - COUNT ( * ) + - 11 FROM tab0
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4828
SELECT + - col1 DIV col1, - col2 AS col1 FROM tab0 AS cor0
----
-1
-10
-1
-47
-1
-99

skipif mysql # not compatible
query II rowsort label-4828
SELECT + - col1 / col1, - col2 AS col1 FROM tab0 AS cor0
----
-1
-10
-1
-47
-1
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT ALL 37 + - 75 DIV + 82 AS col2 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL 37 + - 75 / + 82 AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - 36 + + col1 * - + col2 FROM tab0 AS cor0
----
-135
-246
-3843

query I rowsort
SELECT DISTINCT + - 92 + ( + 74 ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT - COUNT( * ) - CAST( COUNT( ALL + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4833
SELECT - COUNT ( * ) - CAST ( COUNT ( ALL + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + - 35 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col0 - ( col0 ) AS col2 FROM tab2 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 * ( - + 45 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 * ( - + 45 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE - 3 * col1 BETWEEN NULL AND + col0 + + + 99 / 87 * - col2 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE - 3 * col1 BETWEEN NULL AND + col0 + + + 99 / 87 * - col2 + - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + col1 - + col1 + col2 - + col2 * + 63 AS col0, + col0 col2 FROM tab2
----
-1380
46
-2416
64
-3521
75

query I rowsort
SELECT DISTINCT + 25 * + ( + 5 ) FROM tab0
----
125

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE ( NOT - 18 > NULL )
----

query II rowsort
SELECT + col1 AS col2, + col0 * col2 - + col2 + - - col1 AS col1 FROM tab0
----
1
9505
21
881
81
739

query II rowsort
SELECT - col1 AS col1, 61 * + - 25 FROM tab2 AS cor0
----
-51
-1525
-67
-1525
-77
-1525

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN + ( - col1 ) * col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4844
SELECT ALL * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) ) BETWEEN + col0 AND ( col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-4844
SELECT ALL * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) ) BETWEEN + col0 AND ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT + 33 + + ( - COUNT( * ) ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + 33 + + ( - COUNT ( * ) ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT + col0 + + 59 * ( col2 * + col1 + col2 ) FROM tab1 WHERE ( 61 - col2 ) IS NULL
----

query I rowsort
SELECT ALL 99 + - 44 AS col0 FROM tab1
----
55
55
55

query I rowsort
SELECT col2 + + col1 AS col0 FROM tab2 WHERE NOT col2 * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT col0 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + 46 - col0 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4850
SELECT col0 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + 46 - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - COUNT( 15 ) + MIN( ALL + col2 ) AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4851
SELECT - COUNT ( 15 ) + MIN ( ALL + col2 ) AS col2 FROM tab2
----
20

query I rowsort
SELECT col2 * + col1 + - col0 * col1 AS col2 FROM tab0
----
-1617
2
2592

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 59 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( * ) + 28 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) + 28 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT 17 * + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4856
SELECT 17 * + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL ( - col2 ) - + 43 AS col2 FROM tab1
----
-102
-111
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + COUNT( * ) * - 78 + - 26 AS col1 FROM tab1
----
-260

skipif mysql # not compatible
query I rowsort label-4859
SELECT + COUNT ( * ) * - 78 + - 26 AS col1 FROM tab1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - 17 - - COUNT( * ) * 66 FROM tab1
----
181

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - 17 - - COUNT ( * ) * 66 FROM tab1
----
181

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col0 <> ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col0 <> ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL - CAST( NULL AS SIGNED ) * 65 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4863
SELECT ALL - CAST ( NULL AS INTEGER ) * 65 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 24 + - col2 FROM tab0 cor0
----
-123
-34
-71

query I rowsort
SELECT col0 - 0 FROM tab0 WHERE - col1 + col1 * 31 BETWEEN - 75 AND col0 + col1
----
97

query I rowsort
SELECT col0 FROM tab1 WHERE 98 * col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + ( ( ( + col1 ) ) ) * - col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 76 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT DISTINCT + col2 DIV 32 + + 42 FROM tab2 AS cor0
----
42
43

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + col2 / 32 + + 42 FROM tab2 AS cor0
----
42
43

query I rowsort
SELECT ALL + - col1 * + 31 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-130
-238
752

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4873
SELECT * FROM tab1 AS cor0 WHERE - 7 * col2 IN ( - 19 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4873
SELECT * FROM tab1 AS cor0 WHERE - 7 * col2 IN ( - 19 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * col0 - 13 * - col1 AS col0 FROM tab2 AS cor0
----
1721
3561
5221

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL - 35 + + MIN( DISTINCT col1 + 20 * col1 ) AS col0 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - 35 + + MIN ( DISTINCT col1 + 20 * col1 ) AS col0 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + 11 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT 62 * + COUNT( * ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4877
SELECT 62 * + COUNT ( * ) FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + SUM( ALL - 10 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4878
SELECT + SUM ( ALL - 10 ) FROM tab0
----
-30

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * - col2 ) = ( + col0 )
----

query I rowsort
SELECT ALL - col2 - 47 FROM tab0
----
-146
-57
-94

query I rowsort
SELECT ALL - 86 * + col0 FROM tab2
----
-3956
-5504
-6450

query I rowsort
SELECT ALL + 57 AS col1 FROM tab2 WHERE NOT NULL > + col0 * col2
----

query I rowsort
SELECT 34 - col2 + col0 AS col2 FROM tab0
----
111
2
32

query I rowsort
SELECT col2 * - ( + 87 ) AS col2 FROM tab0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL 12 * + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 12 * + COUNT ( * ) FROM tab2
----
36

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 WHERE NOT col0 + - col2 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT col0 IN ( col1 )
----
-1
-21
-81

query I rowsort
SELECT 61 AS col2 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT - + col1 * - 64 AS col1 FROM tab1 cor0
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + COUNT( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4890
SELECT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col2, + col0 + - col0 + - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4892
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT - col0 * - - 7 FROM tab2
----
-322
-448
-525

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 - col2 NOT IN ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + 19 * - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + 19 * - COUNT ( * ) FROM tab0
----
-57

query I rowsort
SELECT + 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT + + 55 AS col2, COUNT( * ) - - - 72 AS col1 FROM tab0 cor0
----
55
-69

skipif mysql # not compatible
query II rowsort label-4897
SELECT + + 55 AS col2, COUNT ( * ) - - - 72 AS col1 FROM tab0 cor0
----
55
-69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 3 + + col1 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + ( - 52 ) AS col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT - col1 AS col1, 9 * - ( - col0 ) * - col0 + col0 DIV + 70 FROM tab1 AS cor0
----
-14
-23409
-47
-74528
-5
-65024

skipif mysql # not compatible
query II rowsort label-4902
SELECT - col1 AS col1, 9 * - ( - col0 ) * - col0 + col0 / + 70 FROM tab1 AS cor0
----
-14
-23409
-47
-74528
-5
-65024

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 35 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT + - col1 * + col0 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT + - col1 * + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - - MAX( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - - MAX ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / + - 69 ) >= + 96 * 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT - - CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-4907
SELECT - - CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - col2 - 82 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + - col2 IN ( + ( - 30 ) )
----
-141
-150
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT COUNT( * ) DIV + - MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT COUNT ( * ) / + - MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT DISTINCT col0 DIV + 32 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT col0 / + 32 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - COUNT( * ) * + ( + COUNT( * ) ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4911
SELECT - COUNT ( * ) * + ( + COUNT ( * ) ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL - 58 * + - col1 AS col0 FROM tab0
----
1218
4698
58

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT + col2 < ( NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL COUNT( * ) * - 7 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL COUNT ( * ) * - 7 FROM tab2
----
-21

query I rowsort
SELECT ALL col0 + - 58 AS col0 FROM tab1
----
-7
27
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 5 / - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col1 / - 69 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL - ( + 41 ) * - COUNT( * ) * - COUNT( col0 ) FROM tab1
----
-369

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - ( + 41 ) * - COUNT ( * ) * - COUNT ( col0 ) FROM tab1
----
-369

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT DISTINCT COUNT( * ) + - 3, 0 FROM tab0
----
0
0

skipif mysql # not compatible
query II rowsort label-4920
SELECT DISTINCT COUNT ( * ) + - 3, 0 FROM tab0
----
0
0

query I rowsort
SELECT ALL 77 * + - col2 + 12 FROM tab2
----
-1759
-3068
-4454

query I rowsort
SELECT - + col0 + 42 AS col1 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT - 34 * + + COUNT( * ) / - MAX( + - col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 34 * + + COUNT ( * ) / - MAX ( + - col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) >= - + 63
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT DISTINCT 21 + - COUNT( * ) DIV + MIN( DISTINCT - 21 ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT 21 + - COUNT ( * ) / + MIN ( DISTINCT - 21 ) AS col0 FROM tab0
----
21

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT col0 + col2 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT - CAST( 60 AS SIGNED ) DIV SUM( ALL + col0 ) * MIN( + 80 ) + 74 * 14 - + COUNT( DISTINCT + 86 ) AS col1 FROM tab0 AS cor0
----
1035

skipif mysql # not compatible
query I rowsort label-4927
SELECT - CAST ( 60 AS INTEGER ) / SUM ( ALL + col0 ) * MIN ( + 80 ) + 74 * 14 - + COUNT ( DISTINCT + 86 ) AS col1 FROM tab0 AS cor0
----
1035

query I rowsort
SELECT ALL + + col2 + - + 49 AS col1 FROM tab0 AS cor0
----
-2
-39
50

query I rowsort
SELECT ALL + 36 - + + col2 * + 41 + col1 * col1 AS col0 FROM tab2 AS cor0
----
1694
2147
4325

query I rowsort
SELECT + - col1 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + 3 - 32 + 11 + ( - - SUM( col2 ) ) FROM tab1 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 3 - 32 + 11 + ( - - SUM ( col2 ) ) FROM tab1 AS cor0
----
205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT - CAST( NULL AS SIGNED ) - - - SUM( ALL + - ( + 7 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CAST ( NULL AS INTEGER ) - - - SUM ( ALL + - ( + 7 ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT - CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT - CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT - - 67 + - COUNT( * ) * + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4934
SELECT - - 67 + - COUNT ( * ) * + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4935
SELECT ALL - col2 + ( - + col1 ), - CAST( NULL AS SIGNED ) + + + col2 col1 FROM tab1 AS cor0
----
-110
NULL
-115
NULL
-64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4935
SELECT ALL - col2 + ( - + col1 ), - CAST ( NULL AS INTEGER ) + + + col2 col1 FROM tab1 AS cor0
----
-110
NULL
-115
NULL
-64
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * - ( - col0 ) - + col2 * + col2 col2 FROM tab0 cor0
----
-392
-754
8339

query I rowsort
SELECT 67 + - 47 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col2 * - 70 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * + col0 * + + col1 * col1 AND col2 AND + ( + 10 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 57 * + col1 ) NOT BETWEEN + 80 AND ( NULL )
----
97
1
99

query I rowsort
SELECT col0 * col2 FROM tab2 AS cor0 WHERE NOT col0 + - col1 / - + 13 NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 0 * + 47 * 31 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + MIN( ALL 45 ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4942
SELECT + MIN ( ALL 45 ) AS col0 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + COUNT( ALL - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4943
SELECT + COUNT ( ALL - col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - ( - - 12 ) AS col1 FROM tab0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + COUNT( ALL - - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4945
SELECT + COUNT ( ALL - - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT + MIN( DISTINCT + 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + MIN ( DISTINCT + 65 ) FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT + COUNT( * ) DIV - - 1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT + COUNT ( * ) / - - 1 FROM tab1 cor0
----
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col1 AND - - col0
----

onlyif mysql # aggregate syntax: 
query III rowsort label-4949
SELECT - - COUNT( * ), - COUNT( * ) AS col0, + 67 AS col1 FROM tab1 AS cor0
----
3
-3
67

skipif mysql # not compatible
query III rowsort label-4949
SELECT - - COUNT ( * ), - COUNT ( * ) AS col0, + 67 AS col1 FROM tab1 AS cor0
----
3
-3
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4950
SELECT COUNT( * ) * - - 66, MIN( DISTINCT - 84 ) DIV - - COUNT( * ) col0 FROM tab0
----
198
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4950
SELECT COUNT ( * ) * - - 66, MIN ( DISTINCT - 84 ) / - - COUNT ( * ) col0 FROM tab0
----
198
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + MIN( DISTINCT + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4951
SELECT + MIN ( DISTINCT + - col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL + 16 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - col0 + + 37 AS col1 FROM tab0 AS cor0
----
-50
-60
22

query I rowsort
SELECT ALL + col2 + - col2 + 87 AS col2 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + 52 BETWEEN + col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT SUM( col1 ) + + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE col1 BETWEEN + - 79 * + + col0 + - 78 AND + ( col0 ) * col1
----
106

skipif mysql # not compatible
query I rowsort label-4957
SELECT SUM ( col1 ) + + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE col1 BETWEEN + - 79 * + + col0 + - 78 AND + ( col0 ) * col1
----
106

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - 45 * + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - 45 * + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-135

query II rowsort
SELECT ALL + col0, ( col1 ) FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL 80 + + col1 FROM tab0
----
101
161
81

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( 53 ) AND 69
----

query I rowsort
SELECT - 26 * - col2 FROM tab0
----
1222
2574
260

query II rowsort
SELECT + col0, + col2 * - - col2 FROM tab1
----
51
9216
85
3481
91
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - MAX( col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - MAX ( col2 ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT - CAST( + 65 AS SIGNED ) AS col2 FROM tab1
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4966
SELECT - CAST ( + 65 AS INTEGER ) AS col2 FROM tab1
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + col0 + 90 col0 FROM tab2 AS cor0
----
-1446
-3199
-393

query I rowsort
SELECT + col1 - - - 82 FROM tab2 cor0
----
-15
-31
-5

query I rowsort
SELECT col1 * - col0 * + col2 + - - 93 + + col2 FROM tab0
----
-18167
-56965
-9411

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL 79 + + COUNT( DISTINCT - 37 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 79 + + COUNT ( DISTINCT - 37 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4971
SELECT ALL CAST( - 86 AS DECIMAL ) AS col0 FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT NULL NOT BETWEEN ( + 51 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL CAST ( - 86 AS REAL ) AS col0 FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT NULL NOT BETWEEN ( + 51 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT + 49 * SUM( - + 95 ) FROM tab1 cor0
----
-13965

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + 49 * SUM ( - + 95 ) FROM tab1 cor0
----
-13965

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + COUNT( - - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + COUNT ( - - col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * + + col2 * - 16 * - - 21 FROM tab1 AS cor0
----
1169616
1553664
3096576

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL 50 * + - MIN( + col1 ) FROM tab0 WHERE ( - 98 + + col0 ) IS NOT NULL
----
-50

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 50 * + - MIN ( + col1 ) FROM tab0 WHERE ( - 98 + + col0 ) IS NOT NULL
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT + MAX( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - 83 FROM tab2 WHERE + 49 * + - col2 * + col1 / + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 - - + 13 FROM tab2 WHERE - col2 IS NULL
----

query II rowsort
SELECT - 40 AS col0, - 55 AS col1 FROM tab1
----
-40
-55
-40
-55
-40
-55

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col0 - - col0
----

query I rowsort
SELECT + 88 * col0 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT 81 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT ALL - - 75 DIV + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - - 75 / + 98 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT col2 DIV + + 35 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4987
SELECT col2 / + + 35 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + - 22 * + col0 + + col2 FROM tab1 AS cor0
----
-1026
-1811
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL - - MIN( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - - MIN ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + 5 / + col1 AND NULL
----

query I rowsort
SELECT ALL col0 + 2 * - ( + 92 ) + + col2 AS col2 FROM tab2
----
-115
-51
-80

query I rowsort
SELECT DISTINCT 5 + - col1 + + 51 AS col0 FROM tab1
----
42
51
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT DISTINCT + 48 AS col0, COUNT( * ) FROM tab0 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-4993
SELECT DISTINCT + 48 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
48
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT ( - + SUM( - - ( - col2 ) ) ) AS col0, + SUM( DISTINCT + - col0 ) * - - COUNT( * ) - - SUM( + + col0 ) FROM tab1 AS cor0
----
223
-454

skipif mysql # not compatible
query II rowsort label-4994
SELECT ( - + SUM ( - - ( - col2 ) ) ) AS col0, + SUM ( DISTINCT + - col0 ) * - - COUNT ( * ) - - SUM ( + + col0 ) FROM tab1 AS cor0
----
223
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - + MAX( - 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4995
SELECT - + MAX ( - 71 ) AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT col1 + + col2 - col0 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + - MAX( - col2 ) + + - COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + - MAX ( - col2 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL + col2 + - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT COUNT( * ) + + ( + - 65 ) AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4999
SELECT COUNT ( * ) + + ( + - 65 ) AS col1 FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE - col0 * - col2 < - + ( 60 )
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE - col0 * - col2 < - + ( 60 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT ALL - col0 + + 20 FROM tab2
----
-26
-44
-55

query II rowsort
SELECT - 10 + - - col2 AS col2, col0 * ( - 78 ) AS col0 FROM tab0
----
0
-6786
37
-1170
89
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 + 91 col1, + 26 AS col2 FROM tab2
----
187
26
187
26
187
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - CAST( NULL AS SIGNED ) - 6 / - - col2 - - col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - CAST ( NULL AS INTEGER ) - 6 / - - col2 - - col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( col0 ) OR 88 * - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - COUNT( * ) * - - 18 * - + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-5009
SELECT - COUNT ( * ) * - - 18 * - + COUNT ( * ) FROM tab1
----
162

query I rowsort
SELECT + + 82 * + col1 AS col2 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5011
SELECT ALL col2 DIV CAST( + CAST( - 74 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL col2 / CAST ( + CAST ( - 74 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT - col1 DIV - - 22 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5012
SELECT - col1 / - - 22 AS col1 FROM tab1 AS cor0
----
-2
0
0

query II rowsort
SELECT ALL + - ( ( col2 ) ) AS col0, - col2 + + 93 AS col2 FROM tab0 AS cor0
----
-10
83
-47
46
-99
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT 87 * - MIN( ALL + 15 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT 87 * - MIN ( ALL + 15 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + + ( + + col2 ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( - ( - 22 ) ) + - 8 * - + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + MAX( ALL + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + MAX ( ALL + col1 ) FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 * + + col2 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL <= + - col1 + col1
----

query I rowsort
SELECT DISTINCT 79 * + col0 * - 48 * - ( col2 ) * col2 FROM tab1 AS cor0
----
1121995920
1595612928
1782300672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT + COUNT( * ) DIV + + 53 + + - 82 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + COUNT ( * ) / + + 53 + + - 82 FROM tab2 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + 75 * + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-3525

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 75 * + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + 21 * col1, 33 + - - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24633
84
-64680
110
-81606
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL col0 * - - 7 FROM tab1
----
357
595
637

query I rowsort
SELECT 76 AS col2 FROM tab0 WHERE NULL = col1
----

query I rowsort
SELECT + + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - + 97 + col0 AS col2 FROM tab1 AS cor0
----
-12
-46
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5031
SELECT DISTINCT + - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT + + col0 * - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE col2 * + CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT + + col0 * - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 21 + col1 AS col0 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT ( - 81 ) * + col2 FROM tab1
----
-4779
-5508
-7776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL - 50 AS col0, 94 AS col2 FROM tab2
----
-50
94
-50
94
-50
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 82 + + - col2 + + 78 IN ( + col2 * col2 * - - col2 * + - 76, + ( + 62 ), - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT CAST( NULL AS SIGNED ) / 59 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CAST ( NULL AS INTEGER ) / 59 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1, col0 * + 58 + - col0 * - col1 FROM tab2
----
51
5014
67
9375
77
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT 66 * + ( + COUNT( * ) ) AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5041
SELECT 66 * + ( + COUNT ( * ) ) AS col1 FROM tab0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col0 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 12 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - 14 * + 1 + COUNT( - - col0 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5044
SELECT - 14 * + 1 + COUNT ( - - col0 ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + 35 - + - col0 * - 60 - + - 89 FROM tab2 AS cor0
----
-2636
-3716
-4376

query I rowsort
SELECT ALL col0 + col0 * ( + 86 ) AS col0 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT + + col2 + CAST( col2 AS SIGNED ) * + 50 + 21 AS col2 FROM tab0 AS cor0
----
2418
5070
531

skipif mysql # not compatible
query I rowsort label-5047
SELECT + + col2 + CAST ( col2 AS INTEGER ) * + 50 + 21 AS col2 FROM tab0 AS cor0
----
2418
5070
531

query I rowsort
SELECT col2 + - + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - ( col2 ) + + col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 62 / + 87 ) NOT IN ( col2, col1 + + - col0 + - col2 / - col1 * col1 * - + col0 + - 37 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 12 * - col2, 75 * + col0 AS col2 FROM tab0 AS cor0
----
1188
7275
120
6525
564
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5053
SELECT - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - COUNT( ALL 68 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - COUNT ( ALL 68 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - - SUM( DISTINCT - 38 ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5055
SELECT - - SUM ( DISTINCT - 38 ) FROM tab2 AS cor0
----
-38

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 >= NULL
----

query II rowsort
SELECT 17 AS col2, col1 FROM tab2
----
17
51
17
67
17
77

query I rowsort
SELECT ALL 26 * - col1 FROM tab1
----
-1222
-130
-364

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL > col1 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5060
SELECT DISTINCT + col2 AS col2, col1 * + CAST( NULL AS SIGNED ) * + 16 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5060
SELECT DISTINCT + col2 AS col2, col1 * + CAST ( NULL AS INTEGER ) * + 16 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - + 92 + + col1 AS col0 FROM tab0 AS cor0
----
-11
-71
-91

query I rowsort
SELECT DISTINCT - - col0 * + col0 - + + 58 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND + - 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5063
SELECT ALL CAST( NULL AS DECIMAL ) + + ( - + 10 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL CAST ( NULL AS REAL ) + + ( - + 10 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL ( - - 82 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL ( - - 82 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + 41 DIV 9 FROM tab0 AS cor0
----
103
14
51

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + 41 / 9 FROM tab0 AS cor0
----
103
14
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5067
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) * ( col2 ) - + 75 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5067
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) * ( col2 ) - + 75 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, col1 * - 80 col2 FROM tab0
----
1
-80
21
-1680
81
-6480

query I rowsort
SELECT DISTINCT - ( + 90 ) AS col2 FROM tab1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 * - 98 col1 FROM tab0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + 64 + + COUNT( * ) AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 64 + + COUNT ( * ) AS col2 FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5072
SELECT ALL - col0 + + col0 * + 99 AS col1, col0 * + 82 - 84 + CAST( NULL AS SIGNED ) FROM tab1
----
4998
NULL
8330
NULL
8918
NULL

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL - col0 + + col0 * + 99 AS col1, col0 * + 82 - 84 + CAST ( NULL AS INTEGER ) FROM tab1
----
4998
NULL
8330
NULL
8918
NULL

query I rowsort
SELECT col2 * 48 AS col2 FROM tab0
----
2256
4752
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5074
SELECT + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT 30, - col2 AS col0 FROM tab2 AS cor0
----
30
-23
30
-40
30
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5076
SELECT DISTINCT + col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5076
SELECT DISTINCT + col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL + 55 AS col1 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT + + 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col2 * 27 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 77 - - col1 IS NULL
----
1593
1836
2592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 * - + col2 * + col0 * - 79 BETWEEN NULL AND col2 OR NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + MIN( ALL - + col2 ) * - ( - + 73 ) - + 61 AS col1 FROM tab1 AS cor0
----
-7069

skipif mysql # not compatible
query I rowsort label-5082
SELECT + MIN ( ALL - + col2 ) * - ( - + 73 ) - + 61 AS col1 FROM tab1 AS cor0
----
-7069

query I rowsort
SELECT - 75 * 98 - + col1 FROM tab1 cor0
----
-7355
-7364
-7397

query II rowsort
SELECT DISTINCT + col1, - 27 * + 0 * + col2 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + 78 * + + col2 col2 FROM tab2 AS cor0
----
150696
262080
380016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5086
SELECT * FROM tab2 WHERE NOT ( - CAST( 30 AS SIGNED ) ) NOT BETWEEN + col1 AND ( + - 93 )
----

skipif mysql # not compatible
query III rowsort label-5086
SELECT * FROM tab2 WHERE NOT ( - CAST ( 30 AS INTEGER ) ) NOT BETWEEN + col1 AND ( + - 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL COUNT( * ) * MAX( - 69 ) AS col0 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL COUNT ( * ) * MAX ( - 69 ) AS col0 FROM tab1
----
-207

query I rowsort
SELECT DISTINCT 22 + col1 - - col1 AS col1 FROM tab2
----
124
156
176

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + 77
----

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NOT + 9 - col2 * + - col2 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - 27 + + - col0
----

query I rowsort
SELECT ALL + - col1 + 32 FROM tab1 AS cor0
----
-15
18
27

query I rowsort
SELECT + col1 * - col0 - - + 27 * col2 FROM tab0 cor0
----
-1557
2576
54

query I rowsort
SELECT ALL + col2 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col0 * col2 + + + 10 AS col1 FROM tab2 AS cor0
----
-1048
-2550
-4340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * + + col2 col2 FROM tab1
----
4425
5100
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT 15 + - - col2 DIV - col1 + - 17 + - col0 FROM tab0
----
-17
-198
-89

skipif mysql # not compatible
query I rowsort label-5098
SELECT 15 + - - col2 / - col1 + - 17 + - col0 FROM tab0
----
-17
-198
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL + col0 DIV + + 14 col0 FROM tab1
----
3
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5099
SELECT ALL + col0 / + + 14 col0 FROM tab1
----
3
6
6

query II rowsort
SELECT col1 + + + ( ( + col1 ) ), col1 FROM tab1
----
10
5
28
14
94
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5101
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + - col0 * 68 + + + 35 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + - col0 * 68 + + + 35 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT - SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 96 IS NULL
----

query II rowsort
SELECT - 23, - col1 * col0 AS col1 FROM tab1 AS cor0
----
-23
-425
-23
-4277
-23
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + 1 + - + 46 - + 1 + - - COUNT( * ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + 1 + - + 46 - + 1 + - - COUNT ( * ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE + 29 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT ALL COUNT( * ) - ( - COUNT( * ) ) + COUNT( * ), MIN( - - 72 ) AS col2 FROM tab0
----
9
72

skipif mysql # not compatible
query II rowsort label-5107
SELECT ALL COUNT ( * ) - ( - COUNT ( * ) ) + COUNT ( * ), MIN ( - - 72 ) AS col2 FROM tab0
----
9
72

query I rowsort
SELECT + 74 * + + col2 AS col0 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT + SUM( ALL 19 ) * COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + SUM ( ALL 19 ) * COUNT ( * ) FROM tab2
----
171

query I rowsort
SELECT DISTINCT ( col2 ) - + col2 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT ALL 28 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL 28 / - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col1 FROM tab1 WHERE NOT NULL < + - col2 + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT DISTINCT - col2 + + - 91 DIV + col1 FROM tab0
----
-14
-190
-48

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - col2 + + - 91 / + col1 FROM tab0
----
-14
-190
-48

query I rowsort
SELECT + + 37 AS col0 FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 45
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 73 IS NOT NULL )
----

query I rowsort
SELECT + - 43 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 WHERE NULL IS NULL
----
82

query I rowsort
SELECT ALL + - ( col0 ) * - col2 * 89 AS col2 FROM tab0 AS cor0
----
62745
77430
854667

query I rowsort
SELECT DISTINCT + 6 * - col2 + col0 * + 47 FROM tab0 AS cor0
----
3965
4029
423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 69 - - + col0 col1 FROM tab0
----
1
166
21
156
81
84

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab0
----
37

query I rowsort
SELECT - col2 * - - col1 / col2 * col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT - COUNT( * ) * MAX( ALL - col1 ) / - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - COUNT ( * ) * MAX ( ALL - col1 ) / - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT 91 * + COUNT( * ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-5125
SELECT 91 * + COUNT ( * ) FROM tab2 AS cor0
----
273

query I rowsort
SELECT 27 * - col1 * 15 + - col0 FROM tab0 AS cor0
----
-32820
-502
-8592

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT + 58 * 74 DIV + col2 AS col0 FROM tab0 AS cor0
----
429
43
91

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 58 * 74 / + col2 AS col0 FROM tab0 AS cor0
----
429
43
91

query II rowsort
SELECT - + col2 AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-23
-102
-40
-154
-58
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT MAX( - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5129
SELECT MAX ( - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5130
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT + col1 + + col1 + + 81 AS col0 FROM tab0
----
123
243
83

query I rowsort
SELECT + col2 + + 7 * + col1 AS col2 FROM tab2 cor0
----
380
527
579

query I rowsort
SELECT + col0 + + col1 + + + col1 + - 44 + + 82 * + 99 * col1 FROM tab0 AS cor0
----
170563
657691
8173

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - SUM( - + 91 ) * + + 92 AS col1 FROM tab0 AS cor0
----
25116

skipif mysql # not compatible
query I rowsort label-5135
SELECT - SUM ( - + 91 ) * + + 92 AS col1 FROM tab0 AS cor0
----
25116

query II rowsort
SELECT DISTINCT ( 59 ) AS col0, - 29 - - col0 AS col0 FROM tab1
----
59
22
59
56
59
62

query I rowsort
SELECT col2 - + - 45 + - - 84 FROM tab1 AS cor0
----
188
197
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + col2 + + col2 + col1 col0 FROM tab0 AS cor0
----
2478
5050
531

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 94 * + 18 - 48 + - col2 AS col1 FROM tab2 AS cor0
----
-1763
-1780
-1798

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT DISTINCT + - col0 DIV col2 + - 69 FROM tab0 AS cor0
----
-69
-77

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + - col0 / col2 + - 69 FROM tab0 AS cor0
----
-69
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - - col2 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5143
SELECT * FROM tab0 AS cor0 WHERE + CAST( + - col1 AS SIGNED ) * 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5143
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + - col1 AS INTEGER ) * 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + + col0 ) - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + - col0 + - col1 + ( + col0 ) AS col1 FROM tab1 WHERE + + col2 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 91 - - col0 FROM tab1
----
-40
-6
0

query I rowsort
SELECT + col1 * + col1 * - col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT + col1 DIV - col0 col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5149
SELECT + col1 / - col0 col1 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - COUNT( * ) * + 13 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5150
SELECT - COUNT ( * ) * + 13 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT + 56 * COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-5151
SELECT + 56 * COUNT ( * ) FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT - COUNT( - col1 ) + - 3 * + + 80 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - COUNT ( - col1 ) + - 3 * + + 80 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 IS NULL )
----
0

query I rowsort
SELECT - ( - col1 ) * + col0 * col0 + + 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 + + col1 NOT IN ( - + col1 * ( + ( - col0 ) ) + col1, + col2 ) )
----
158956
18232
9416

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE NOT + 40 / + 94 - - col0 * - - col0 * + col1 IS NULL
----
45
45
45

query I rowsort
SELECT ALL ( + 98 ) + 98 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 140c563b705c847a9763df60c43c8baa

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ALL 81 DIV ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 81 / ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - 68 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-5157
SELECT - 68 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT 37 + + COUNT( * ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 37 + + COUNT ( * ) FROM tab0 cor0
----
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - - col0 NOT BETWEEN + 3 + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 48 + - col2 FROM tab2 AS cor0 WHERE NOT ( - col2 - + - col1 ) IS NULL
----
-10
25
8

query I rowsort
SELECT ALL - col2 - - 10 AS col0 FROM tab2 AS cor0 WHERE NOT col0 >= - + col0 / + col1 + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) * col1 * + - 35 / + - 59 - 28 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT - + CAST( NULL AS SIGNED ) + 15 + - - col2 / - - 46 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT - + CAST ( NULL AS INTEGER ) + 15 + - - col2 / - - 46 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + 87, + col2 AS col2 FROM tab2
----
87
23
87
40
87
58

query I rowsort
SELECT DISTINCT 28 + + 11 AS col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL ( - ( + - COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL ( - ( + - COUNT ( * ) ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - col0 + - col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 <= + 85
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT 71 + - COUNT( * ) * + 49 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT 71 + - COUNT ( * ) * + 49 AS col2 FROM tab0 AS cor0
----
-76

query II rowsort
SELECT DISTINCT col1, 41 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col0 * col0 * - - col0 + - + ( - 78 ) + - 35 FROM tab0
----
3418
658546
912716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 16 ) col1 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT DISTINCT COUNT( * ), - 10 AS col2 FROM tab1
----
3
-10

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT COUNT ( * ), - 10 AS col2 FROM tab1
----
3
-10

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + col1 + - col2 AS col2 FROM tab1 AS cor0
----
3427
4603
9134

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT ALL COUNT( + - col0 ), COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL COUNT ( + - col0 ), COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2, - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT ( + CAST( - MIN( - 22 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5178
SELECT ( + CAST ( - MIN ( - 22 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
22

query II rowsort
SELECT + + col2 AS col1, + 20 * + ( + 73 ) FROM tab1 AS cor0
----
59
1460
68
1460
96
1460

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - col1 AS col2, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT + - ( 35 ) AS col2 FROM tab1 AS cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - 58 AND - 54
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col1 * 5 AS col2 FROM tab2
----
255
335
385

query I rowsort
SELECT col2 * ( - col0 ) FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= - 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 6 * + + col2 col0 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT ALL + ( + + 96 ) + - ( col2 ) * - + col1 FROM tab0
----
195
306
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 52 ) * + 57 >= + ( + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 51 + - + 68 AS col1 FROM tab2 AS cor0
----
-119
-119
-119

query II rowsort
SELECT + col0 AS col0, + 18 FROM tab1 AS cor0
----
51
18
85
18
91
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT ALL + COUNT( * ) AS col2, + 56 FROM tab0 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-5194
SELECT ALL + COUNT ( * ) AS col2, + 56 FROM tab0 AS cor0
----
3
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT ALL COUNT( * ), - COUNT( DISTINCT - + 98 ) AS col1 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-5195
SELECT ALL COUNT ( * ), - COUNT ( DISTINCT - + 98 ) AS col1 FROM tab0 AS cor0
----
3
-1

query I rowsort
SELECT ALL - col1 + col2 * - - col0 AS col0 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5197
SELECT - col1 * + CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT - col1 * + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, + 16 FROM tab0 AS cor0
----
15
16
87
16
97
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * col2 + col1 * 48 + + - 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT ALL - 88 * + + MAX( + col1 ) AS col1, 66 FROM tab1 AS cor0
----
-4136
66

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL - 88 * + + MAX ( + col1 ) AS col1, 66 FROM tab1 AS cor0
----
-4136
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + MAX( DISTINCT 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + MAX ( DISTINCT 18 ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT SUM( DISTINCT + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT SUM ( DISTINCT + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + col1 + + col0 + - col0 - - + 2 + + - col2 * - col1 * - col0 * col1 FROM tab2
----
-15178161
-19527081
-2751805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT 80 + + COUNT( * ) AS col2, COUNT( * ) col1 FROM tab2
----
83
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5205
SELECT 80 + + COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab2
----
83
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col0 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - col0 + - - 87 - - - 19 FROM tab1 AS cor0
----
-17
-23
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col0 NOT IN ( - 20, col1, + col2, - - 76 + + + col1, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 + - 73, 59 AS col1 FROM tab0 AS cor0
----
-154
59
-74
59
-94
59

query I rowsort
SELECT DISTINCT + col2 - - col0 + - + 6 * + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
1412
45511
56650

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5213
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5213
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 82 - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + ( + + col1 ) col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - 39 * col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + ( - 2 ) FROM tab1 cor0
----
2
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5218
SELECT + col1 * + - CAST( NULL AS DECIMAL ) 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-5218
SELECT + col1 * + - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 32 AS col1 FROM tab1 AS cor0
----
1632
2720
2912

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col2 * - + col1 * + ( - + col2 ) NOT IN ( - 67, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT - - 19 DIV + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5221
SELECT - - 19 / + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT col2, - 84 AS col2 FROM tab1 AS cor0
----
59
-84
68
-84
96
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE - 77 BETWEEN + 86 AND 58
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE - 77 BETWEEN + 86 AND 58
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL - col1, + 22 AS col0 FROM tab0
----
-1
22
-21
22
-81
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT + 62 DIV - 98 * - - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 62 / - 98 * - - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5227
SELECT DISTINCT - col1 * col2 col0, ( - - CAST( ( col1 ) AS SIGNED ) ) FROM tab0
----
-210
21
-3807
81
-99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5227
SELECT DISTINCT - col1 * col2 col0, ( - - CAST ( ( col1 ) AS INTEGER ) ) FROM tab0
----
-210
21
-3807
81
-99
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5228
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 11 * - col1 * + + col0 * - CAST( + col2 AS DECIMAL ) + - 15
----

skipif mysql # not compatible
query III rowsort label-5228
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 11 * - col1 * + + col0 * - CAST ( + col2 AS REAL ) + - 15
----

query I rowsort
SELECT ALL 96 * - 69 FROM tab0
----
-6624
-6624
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL SUM( ALL - 55 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL SUM ( ALL - 55 ) FROM tab2
----
-165

query II rowsort
SELECT + col1, + col0 + + col2 FROM tab1
----
14
147
47
159
5
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - ( + + SUM( ALL + 54 ) ) col0 FROM tab2
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT - ( + + SUM ( ALL + 54 ) ) col0 FROM tab2
----
-162

query I rowsort
SELECT DISTINCT + col2 * + col2 / col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT - COUNT( * ) * 18 DIV + + MAX( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5234
SELECT - COUNT ( * ) * 18 / + + MAX ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT + + col0, - 14 * - 12 * + 74 FROM tab2 cor0
----
46
12432
64
12432
75
12432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL - CAST( NULL AS SIGNED ) / col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5236
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-121600
-222024
-26450

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL - - MIN( 88 ) * - COUNT( * ) * + 27 AS col2 FROM tab0 AS cor0
----
-7128

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - - MIN ( 88 ) * - COUNT ( * ) * + 27 AS col2 FROM tab0 AS cor0
----
-7128

query II rowsort
SELECT col1 * - - col1, col0 * - col2 AS col0 FROM tab1 AS cor0
----
196
-4896
2209
-6188
25
-5015

query I rowsort
SELECT - col2 * + - ( + - col0 ) AS col1 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2, ( 39 ) col0 FROM tab0
----
2
39
2
39
2
39

query II rowsort
SELECT 77 AS col1, col1 FROM tab0
----
77
1
77
21
77
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT + CAST( + + col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5243
SELECT + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * - col0 col2 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT col1 DIV - ( + 93 ) col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT col1 / - ( + 93 ) col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT - ( col2 ) DIV - col2 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - ( col2 ) / - col2 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT 18 DIV + - col1 * + 17 * col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT 18 / + - col1 * + 17 * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 - - 40 * col2 + col0 FROM tab2 AS cor0
----
1624
2337
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + MIN( DISTINCT col1 ) - - COUNT( * ) col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5249
SELECT + MIN ( DISTINCT col1 ) - - COUNT ( * ) col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL + - 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT MAX( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= - 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + - ( + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5256
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-5256
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT + ( COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5257
SELECT DISTINCT + ( COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5258
SELECT 99 DIV ( + ( COUNT( * ) ) ) AS col2, + 18 AS col0 FROM tab1 AS cor0
----
33
18

skipif mysql # not compatible
query II rowsort label-5258
SELECT 99 / ( + ( COUNT ( * ) ) ) AS col2, + 18 AS col0 FROM tab1 AS cor0
----
33
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL 59 * + COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL 59 * + COUNT ( * ) FROM tab1 AS cor0
----
177

query II rowsort
SELECT 20 AS col1, 3 FROM tab1
----
20
3
20
3
20
3

query II rowsort
SELECT + col2 AS col2, col1 FROM tab1 WHERE NOT + - 29 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 93 * 69 AS col2 FROM tab1
----
6417

query I rowsort
SELECT + 53 * - col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( - col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 85 NOT BETWEEN + col2 * + 39 / + ( - 55 ) + - col0 * - col0 + + col2 AND + - col1
----

query II rowsort
SELECT - col1 AS col0, + col2 - - col1 AS col1 FROM tab0
----
-1
100
-21
31
-81
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - - COUNT( * ) + - 3 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - - COUNT ( * ) + - 3 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 75 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-75
-51
-75
-67
-75
-77

query I rowsort
SELECT DISTINCT + col0 + + 6 AS col2 FROM tab0 AS cor0
----
103
21
93

query I rowsort
SELECT ALL - - 14 + 85 * - col1 FROM tab0 AS cor0
----
-1771
-6871
-71

query I rowsort
SELECT DISTINCT + - col2 * + col2 + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT ALL - col1 DIV 78 - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - col1 / 78 - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT COUNT( * ) * + + 38 AS col1 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) * + + 38 AS col1 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - COUNT( * ) - - + 93 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) - - + 93 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + 33 + - + col1 - - 57 + 62 * - 41 AS col1 FROM tab1 cor0
----
-2457
-2466
-2499

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 69 + - + COUNT( ALL 35 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5278
SELECT 69 + - + COUNT ( ALL 35 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - - col2 + - + 37 AS col1 FROM tab0 AS cor0
----
-27
10
62

query I rowsort
SELECT ALL + col0 + - ( + - col0 ) FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - MAX( ALL - 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - MAX ( ALL - 35 ) FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT COUNT( ALL col2 ) DIV 39 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5284
SELECT COUNT ( ALL col2 ) / 39 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - ( - + 30 ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT AVG ( 34 ) + + 30 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ( - SUM( ( + + col1 ) ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5288
SELECT ( - SUM ( ( + + col1 ) ) ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + MIN( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5289
SELECT + MIN ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= + + col0 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE + 48 + + 8 IN ( col2, col0 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT COUNT( * ) DIV 35 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT COUNT ( * ) / 35 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - SUM( - 17 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - SUM ( - 17 ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - MIN( DISTINCT - col2 ) + MIN( DISTINCT - + col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - MIN ( DISTINCT - col2 ) + MIN ( DISTINCT - + col2 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + + 99 * + + col1 + + - col0 FROM tab0 cor0
----
120270
180786
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - + 98 * + MAX( - + col1 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
5001

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - + 98 * + MAX ( - + col1 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
5001

query I rowsort
SELECT DISTINCT col2 + 86 FROM tab1 AS cor0
----
145
154
182

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE 21 / + + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT - COUNT( * ) AS col1, + ( - - 98 ) FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-5300
SELECT - COUNT ( * ) AS col1, + ( - - 98 ) FROM tab1
----
-3
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT ALL - 26 - 80 + + ( col1 ), CAST( + 74 AS SIGNED ) AS col2 FROM tab1
----
-101
74
-59
74
-92
74

skipif mysql # not compatible
query II rowsort label-5301
SELECT ALL - 26 - 80 + + ( col1 ), CAST ( + 74 AS INTEGER ) AS col2 FROM tab1
----
-101
74
-59
74
-92
74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 94 > col1 + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL <> + + 61 * - 79
----

query I rowsort
SELECT + col2 - + col1 + - - col2 FROM tab0
----
-1
13
197

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT + + 21 - CAST( NULL AS SIGNED ) * + SUM( ALL - col1 ) + + 2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + 21 - CAST ( NULL AS INTEGER ) * + SUM ( ALL - col1 ) + + 2 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - 81 col0 FROM tab0 AS cor0
----
-15
-81
-87
-81
-97
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + + MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5309
SELECT + + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT 27 * SUM( + col0 ) AS col0 FROM tab2
----
4995

skipif mysql # not compatible
query I rowsort label-5310
SELECT 27 * SUM ( + col0 ) AS col0 FROM tab2
----
4995

onlyif mysql # aggregate syntax: 
query II rowsort label-5311
SELECT ALL + COUNT( - + col1 ) AS col0, 71 AS col2 FROM tab1
----
3
71

skipif mysql # not compatible
query II rowsort label-5311
SELECT ALL + COUNT ( - + col1 ) AS col0, 71 AS col2 FROM tab1
----
3
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5312
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL AND - col1 NOT BETWEEN - col1 - + CAST( 46 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5312
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL AND - col1 NOT BETWEEN - col1 - + CAST ( 46 AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT DISTINCT - ( + - 60 ) AS col0, - ( COUNT( * ) ) FROM tab0 cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-5313
SELECT DISTINCT - ( + - 60 ) AS col0, - ( COUNT ( * ) ) FROM tab0 cor0
----
60
-3

query I rowsort
SELECT DISTINCT - + 14 AS col0 FROM tab2 AS cor0 WHERE - col1 + - col2 + - col1 * + col2 / - 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL + CAST( NULL AS SIGNED ) / - - col2 * + ( + + 67 ) 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-5315
SELECT ALL + CAST ( NULL AS INTEGER ) / - - col2 * + ( + + 67 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT + 19 AS col1 FROM tab0 cor0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT + MIN( ALL - 17 ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5320
SELECT + MIN ( ALL - 17 ) AS col1 FROM tab2
----
-17

query II rowsort
SELECT - col0 * - ( col0 ), 2 AS col1 FROM tab0
----
225
2
7569
2
9409
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT DISTINCT - + CAST( + + 12 AS SIGNED ) AS col0 FROM tab1 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT - + CAST ( + + 12 AS INTEGER ) AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 + - - 22 AS col1 FROM tab0
----
109
119
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL < - col2 - 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - + COUNT( * ) + + COUNT( * ) * + 11 AS col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5325
SELECT - + COUNT ( * ) + + COUNT ( * ) * + 11 AS col2 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 83 + + SUM( col1 ) AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 83 + + SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - COUNT( * ) + + 42 + 88 + 77 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5327
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + 42 + 88 + 77 FROM tab0 AS cor0
----
216

query I rowsort
SELECT col0 + 6 AS col2 FROM tab1
----
57
91
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT ALL 75 * 71 FROM tab1
----
5325
5325
5325

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) IN ( 45 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5332
SELECT * FROM tab0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5332
SELECT * FROM tab0 WHERE NULL = CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - col0 BETWEEN ( - 96 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL - COUNT( * ) * - 38 - - 58 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - COUNT ( * ) * - 38 - - 58 FROM tab0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + 82 * COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + 82 * COUNT ( * ) FROM tab2
----
246

query I rowsort
SELECT ALL + col0 + - 84 FROM tab1
----
-33
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL CAST( NULL AS SIGNED ) + 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL CAST ( NULL AS INTEGER ) + 15 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + col0 NOT IN ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 + - col2 * + 72 col0 FROM tab1
----
-4159
-4807
-6823

query I rowsort
SELECT - ( col0 ) * 61 AS col0 FROM tab0
----
-5307
-5917
-915

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( ( 82 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT col0 + col1 DIV 87 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5342
SELECT col0 + col1 / 87 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT + col2 DIV 9 FROM tab2
----
2
4
6

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + col2 / 9 FROM tab2
----
2
4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - COUNT( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT - COUNT ( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + col2 NOT IN ( 44 )
----

query I rowsort
SELECT + 41 * + ( 79 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
3239
3239
3239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL - ( col2 ) + CAST( NULL AS SIGNED ) * + col0 FROM tab1 WHERE NOT + 11 * ( - CAST( NULL AS SIGNED ) ) <> - col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - ( col2 ) + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 WHERE NOT + 11 * ( - CAST ( NULL AS INTEGER ) ) <> - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + SUM( - col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT + SUM ( - col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT MIN( DISTINCT - col2 ) * - ( + COUNT( * ) ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5350
SELECT MIN ( DISTINCT - col2 ) * - ( + COUNT ( * ) ) FROM tab0
----
297

query I rowsort
SELECT DISTINCT 50 + col2 FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT - col1 / - col2 + - 90 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 66 + + 14 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 = col1 * - col1 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 6 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + 4 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < ( 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT - 98 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT - 98 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - + 39 ) AS col2 FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + 96 + + col0 col1 FROM tab0
----
155
227
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MAX( - 92 ) AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-5364
SELECT MAX ( - 92 ) AS col0 FROM tab0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 + + col2 col2 FROM tab2
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL 10 * + 2 * + 67 FROM tab2
----
1340
1340
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ( + 17 ) * - COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5369
SELECT ( + 17 ) * - COUNT ( * ) FROM tab0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 26 * + col2 + + CAST( + 45 AS SIGNED ) / + col2 col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5371
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 26 * + col2 + + CAST ( + 45 AS INTEGER ) / + col2 col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + SUM( DISTINCT 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5372
SELECT + SUM ( DISTINCT 72 ) FROM tab1 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 9 / 29 ) <= ( - 60 )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col0 > ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL COUNT( * ) + COUNT( * ) * 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + COUNT ( * ) * 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT 54 + col0 AS col0 FROM tab0 AS cor0 WHERE + col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col2 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT - col0 + - - 21 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - col0 + - - 21 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 55 + + 89
----

query II rowsort
SELECT + - col2 AS col0, 58 + - + 61 AS col1 FROM tab2 AS cor0
----
-23
-3
-40
-3
-58
-3

query I rowsort
SELECT DISTINCT - 58 + + - 30 FROM tab2 cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT - COUNT( * ) DIV 59 - - - MAX( - col1 ) * 28 AS col0 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - COUNT ( * ) / 59 - - - MAX ( - col1 ) * 28 AS col0 FROM tab1 AS cor0
----
140

query I rowsort
SELECT ALL - + 50 + + + ( - col2 ) FROM tab2 AS cor0
----
-108
-73
-90

query I rowsort
SELECT DISTINCT - 85 FROM tab1 AS cor0 WHERE - col2 IN ( 29 )
----

query I rowsort
SELECT col1 - - ( 63 ) AS col0 FROM tab1
----
110
68
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 63 IS NOT NULL
----

query I rowsort
SELECT + 25 AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL + MIN( - + 92 ) FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL + MIN ( - + 92 ) FROM tab2 cor0
----
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 / - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 66 * - col2 AS col1 FROM tab0 AS cor0
----
3102
6534
660

query I rowsort
SELECT DISTINCT - - 45 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND NULL
----
0

query I rowsort
SELECT ALL - + 90 + col0 AS col0 FROM tab1 AS cor0
----
-39
-5
1

query I rowsort
SELECT + - ( - - col1 ) FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 22 + + 69 * + col0 <= + + 29 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT - + 10 * COUNT( DISTINCT - ( 53 ) ) + - 14 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - + 10 * COUNT ( DISTINCT - ( 53 ) ) + - 14 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT ALL + col2 * - ( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + col2 * - ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT COUNT( * ) * + + 34 AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-5402
SELECT COUNT ( * ) * + + 34 AS col1 FROM tab0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT CAST( + COUNT( - 15 ) AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5403
SELECT CAST ( + COUNT ( - 15 ) AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL col2 + - 63 AS col2 FROM tab2
----
-23
-40
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 51 + - col0 + - - col1 col0 FROM tab2 AS cor0
----
102
118
128

query I rowsort
SELECT DISTINCT + col1 * + 47 * ( col2 ) AS col0 FROM tab2 AS cor0
----
144760
182642
55131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT + 38 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + 38 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5408
SELECT + 94 - - 55, - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
149
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT + 94 - - 55, - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
149
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT + CAST( + + 0 AS SIGNED ) - - - col0 * col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5409
SELECT + CAST ( + + 0 AS INTEGER ) - - - col0 * col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT + SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT + SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT 57 * + - 37 + col0 AS col2 FROM tab1 AS cor0
----
-2018
-2024
-2058

query I rowsort
SELECT ALL - ( - + 33 ) + + col2 FROM tab2 AS cor0
----
56
73
91

query II rowsort
SELECT ALL - + 60 - - col2 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-1
-59
36
-96
8
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 / col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + ( - 10 ) FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * + 42 col1 FROM tab2
----
462

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5417
SELECT DISTINCT CAST( - - col0 AS SIGNED ) DIV - col0, - 47 AS col1 FROM tab1
----
-1
-47

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) / - col0, - 47 AS col1 FROM tab1
----
-1
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 75 col0 FROM tab0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT col1 / - 98 AS col1 FROM tab1 WHERE NOT + 87 IS NOT NULL
----

query II rowsort
SELECT + col0, + col0 - col2 + col1 FROM tab2
----
46
74
64
101
75
84

query I rowsort
SELECT DISTINCT ( - + col0 ) / col2 FROM tab0 WHERE NOT - - 61 > + - 55
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT - MIN( ALL + CAST( - 56 AS SIGNED ) ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-5422
SELECT - MIN ( ALL + CAST ( - 56 AS INTEGER ) ) AS col0 FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-5423
SELECT - ( - col0 ) + col2 col2, 53 DIV + - col0 FROM tab2 WHERE NOT col0 IS NULL
----
104
0
133
0
69
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5423
SELECT - ( - col0 ) + col2 col2, 53 / + - col0 FROM tab2 WHERE NOT col0 IS NULL
----
104
0
133
0
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT SUM( - - 34 ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT SUM ( - - 34 ) FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT + MIN( DISTINCT - 11 ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + MIN ( DISTINCT - 11 ) AS col0 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT MAX( - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5426
SELECT MAX ( - col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT ALL + + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 <= + col2
----
97
1
99

query I rowsort
SELECT DISTINCT + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT 48 * + COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT 48 * + COUNT ( * ) FROM tab0 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 * 53 col0, col2 FROM tab2 AS cor0
----
-2438
23
-3392
40
-3975
58

query I rowsort
SELECT DISTINCT + - ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 * + + col1 * 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT COUNT( ALL - 4 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5438
SELECT DISTINCT COUNT ( ALL - 4 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col1 * 82 + + + col0 - + col0 * + + 68 + + col2 / + - 44 + + ( - 35 ) * - col0 * + col2 IS NULL
----

query I rowsort
SELECT 42 * - col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT ( - COUNT( ALL - col0 ) ) * - 2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT ( - COUNT ( ALL - col0 ) ) * - 2 FROM tab0
----
6

query I rowsort
SELECT + 37 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 5 * col1 AS col0 FROM tab0
----
105
405
5

query I rowsort
SELECT ALL + 99 + - col1 FROM tab1
----
52
85
94

query I rowsort
SELECT 83 * col1 FROM tab1
----
1162
3901
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + - 87
----

query I rowsort
SELECT DISTINCT - - col2 + - - 63 - col0 * col1 FROM tab0 cor0
----
-1105
-1754
65

query I rowsort
SELECT DISTINCT - - AVG ( - - 15 ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col0, - 52 * - - 50, - 41 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5450
SELECT DISTINCT + 22 + + - 93 DIV + 78 AS col0, + 73 FROM tab1 AS cor0
----
21
73

skipif mysql # not compatible
query II rowsort label-5450
SELECT DISTINCT + 22 + + - 93 / + 78 AS col0, + 73 FROM tab1 AS cor0
----
21
73

query I rowsort
SELECT + col1 - - 44 * - col2 AS col1 FROM tab2 cor0
----
-1683
-2485
-961

query I rowsort
SELECT - col0 - - - 66 AS col2 FROM tab0 AS cor0
----
-153
-163
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + COUNT( * ) + 87 col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5453
SELECT ALL + COUNT ( * ) + 87 col1 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5454
SELECT ALL * FROM tab2 WHERE - col0 * + 31 * - col1 * CAST( NULL AS DECIMAL ) / ( + + 83 ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5454
SELECT ALL * FROM tab2 WHERE - col0 * + 31 * - col1 * CAST ( NULL AS REAL ) / ( + + 83 ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5456
SELECT - + col0 * - + col1 * col1 + 82 * CAST( + col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + col2 + - col0 + - col0 + + - col2 * 5 NOT BETWEEN + 77 AND - col2
----

skipif mysql # not compatible
query I rowsort label-5456
SELECT - + col0 * - + col1 * col1 + 82 * CAST ( + col1 AS REAL ) FROM tab1 AS cor0 WHERE NOT + col2 + - col0 + - col0 + + - col2 * 5 NOT BETWEEN + 77 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - SUM( DISTINCT col1 ) col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT - SUM ( DISTINCT col1 ) col2 FROM tab1 cor0
----
-66

query II rowsort
SELECT - col0, + 21 AS col0 FROM tab0 AS cor0
----
-15
21
-87
21
-97
21

query II rowsort
SELECT 4, + col1 * col1 AS col2 FROM tab2 cor0
----
4
2601
4
4489
4
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0
----
53
53
53

onlyif mysql # DIV for integer division: 
query II rowsort label-5461
SELECT ALL + 54 DIV + col2, col1 AS col1 FROM tab0
----
0
1
1
81
5
21

skipif mysql # not compatible
query II rowsort label-5461
SELECT ALL + 54 / + col2, col1 AS col1 FROM tab0
----
0
1
1
81
5
21

query II rowsort
SELECT DISTINCT + - 11 AS col0, - 66 FROM tab1 WHERE ( - col0 ) <> - col0
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE NOT col2 < + col0 / + - 66 + + 19 / + col0 * - 63 + - 50
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 98 col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT - col0 DIV - col1 + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-115
-46
-80

skipif mysql # not compatible
query I rowsort label-5465
SELECT - col0 / - col1 + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-115
-46
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN col2 AND + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5467
SELECT - + 54 DIV - 84 * COUNT( * ) * + - 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + 54 / - 84 * COUNT ( * ) * + - 23 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 + + - col2 col0 FROM tab2 AS cor0
----
-62
-79
-97

query I rowsort
SELECT - + ( + + 36 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + 65 ) AS col0 FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT - CAST( + - 73 AS SIGNED ) FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5471
SELECT - CAST ( + - 73 AS INTEGER ) FROM tab1
----
73
73
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + + col0 <> NULL
----

query II rowsort
SELECT col2, + col1 * + 54 FROM tab2
----
23
2754
40
4158
58
3618

query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( col1 ) AND ( col2 ) )
----

query II rowsort
SELECT 46, + col2 FROM tab1 AS cor0
----
46
59
46
68
46
96

query I rowsort
SELECT DISTINCT + 48 * col2 * col2 * col1 FROM tab1 AS cor0
----
10431744
6193152
835440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT + MIN( + - col1 ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT 51 + + CAST( NULL AS SIGNED ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT + MIN ( + - col1 ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT 51 + + CAST ( NULL AS INTEGER ) IS NULL )
----
NULL

query I rowsort
SELECT ALL col1 + 4 FROM tab1 AS cor0
----
18
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT + + COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5479
SELECT + + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 47 * col2 FROM tab2 WHERE + ( col1 ) < + col2
----

query I rowsort
SELECT + 34 + 12 FROM tab2
----
46
46
46

query III rowsort
SELECT * FROM tab2 WHERE 38 + - col0 * 60 - col0 > - - 18
----

query I rowsort
SELECT DISTINCT + - col0 * - col0 - - ( - col0 ) * - col2 * col0 FROM tab2 AS cor0
----
167936
331875
50784

query II rowsort
SELECT DISTINCT - col0 - + - col1 AS col0, ( + 37 ) FROM tab1 AS cor0
----
-37
37
-44
37
-80
37

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col0 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - - col1 * + + col0 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL ( - 45 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT COUNT( DISTINCT + + 4 ) * 70 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5489
SELECT COUNT ( DISTINCT + + 4 ) * 70 FROM tab0 AS cor0
----
70

query I rowsort
SELECT - 1 * + col2 AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT + 39 * + - 21 + + col1 + 35 AS col1 FROM tab1 AS cor0
----
-737
-770
-779

query I rowsort
SELECT - + ( + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + COUNT( + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + COUNT ( + - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 27 AS col0 FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 21 * + col2 AS col0 FROM tab0 AS cor0
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5498
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - 3 * - - col1 * - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5498
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - 3 * - - col1 * - + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 - 27 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT + SUM( - + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + SUM ( - + col0 ) AS col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT + COUNT( * ) AS col1, 66 col1 FROM tab0
----
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5501
SELECT + COUNT ( * ) AS col1, 66 col1 FROM tab0
----
3
66

query I rowsort
SELECT 94 * col0 FROM tab1
----
4794
7990
8554

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT DISTINCT col0 DIV + - col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT col0 / + - col1 AS col2 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5504
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * + + ( + + 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT - 85 DIV + 26 + - + col0 - col2 AS col1 FROM tab2 AS cor0
----
-107
-136
-72

skipif mysql # not compatible
query I rowsort label-5506
SELECT - 85 / + 26 + - + col0 - col2 AS col1 FROM tab2 AS cor0
----
-107
-136
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 + - - 79 + - - col2 * - - 57 + - + col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5507
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 + - - 79 + - - col2 * - - 57 + - + col1 IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5508
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) * - col2 + + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5508
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * - col2 + + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT COUNT( * ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5509
SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
6

query II rowsort
SELECT 81 + + + ( - - 31 ) AS col0, col2 FROM tab2
----
112
23
112
40
112
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5511
SELECT ALL ( col0 ) AS col1, CAST( NULL AS SIGNED ) * - + col2 * + 43 AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5511
SELECT ALL ( col0 ) AS col1, CAST ( NULL AS INTEGER ) * - + col2 * + 43 AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( NULL AS SIGNED ) + - - col0 * col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( NULL AS INTEGER ) + - - col0 * col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 97 + + 68 + + + col1 * col2 FROM tab0 AS cor0
----
181
3778
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + - COUNT( * ) + + 53 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + - COUNT ( * ) + + 53 FROM tab1 AS cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 62 + - - col1 + col0
----

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT - CAST( - ( - MAX( - - col1 ) ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5517
SELECT - CAST ( - ( - MAX ( - - col1 ) ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + + COUNT( - col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + + COUNT ( - col0 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - SUM( DISTINCT + 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5519
SELECT - SUM ( DISTINCT + 86 ) FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT ALL 66, + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
66
0

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL 66, + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
66
0

query I rowsort
SELECT DISTINCT + col0 - + 3 FROM tab1 AS cor0
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT SUM( ALL 15 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT SUM ( ALL 15 ) AS col0 FROM tab2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5523
SELECT + COUNT( * ) DIV + 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT + COUNT ( * ) / + 5 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + col1 * + CAST( - col1 AS SIGNED ) * + 89 col1 FROM tab1
----
-17444
-196601
-2225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5524
SELECT + col1 * + CAST ( - col1 AS INTEGER ) * + 89 col1 FROM tab1
----
-17444
-196601
-2225

query I rowsort
SELECT ALL - ( 82 ) - + ( - col1 ) AS col0 FROM tab2 WHERE NOT 92 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 70 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT - 23 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT - 23 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 * - 89 + - 6 + - - 89 AS col1 FROM tab0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * + col0 * col0 col2 FROM tab2
----
262184
421933
97359

query I rowsort
SELECT ALL - 84 * 70 - col1 + - 90 AS col1 FROM tab0 AS cor0
----
-5971
-5991
-6051

query I rowsort
SELECT + col1 + - 33 * + col1 AS col0 FROM tab0 AS cor0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - MIN( ALL + col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5532
SELECT - MIN ( ALL + col0 ) col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT + COUNT( * ) * 39 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + COUNT ( * ) * 39 FROM tab2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT COUNT( * ) * - 35 * 48 AS col2 FROM tab2
----
-5040

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT COUNT ( * ) * - 35 * 48 AS col2 FROM tab2
----
-5040

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 42 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) * - 15 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * - 15 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT + MIN( DISTINCT - 7 ) FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + MIN ( DISTINCT - 7 ) FROM tab1 cor0
----
-7

query I rowsort
SELECT + + col0 * + ( - 46 ) + col2 AS col0 FROM tab1 AS cor0
----
-2250
-3851
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT + MIN( ( - 13 ) ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + MIN ( ( - 13 ) ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT - ( + - 67 ) FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) * - - COUNT( - col0 ) FROM tab1 WHERE NOT NULL <= 68
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT COUNT ( * ) * - - COUNT ( - col0 ) FROM tab1 WHERE NOT NULL <= 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT - MIN( - col2 ) FROM tab1 WHERE NOT + + 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT - MIN ( - col2 ) FROM tab1 WHERE NOT + + 43 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5543
SELECT - CAST( + col2 AS SIGNED ) + - - 42, col2 FROM tab2 AS cor0
----
-16
58
19
23
2
40

skipif mysql # not compatible
query II rowsort label-5543
SELECT - CAST ( + col2 AS INTEGER ) + - - 42, col2 FROM tab2 AS cor0
----
-16
58
19
23
2
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT CAST( NULL AS SIGNED ) + + col0 * - 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT CAST ( NULL AS INTEGER ) + + col0 * - 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 75 + - col2 col0 FROM tab0 AS cor0
----
-1585
-174
-6122

query I rowsort
SELECT + 14 + + - col2 AS col0 FROM tab0 AS cor0
----
-33
-85
4

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 * 34 AS col0 FROM tab0
----
1598
3366
340

query I rowsort
SELECT col0 * - col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT 21 * + col0 * + + 17 AS col0 FROM tab0 cor0
----
31059
34629
5355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL + 84 - CAST( - 33 AS SIGNED ) col2 FROM tab2
----
117
117
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT ALL + 84 - CAST ( - 33 AS INTEGER ) col2 FROM tab2
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + 42 + + COUNT( * ) + + 34 * + 20 AS col1 FROM tab1
----
725

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 42 + + COUNT ( * ) + + 34 * + 20 AS col1 FROM tab1
----
725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT ALL - CAST( - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - CAST ( - col1 AS INTEGER ) FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE - - 11 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 13 AS col0, + col2 col0 FROM tab2 AS cor0 WHERE 19 < col1
----
-38
23
-54
58
-64
40

query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT + 6 * + - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT + 6 * + - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 23 AS col1 FROM tab0
----
1081
2277
230

query I rowsort
SELECT - - 67 AS col2 FROM tab0 cor0
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT - col2 DIV + 61 + - ( col1 ) FROM tab1 AS cor0
----
-15
-48
-5

skipif mysql # not compatible
query I rowsort label-5561
SELECT - col2 / + 61 + - ( col1 ) FROM tab1 AS cor0
----
-15
-48
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, - 52 AS col0 FROM tab0 AS cor0
----
10
-52
47
-52
99
-52

query I rowsort
SELECT ALL ( - 40 ) FROM tab2 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 87 AS col0, + col1 * - + 11 col1 FROM tab2 AS cor0
----
-87
-561
-87
-737
-87
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL + + 19 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + + 19 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-57

query I rowsort
SELECT DISTINCT + - 20 * + - 62 AS col1 FROM tab1 AS cor0
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT MAX( ALL + col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT MAX ( ALL + col1 ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT 25 + + + col2 FROM tab0
----
124
35
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) DIV - 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) / - 93 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - MIN( - 13 ) + + - COUNT( + - 47 ) FROM tab1, tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-5571
SELECT - MIN ( - 13 ) + + - COUNT ( + - 47 ) FROM tab1, tab0 cor0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5572
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) NOT BETWEEN 98 + + col1 AND ( + 7 + + - 45 * - col1 - + col2 )
----

skipif mysql # not compatible
query III rowsort label-5572
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS REAL ) NOT BETWEEN 98 + + col1 AND ( + 7 + + - 45 * - col1 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 * - col1 - + + col1 + - 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - col2 + col1 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - col0 col0 FROM tab0
----
-3828
-4268
-660

query III rowsort
SELECT * FROM tab1 WHERE - + 90 + + 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT DISTINCT - - 62 + COUNT( * ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - - 62 + COUNT ( * ) FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 cor0
----
6

query I rowsort
SELECT ALL + + col2 + + + col1 * - 52 * - col1 FROM tab2 cor0
----
135275
233486
308348

query II rowsort
SELECT DISTINCT col0 + ( - col1 ) AS col2, 60 AS col0 FROM tab1 AS cor0
----
37
60
44
60
80
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( + + col1, col1 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5581
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( + + col1, col1 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT ALL + COUNT( * ) DIV + - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) FROM tab2
----
-1

query II rowsort
SELECT DISTINCT 65, ( - col1 ) AS col0 FROM tab1
----
65
-14
65
-47
65
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT DISTINCT SUM( DISTINCT - 31 ) AS col0, 17 FROM tab1
----
-31
17

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT SUM ( DISTINCT - 31 ) AS col0, 17 FROM tab1
----
-31
17

query I rowsort
SELECT col0 - - + 52 FROM tab0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL + + ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + + ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 * + + ( col1 ) col0 FROM tab1
----
430
4324
728

query I rowsort
SELECT + 33 * - col1 - - col2 AS col2 FROM tab2
----
-1660
-2153
-2501

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT col2 - + + 95 + + col2 + + col1 DIV + 87 FROM tab0
----
-1
-75
103

skipif mysql # not compatible
query I rowsort label-5589
SELECT col2 - + + 95 + + col2 + + col1 / + 87 FROM tab0
----
-1
-75
103

query II rowsort
SELECT ALL 89, + col0 FROM tab0
----
89
15
89
87
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL - COUNT( - + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - COUNT ( - + col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL - CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + - ( + 81 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-81

query II rowsort
SELECT col0, ( + col2 ) FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL + - MAX( + + 8 ) AS col2 FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + - MAX ( + + 8 ) AS col2 FROM tab2 cor0
----
-8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + col1 * - - col2 * + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - 15 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col0, col2 )
----

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT - + col1 / - - col2 + + + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT - + col1 / - - col2 + + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 * + col1 AS col0, + col1 - - col2 FROM tab1 AS cor0
----
1344
110
295
64
3196
115

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL + + CAST( AVG ( - 79 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + + CAST ( AVG ( - 79 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-79

query III rowsort
SELECT col2 * + 85 AS col1, - 13, - 63 AS col2 FROM tab2 AS cor0
----
9 values hashing to 98ceeca9dc97b607a4df9f4b6ddb7fb1

query I rowsort
SELECT - + col0 * - ( - + col0 ) - + col0 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT + + MAX( ALL col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5607
SELECT + + MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - COUNT( * ) * - + COUNT( * ) * - ( + MAX( + - col2 ) ) FROM tab0 AS cor0 WHERE NOT + 34 IN ( + col0 - + ( + 65 ), + 5, - col1 + + col2 * col2, - 45 + + + col1, + + col2 )
----
90

skipif mysql # not compatible
query I rowsort label-5608
SELECT - COUNT ( * ) * - + COUNT ( * ) * - ( + MAX ( + - col2 ) ) FROM tab0 AS cor0 WHERE NOT + 34 IN ( + col0 - + ( + 65 ), + 5, - col1 + + col2 * col2, - 45 + + + col1, + + col2 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT DISTINCT 50, + COUNT( * ) AS col1 FROM tab1
----
50
3

skipif mysql # not compatible
query II rowsort label-5609
SELECT DISTINCT 50, + COUNT ( * ) AS col1 FROM tab1
----
50
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + 72 <= + 80 - + 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT col2 DIV 53 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5611
SELECT col2 / 53 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 + - col2 + + col0 FROM tab2
----
101
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT 94 + CAST( NULL AS SIGNED ) * + 53 * + + 66 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT 94 + CAST ( NULL AS INTEGER ) * + 53 * + + 66 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - 46 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - 8 col1 FROM tab1 AS cor0
----
51
60
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + col2 + col0 col1, + col2 * - col2 FROM tab0 AS cor0
----
-19
-2209
195
-9801
76
-100

query I rowsort
SELECT ALL + col0 + - - 14 + - col1 AS col0 FROM tab0
----
-52
110
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT DISTINCT - ( - col1 ) FROM tab2 WHERE NOT NULL IN ( - - CAST( NULL AS SIGNED ) * + - 46 * col1 * + 99, - ( ( - - col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - ( - col1 ) FROM tab2 WHERE NOT NULL IN ( - - CAST ( NULL AS INTEGER ) * + - 46 * col1 * + 99, - ( ( - - col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL - COUNT( * ) + - SUM( + - col1 ) * + COUNT( * ) FROM tab1 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - COUNT ( * ) + - SUM ( + - col1 ) * + COUNT ( * ) FROM tab1 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT ALL - 65 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + + col2 * + + 66 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - 65 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col2 * + + 66 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) + 41 BETWEEN NULL AND ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT DISTINCT - 35 + - MAX( DISTINCT 68 ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - 35 + - MAX ( DISTINCT 68 ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT - col2 + - 44 * - col0 * + + 80 - - ( + - 72 ) AS col2 FROM tab1 AS cor0
----
179352
299069
320180

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT - MIN( - col0 ) - + - 92 AS col2 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - MIN ( - col0 ) - + - 92 AS col2 FROM tab1 AS cor0
----
183

query I rowsort
SELECT DISTINCT + 81 - + col0 AS col2 FROM tab1 AS cor0
----
-10
-4
30

query I rowsort
SELECT DISTINCT + - 60 - - 35 AS col1 FROM tab1 cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5628
SELECT ALL - col1 + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) * - + 87 FROM tab0 WHERE + col2 <= NULL
----

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL - col1 + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) * - + 87 FROM tab0 WHERE + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 40 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL MAX( col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL MAX ( col1 ) FROM tab1
----
47

query II rowsort
SELECT ALL + 52 AS col1, + col1 AS col0 FROM tab1
----
52
14
52
47
52
5

query II rowsort
SELECT + 47 AS col0, - col1 AS col1 FROM tab1
----
47
-14
47
-47
47
-5

query I rowsort
SELECT ALL col1 * 80 * + - 36 FROM tab0
----
-233280
-2880
-60480

query I rowsort
SELECT + col1 + + col1 FROM tab0 WHERE NOT ( ( col1 ) / - + col2 - + col1 * + ( + 49 ) + - - 33 + col2 - - + col0 * - col1 + 19 / - + col1 * - - 7 > + col1 )
----
162
2
42

query I rowsort
SELECT DISTINCT ( - - 65 ) FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + COUNT( * ) * + MAX( - - col1 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5636
SELECT + COUNT ( * ) * + MAX ( - - col1 ) FROM tab1 AS cor0
----
141

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 80, - 18, + + col0 - - 69 )
----

query I rowsort
SELECT DISTINCT + 41 * ( - - col0 ) + - col2 FROM tab2 AS cor0
----
1863
2584
3017

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col0 * 21 + - - 21 IS NULL
----
14
47
5

query I rowsort
SELECT ( ( - col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5641
SELECT ALL - 90, + ( COUNT( * ) ) AS col0 FROM tab1
----
-90
3

skipif mysql # not compatible
query II rowsort label-5641
SELECT ALL - 90, + ( COUNT ( * ) ) AS col0 FROM tab1
----
-90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT SUM( DISTINCT - 56 ) AS col1 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT SUM ( DISTINCT - 56 ) AS col1 FROM tab2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT - CAST( ( - + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5643
SELECT - CAST ( ( - + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - + SUM( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5644
SELECT - + SUM ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - col2 + col0 + + 3 + + ( 45 ) AS col0 FROM tab2 AS cor0
----
65
71
72

query I rowsort
SELECT DISTINCT - - 6 + col1 FROM tab0 AS cor0
----
27
7
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT DISTINCT - col2 DIV col2 + 51 + - - col0 DIV + 73 AS col0 FROM tab2 AS cor0
----
50
51

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - col2 / col2 + 51 + - - col0 / + 73 AS col0 FROM tab2 AS cor0
----
50
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 / 25 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 32 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + - col1 ) FROM tab0 cor0 WHERE NOT col1 < + col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT - 33 DIV + col0 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 33 / + col0 AS col2 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ( + + 29 ) * 41 * + - COUNT( * ) AS col1 FROM tab0
----
-3567

skipif mysql # not compatible
query I rowsort label-5652
SELECT ( + + 29 ) * 41 * + - COUNT ( * ) AS col1 FROM tab0
----
-3567

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL COUNT( * ) + - 54 AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL COUNT ( * ) + - 54 AS col1 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + col1 + ( - ( - col0 ) ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT ALL CAST( + - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT 53 + - - 22 AS col1 FROM tab2
----
75
75
75

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 93 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 48 AS col2, + col1 FROM tab2 AS cor0
----
48
51
48
67
48
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL 78 * + 82 + - COUNT( * ) FROM tab1 AS cor0
----
6393

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL 78 * + 82 + - COUNT ( * ) FROM tab1 AS cor0
----
6393

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT ALL - 64 DIV + - col1 + col2 FROM tab2 AS cor0
----
24
40
58

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - 64 / + - col1 + col2 FROM tab2 AS cor0
----
24
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT - COUNT( ALL 55 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5663
SELECT - COUNT ( ALL 55 ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 / - - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 45 >= + 92 * + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT + 10 DIV + 67 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT + 10 / + 67 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT + COUNT( + - 2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + COUNT ( + - 2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT + COUNT( * ) * - - 33 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5668
SELECT + COUNT ( * ) * - - 33 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + COUNT( DISTINCT + 86 ) * + ( - - 88 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( DISTINCT + 86 ) * + ( - - 88 ) FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT + COUNT( DISTINCT - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5671
SELECT + COUNT ( DISTINCT - col1 ) FROM tab0
----
3

query I rowsort
SELECT ( + 87 ) + + 31 FROM tab2
----
118
118
118

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL ( - + ( 79 ) ) * - COUNT( * ) AS col1 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL ( - + ( 79 ) ) * - COUNT ( * ) AS col1 FROM tab2
----
237

query I rowsort
SELECT + - 18 FROM tab0 WHERE NULL NOT IN ( - col2, + col2 * + 59 + col1 + col2, + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 - col1 BETWEEN - - 92 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + 50 + SUM( ALL + + 96 ) FROM tab1
----
338

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 50 + SUM ( ALL + + 96 ) FROM tab1
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL + MAX( + col2 ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL + MAX ( + col2 ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
102

query I rowsort
SELECT DISTINCT - - 33 + - + col0 AS col1 FROM tab2 AS cor0
----
-13
-31
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT - + ( - 34 ) + CAST( NULL AS SIGNED ) + - 78 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - + ( - 34 ) + CAST ( NULL AS INTEGER ) + - 78 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5681
SELECT - + CAST( NULL AS SIGNED ), - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5681
SELECT - + CAST ( NULL AS INTEGER ), - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5682
SELECT + + col0 AS col0, - col1 DIV + - col1 AS col2 FROM tab1 cor0
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-5682
SELECT + + col0 AS col0, - col1 / + - col1 AS col2 FROM tab1 cor0
----
51
1
85
1
91
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL + - ( - + 31 ) FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col1 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - MAX( ALL + 54 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5687
SELECT - MAX ( ALL + 54 ) FROM tab2 AS cor0
----
-54

query II rowsort
SELECT ALL + + col0 * + col2 AS col1, 49 AS col2 FROM tab2 cor0
----
1058
49
2560
49
4350
49

query I rowsort
SELECT DISTINCT col0 * - 74 AS col2 FROM tab2
----
-3404
-4736
-5550

query I rowsort
SELECT DISTINCT - ( + 82 ) AS col2 FROM tab2
----
-82

query I rowsort
SELECT + col1 * + 22 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5692
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT + 54 * col2 FROM tab2
----
1242
2160
3132

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT ALL 49, COUNT( * ) AS col0 FROM tab2
----
49
3

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL 49, COUNT ( * ) AS col0 FROM tab2
----
49
3

query I rowsort
SELECT DISTINCT + + 22 AS col0 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL col0 + + 39 FROM tab2
----
103
114
85

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < - 56
----

query I rowsort
SELECT + 14 * + - 96 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 569b3f23c089d36d31b3948fa7290eba

query I rowsort
SELECT + 87 + + 24 FROM tab2
----
111
111
111

query I rowsort
SELECT ALL col1 + + col2 FROM tab0 WHERE 27 + col2 IS NOT NULL
----
100
128
31

query I rowsort
SELECT ALL col2 + + col2 * 31 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT col1 * 58 AS col1 FROM tab2 AS cor0
----
2958
3886
4466

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + - col1 AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT CAST( NULL AS SIGNED ) * col2 * + 84 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT CAST ( NULL AS INTEGER ) * col2 * + 84 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT - COUNT( * ) DIV COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5706
SELECT - COUNT ( * ) / COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 11 * + 54 * + ( col1 ) AS col0 FROM tab1
----
-27918
-2970
-8316

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT ALL 12 DIV 6 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL 12 / 6 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT COUNT( ALL - - col1 ) DIV + - 72 * - COUNT( DISTINCT + 18 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT COUNT ( ALL - - col1 ) / + - 72 * - COUNT ( DISTINCT + 18 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT 76 * - ( - + ( col2 ) ) AS col2 FROM tab0
----
3572
7524
760

onlyif mysql # DIV for integer division: 
query I rowsort label-5711
SELECT - col0 DIV + 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5711
SELECT - col0 / + 95 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5712
SELECT * FROM tab1 WHERE NULL = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5712
SELECT * FROM tab1 WHERE NULL = - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT col0 - - col1 + - col1 DIV + + 3 - + + col1 DIV + + 38 + + 53 AS col1 FROM tab1 AS cor0
----
114
142
175

skipif mysql # not compatible
query I rowsort label-5713
SELECT col0 - - col1 + - col1 / + + 3 - + + col1 / + + 38 + + 53 AS col1 FROM tab1 AS cor0
----
114
142
175

query I rowsort
SELECT DISTINCT 19 + - + col2 FROM tab0 cor0
----
-28
-80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL + - 11 + 34 + - - COUNT( * ) + + 63 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + - 11 + 34 + - - COUNT ( * ) + + 63 FROM tab2 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 78 ) + + col1 - + 14 col1 FROM tab2 AS cor0
----
-15
-25
-41

query I rowsort
SELECT ALL - + ( + 94 ) FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL + + ( COUNT( * ) ) col0 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-5718
SELECT ALL + + ( COUNT ( * ) ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( DISTINCT - - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( DISTINCT - - col2 ) FROM tab1
----
3

query II rowsort
SELECT 0, ( 24 ) AS col2 FROM tab1
----
0
24
0
24
0
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT DISTINCT CAST( NULL AS SIGNED ) + SUM( - + 55 ) - - 72 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT CAST ( NULL AS INTEGER ) + SUM ( - + 55 ) - - 72 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col1 + - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT - - SUM( DISTINCT - + col1 ) DIV - 26 AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5723
SELECT - - SUM ( DISTINCT - + col1 ) / - 26 AS col2 FROM tab2 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT + MIN( ALL + 58 ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT + MIN ( ALL + 58 ) AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL + col2 * col1 + 75 FROM tab1 cor0
----
1419
3271
370

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT - COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5727
SELECT - COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT MAX( - - ( + CAST( - col1 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5728
SELECT MAX ( - - ( + CAST ( - col1 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + col0, col2 * col0 + - col1 AS col2 FROM tab2 cor0
----
46
1007
64
2483
75
4283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 17 col1 FROM tab2 AS cor0
----
23
17
40
17
58
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT SUM( DISTINCT + + 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5732
SELECT SUM ( DISTINCT + + 1 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ( - + SUM( DISTINCT col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5733
SELECT ( - + SUM ( DISTINCT col2 ) ) FROM tab2
----
-121

query I rowsort
SELECT ALL + 51 * + + col2 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT COUNT( * ) * + SUM( - 87 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT COUNT ( * ) * + SUM ( - 87 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL + + MAX( ALL + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + + MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5737
SELECT - - col2 + - CAST( NULL AS SIGNED ), 16 * 49 AS col0 FROM tab0 AS cor0
----
NULL
784
NULL
784
NULL
784

skipif mysql # not compatible
query II rowsort label-5737
SELECT - - col2 + - CAST ( NULL AS INTEGER ), 16 * 49 AS col0 FROM tab0 AS cor0
----
NULL
784
NULL
784
NULL
784

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT + - SUM( - 77 ) * + + 67 AS col0 FROM tab2 AS cor0
----
15477

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + - SUM ( - 77 ) * + + 67 AS col0 FROM tab2 AS cor0
----
15477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5739
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT SUM( col2 ) * + COUNT( * ) + + COUNT( * ) col0 FROM tab2
----
366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5741
SELECT DISTINCT SUM ( col2 ) * + COUNT ( * ) + + COUNT ( * ) col0 FROM tab2
----
366

query I rowsort
SELECT ALL - + col2 * + col0 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
-2992
-3552
-4720

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL 65 + + - ( + COUNT( * ) ) + ( + + 60 ) FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL 65 + + - ( + COUNT ( * ) ) + ( + + 60 ) FROM tab0 AS cor0
----
122

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 * - col0 = ( col1 ) * + - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL - SUM( - col2 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - SUM ( - col2 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
363

query I rowsort
SELECT DISTINCT + col0 + - col2 + + col0 + - col1 + + col0 * + 17 + col2 FROM tab2 AS cor0
----
1139
1358
823

query I rowsort
SELECT - col1 - - col2 * + col2 * col0 + col1 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT DISTINCT - col2 * 67 - + - col1 + + 51 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * - + 77 * - col2 col2 FROM tab2
----
-138600
-200970
-79695

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5750
SELECT * FROM tab1 WHERE + col2 BETWEEN + + 75 AND - - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5750
SELECT * FROM tab1 WHERE + col2 BETWEEN + + 75 AND - - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT + + col0 AS col1 FROM tab0 WHERE - - 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT ALL col0 DIV - + col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL col0 / - + col2 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + ( - col1 ) + + - col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + 40 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + 40 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
41

query I rowsort
SELECT DISTINCT + + col1 + + - 18 FROM tab0 AS cor0
----
-17
3
63

query I rowsort
SELECT ALL + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + col2 * - col2 * + - col1 * - col0 AS col0 FROM tab1 cor0
----
-1479425
-19776848
-6580224

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5760
SELECT + - 87 DIV - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5760
SELECT + - 87 / - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 18, + col2 col0 FROM tab0
----
-18
10
-18
47
-18
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT + COUNT( * ), COUNT( * ) col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5762
SELECT + COUNT ( * ), COUNT ( * ) col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT COUNT( * ) * - - 97 * - COUNT( * ) + + + COUNT( * ) FROM tab1
----
-870

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT COUNT ( * ) * - - 97 * - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
-870

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL MIN( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL MIN ( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT MAX( - col2 ) * - - 15 AS col0 FROM tab1 AS cor0
----
-885

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT MAX ( - col2 ) * - - 15 AS col0 FROM tab1 AS cor0
----
-885

query I rowsort
SELECT ALL - col1 * + 79 FROM tab1 AS cor0
----
-1106
-3713
-395

onlyif mysql # DIV for integer division: 
query II rowsort label-5769
SELECT col0 + + col0 AS col1, - col1 DIV - - col2 + col1 AS col0 FROM tab0
----
174
19
194
1
30
80

skipif mysql # not compatible
query II rowsort label-5769
SELECT col0 + + col0 AS col1, - col1 / - - col2 + col1 AS col0 FROM tab0
----
174
19
194
1
30
80

query I rowsort
SELECT ( + + col1 ) * + col2 + - + col1 AS col0 FROM tab0
----
189
3726
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5771
SELECT - COUNT( * ) + 61 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT - COUNT ( * ) + 61 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + + 70 AS col2 FROM tab2
----
116
134
145

query I rowsort
SELECT ALL + + 40 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
40
40
40

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT - MAX( + 82 ) col0, + 77 FROM tab2 AS cor0
----
-82
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5775
SELECT - MAX ( + 82 ) col0, + 77 FROM tab2 AS cor0
----
-82
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + - - 46 * - - col0, + col1 )
----

query I rowsort
SELECT ( - 9 ) AS col0 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - 55 - - col0 * 84 FROM tab1 cor0
----
4229
7085
7589

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - 86 * - + COUNT( * ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 86 * - + COUNT ( * ) AS col2 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL ( - COUNT( * ) ) - + COUNT( * ) - + COUNT( * ) col2 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5780
SELECT ALL ( - COUNT ( * ) ) - + COUNT ( * ) - + COUNT ( * ) col2 FROM tab0
----
-9

query I rowsort
SELECT ALL 32 + + col0 * - col1 * - - ( - 33 ) AS col1 FROM tab1
----
14057
141173
23594

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5782
SELECT + - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + ( + - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 85 * 80
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 / + col2 )
----

query I rowsort
SELECT DISTINCT - col1 - + col1 * + col1 AS col2 FROM tab0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT COUNT( * ) + ( COUNT( * ) ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5787
SELECT COUNT ( * ) + ( COUNT ( * ) ) col0 FROM tab1
----
6

query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab2 WHERE + col1 - + col2 IS NOT NULL
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT DISTINCT + ( MAX( DISTINCT col0 ) ) - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT + ( MAX ( DISTINCT col0 ) ) - COUNT ( * ) FROM tab1
----
88

query I rowsort
SELECT DISTINCT col0 + - 63 * 99 FROM tab1
----
-6146
-6152
-6186

query I rowsort
SELECT DISTINCT - col0 + col1 * + 8 FROM tab2
----
362
461
552

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT MIN( ALL col1 ) + MAX( DISTINCT - col2 + col2 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5792
SELECT MIN ( ALL col1 ) + MAX ( DISTINCT - col2 + col2 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + col0 / col0 FROM tab0 WHERE NOT + col2 * col2 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 5 ) + col0 * 36 col1 FROM tab1
----
1831
3055
3271

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - SUM( ALL + col0 ) + + 4 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5795
SELECT - SUM ( ALL + col0 ) + + 4 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT + col1 DIV ( - 22 ) + col0 * col0 AS col1 FROM tab2
----
2114
4093
5622

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + col1 / ( - 22 ) + col0 * col0 AS col1 FROM tab2
----
2114
4093
5622

query I rowsort
SELECT 49 * col1 + 43 FROM tab1
----
2346
288
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT DISTINCT ( - 94 ) FROM tab1
----
-94

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 82 + col0 * - col0 ) <= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5801
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) <= col0
----

skipif mysql # not compatible
query III rowsort label-5801
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) <= col0
----

query I rowsort
SELECT - ( col1 ) + - col2 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col0 AND ( col0 )
----

query I rowsort
SELECT - 56 + - ( + 1 ) * - col0 FROM tab2
----
-10
19
8

query III rowsort
SELECT * FROM tab1 WHERE ( + 38 / - col2 ) BETWEEN ( + col1 ) AND - 61
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + col0 IN ( + col0 )
----
15
87
97

query I rowsort
SELECT + ( - 56 ) FROM tab0 WHERE NOT 99 IN ( - 53 )
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab0 WHERE - 75 - 36 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND - CAST( col2 AS SIGNED )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5809
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND - CAST ( col2 AS INTEGER )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 * 53 ) >= NULL
----

query I rowsort
SELECT ALL 10 + + col0 FROM tab1 AS cor0
----
101
61
95

query I rowsort
SELECT col0 + ( + col2 ) FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT - ( - col1 ) + 64 FROM tab2 cor0
----
115
131
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 79 col2 FROM tab1 AS cor0
----
126
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT MIN( ( + 93 ) ) * 98 + ( + COUNT( ALL col1 ) ) * COUNT( * ) FROM tab1 AS cor0
----
9123

skipif mysql # not compatible
query I rowsort label-5816
SELECT MIN ( ( + 93 ) ) * 98 + ( + COUNT ( ALL col1 ) ) * COUNT ( * ) FROM tab1 AS cor0
----
9123

query I rowsort
SELECT DISTINCT - 67 * - 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
3551

query III rowsort
SELECT * FROM tab0 WHERE 9 / + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - col0 ) - 20 FROM tab2 AS cor0
----
-66
-84
-95

query I rowsort
SELECT ALL + - ( col1 ) * + col2 + + 88 AS col1 FROM tab0 AS cor0
----
-11
-122
-3719

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / ( + col1 ) NOT IN ( - col0 - col0 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5822
SELECT * FROM tab1 AS cor0 WHERE 66 + + col1 * + col1 NOT BETWEEN + 25 AND col1 * + CAST( NULL AS SIGNED ) + + 29
----

skipif mysql # not compatible
query III rowsort label-5822
SELECT * FROM tab1 AS cor0 WHERE 66 + + col1 * + col1 NOT BETWEEN + 25 AND col1 * + CAST ( NULL AS INTEGER ) + + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - MAX( ALL 83 ) - + ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5823
SELECT - MAX ( ALL 83 ) - + ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5824
SELECT DISTINCT + col2 - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + col2 - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( col1 ) + - col1 * + 59 FROM tab1 AS cor0
----
-2726
-290
-812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT + COUNT( * ) + - 80 AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
-80

skipif mysql # not compatible
query I rowsort label-5826
SELECT + COUNT ( * ) + - 80 AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT DISTINCT + col0 + col1 DIV col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT + col0 + col1 / col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT 14 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 27 AND NULL
----

query I rowsort
SELECT - col0 + + 92 AS col2 FROM tab1 cor0
----
1
41
7

query I rowsort
SELECT - 99 + col0 AS col2 FROM tab1 AS cor0
----
-14
-48
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - col2 ) - - 37 )
----

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab1
----
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 44 + + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT SUM( - 86 ) + + 15 DIV + COUNT( DISTINCT + col2 ) col1 FROM tab1
----
-253

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5834
SELECT SUM ( - 86 ) + + 15 / + COUNT ( DISTINCT + col2 ) col1 FROM tab1
----
-253

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL ( + - ( - col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + SUM( + + 24 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5837
SELECT + SUM ( + + 24 ) FROM tab2
----
72

query III rowsort
SELECT * FROM tab2 WHERE NOT + 68 < + 98
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5839
SELECT DISTINCT + AVG ( col1 ) * SUM( - col1 - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + AVG ( col1 ) * SUM ( - col1 - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + 2 FROM tab1
----
102
170
182

query I rowsort
SELECT + 95 * + col1 FROM tab1
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - 40 * + + COUNT( * ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - 40 * + + COUNT ( * ) FROM tab1
----
-120

query I rowsort
SELECT ALL - + 42 AS col2 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( - ( + col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT - - CAST( NULL AS SIGNED ) * - COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5845
SELECT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT - COUNT( * ) + 66 AS col1 FROM tab2 WHERE NOT + + col2 >= NULL
----
66

skipif mysql # not compatible
query I rowsort label-5846
SELECT - COUNT ( * ) + 66 AS col1 FROM tab2 WHERE NOT + + col2 >= NULL
----
66

query I rowsort
SELECT DISTINCT - col0 * 18 FROM tab0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + + 2 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5848
SELECT + + 2 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT - ( - + ( + col2 ) ) * - 18 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5850
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5850
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( 93 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5852
SELECT * FROM tab1 cor0 WHERE NOT - 18 * - 41 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5852
SELECT * FROM tab1 cor0 WHERE NOT - 18 * - 41 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - ( - - ( 82 ) ) FROM tab1 cor0
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 59 * + - COUNT( * ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-5854
SELECT 59 * + - COUNT ( * ) FROM tab2
----
-177

onlyif mysql # DIV for integer division: 
query II rowsort label-5855
SELECT col0 DIV col1, - ( - col2 ) - + col2 AS col2 FROM tab1
----
1
0
17
0
3
0

skipif mysql # not compatible
query II rowsort label-5855
SELECT col0 / col1, - ( - col2 ) - + col2 AS col2 FROM tab1
----
1
0
17
0
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL + 33 + - - 77 * + COUNT( ALL + col1 ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + 33 + - - 77 * + COUNT ( ALL + col1 ) FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT - 7 + - 65 * - 3 * + COUNT( * ) FROM tab0
----
578

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - 7 + - 65 * - 3 * + COUNT ( * ) FROM tab0
----
578

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN col1 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT + 79 + + - COUNT( * ) FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + 79 + + - COUNT ( * ) FROM tab1 cor0
----
76

query I rowsort
SELECT DISTINCT + col2 * 96 + col0 * - - 94 FROM tab0 cor0
----
18622
5922
9138

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT ALL 10 DIV - col1 + col1 + - + col2 * 40 FROM tab0 AS cor0
----
-1799
-379
-3969

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL 10 / - col1 + col1 + - + col2 * 40 FROM tab0 AS cor0
----
-1799
-379
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - COUNT( - + 30 ) + + SUM( ALL - col2 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5862
SELECT - COUNT ( - + 30 ) + + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - ( + col0 ) + + col1 + 58 AS col0 FROM tab1
----
-22
14
21

query I rowsort
SELECT ALL + - 6 - 72 AS col0 FROM tab2 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT - CAST( - 0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT - CAST ( - 0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL - 95 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0, CAST( NULL AS SIGNED ) * + 97 )
----

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL - 95 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0, CAST ( NULL AS INTEGER ) * + 97 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - ( + + col2 ) + + 35 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - 23 * - col0 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - 23 * - col0 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5870
SELECT ALL - col2, col2 * CAST( 75 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
750
-47
3525
-99
7425

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL - col2, col2 * CAST ( 75 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
750
-47
3525
-99
7425

onlyif mysql # DIV for integer division: 
query II rowsort label-5871
SELECT DISTINCT - col0, col0 DIV + + col0 AS col0 FROM tab2
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
query II rowsort label-5871
SELECT DISTINCT - col0, col0 / + + col0 AS col0 FROM tab2
----
-46
1
-64
1
-75
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + 35 - - - 5 IN ( 17 * 86 )
----

query I rowsort
SELECT + - 10 * - col1 * + col0 * col1 AS col0 FROM tab1 WHERE NOT + - 17 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL < ( NULL ) )
----

query I rowsort
SELECT DISTINCT + 3 * - 69 / - AVG ( DISTINCT col2 * col0 ) AS col1 FROM tab1 WHERE NOT ( + + 50 ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT 38 * + - col1 * - + col2 FROM tab0
----
144666
3762
7980

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + - col2 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + + ( - - col0 ) / + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col2 - + col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT DISTINCT + MAX( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT col0 IN ( - + col1 / + - 14 + + + col1 )
----
-23

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT col0 IN ( - + col1 / + - 14 + + + col1 )
----
-23

query II rowsort
SELECT DISTINCT - + col2 AS col1, col1 + + col0 * - - col1 FROM tab2 AS cor0
----
-23
2397
-40
5005
-58
5092

query I rowsort
SELECT ALL 89 AS col1 FROM tab0 cor0 WHERE NOT + col0 - - col2 IS NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT + COUNT( * ), + 5 AS col2 FROM tab2 cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-5883
SELECT + COUNT ( * ), + 5 AS col2 FROM tab2 cor0
----
3
5

query II rowsort
SELECT - - col0 AS col0, - col0 + - - 98 - + + col2 FROM tab2 AS cor0
----
46
29
64
-6
75
-35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IN ( + 70 )
----

query I rowsort
SELECT DISTINCT col0 * - 52 AS col0 FROM tab2
----
-2392
-3328
-3900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5887
SELECT ALL - ( - 89 ) / - COUNT( * ) * + 74 + + ( COUNT( * ) ) + ( COUNT( * ) + CAST( NULL AS DECIMAL ) ) * ( + 88 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - ( - 89 ) / - COUNT ( * ) * + 74 + + ( COUNT ( * ) ) + ( COUNT ( * ) + CAST ( NULL AS REAL ) ) * ( + 88 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL + CAST( NULL AS SIGNED ) * + 36 * + COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5888
SELECT ALL + CAST ( NULL AS INTEGER ) * + 36 * + COUNT ( * ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5889
SELECT * FROM tab1 WHERE NOT ( + + 48 + 42 ) NOT BETWEEN ( 69 ) AND CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5889
SELECT * FROM tab1 WHERE NOT ( + + 48 + 42 ) NOT BETWEEN ( 69 ) AND CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT + - CAST( 57 AS SIGNED ) AS col2 FROM tab0 cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-5890
SELECT + - CAST ( 57 AS INTEGER ) AS col2 FROM tab0 cor0
----
-57
-57
-57

query I rowsort
SELECT - - col2 * + ( - col0 ) + + ( - 50 ) AS col1 FROM tab0 AS cor0
----
-755
-920
-9653

query II rowsort
SELECT ALL 54, col0 * - 40 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 * - 32 + 13 AS col1, - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5894
SELECT + COUNT( * ) DIV + MIN( - 53 ) * - 35 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT + COUNT ( * ) / + MIN ( - 53 ) * - 35 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) * 72 col2 FROM tab0 AS cor0
----
-1512
-5832
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5895
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) * 72 col2 FROM tab0 AS cor0
----
-1512
-5832
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT DISTINCT + 9 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col0 / - 24 * + + col1 * 18 * - col1 <= - col2
----

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + 9 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 / - 24 * + + col1 * 18 * - col1 <= - col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT - MAX( + 91 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT - MAX ( + 91 ) AS col0 FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT 0 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT 0 * COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT + 78 * - col2 AS col0 FROM tab1
----
-4602
-5304
-7488

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 = - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * + - col0 col2 FROM tab1
----
-3723
-6205
-6643

query I rowsort
SELECT - col1 + - 63 FROM tab1
----
-110
-68
-77

query I rowsort
SELECT DISTINCT + col0 * - col0 * + ( - col2 ) FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab1 WHERE - 44 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5906
SELECT DISTINCT - ( - + CAST( - - 1 AS SIGNED ) ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( - - col2 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT - ( - + CAST ( - - 1 AS INTEGER ) ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( - - col2 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT + - MAX( + 66 ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + - MAX ( + 66 ) AS col2 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 6 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT 30 * + - ( + COUNT( DISTINCT 93 ) ) * 94 col0 FROM tab2
----
-2820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5909
SELECT DISTINCT 30 * + - ( + COUNT ( DISTINCT 93 ) ) * 94 col0 FROM tab2
----
-2820

query II rowsort
SELECT ALL - col1 * - - col0 AS col0, 56 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1215
56
-1827
56
-97
56

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 45 NOT BETWEEN + col1 AND + 89
----
91
47
68

query I rowsort
SELECT + - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL - 54 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-54
-54
-54

query I rowsort
SELECT + 7 AS col0 FROM tab1 cor0
----
7
7
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5917
SELECT + ( + + col0 ) * 70 + + col0 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT + ( + + col0 ) * 70 + + col0 * - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL - COUNT( - 93 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - COUNT ( - 93 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT DISTINCT + - col1 + - col2 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT + - col1 + - col2 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 = - + 56 - - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 73 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col1 * + + col1 + + 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT + CAST( 88 AS SIGNED ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + CAST ( 88 AS INTEGER ) AS col1 FROM tab1
----
88

query I rowsort
SELECT DISTINCT - 24 FROM tab1 WHERE + col0 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL MAX( ALL col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL MAX ( ALL col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 11 + col0 <= - col2 - + col2
----

query I rowsort
SELECT ALL + - col0 + - col2 AS col1 FROM tab1 WHERE NOT + col2 + + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT MIN( - col0 ) * 13 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1180

skipif mysql # not compatible
query I rowsort label-5928
SELECT MIN ( - col0 ) * 13 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, col0 * - col1 col0 FROM tab0 AS cor0
----
-1
-97
-21
-1827
-81
-1215

query I rowsort
SELECT + col0 + + 56 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 47 * + col2 * 92 NOT IN ( - col0 - - + 31 + + col2 * - + col2 * - - 69 * - col1 )
----

query II rowsort
SELECT col0 AS col2, 27 FROM tab0
----
15
27
87
27
97
27

query I rowsort
SELECT + - 33 + + 50 FROM tab1 cor0
----
17
17
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= + col1 + - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) + MIN( - 70 ) AS col1 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) + MIN ( - 70 ) AS col1 FROM tab1 AS cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT + col2 + - col0 DIV + + 78 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5935
SELECT + col2 + - col0 / + + 78 AS col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT - col0 * + col2, + col0 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT + + CAST( NULL AS SIGNED ) + 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT + + CAST ( NULL AS INTEGER ) + 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT - MIN( DISTINCT 24 ) + + SUM( DISTINCT 98 ) AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT - MIN ( DISTINCT 24 ) + + SUM ( DISTINCT 98 ) AS col0 FROM tab0 AS cor0
----
74

query I rowsort
SELECT ALL - ( - 21 ) AS col2 FROM tab2 AS cor0
----
21
21
21

query II rowsort
SELECT DISTINCT - col1 AS col0, + col2 AS col0 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - col0 <> - ( - 0 )
----

query I rowsort
SELECT - 27 * + 79 * col1 AS col2 FROM tab2
----
-108783
-142911
-164241

query II rowsort
SELECT DISTINCT col2 * - - col1 AS col1, 83 * + - col2 + + ( + - col2 ) FROM tab0
----
210
-840
3807
-3948
99
-8316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5944
SELECT + COUNT( * ) / - + CAST( NULL AS SIGNED ) * - 0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * - 0 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + COUNT( ALL + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5945
SELECT + COUNT ( ALL + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) + - MAX( DISTINCT + - ( col2 ) ) * + COUNT( DISTINCT - 21 ) + - - 98 + - 31 AS col1 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) + - MAX ( DISTINCT + - ( col2 ) ) * + COUNT ( DISTINCT - 21 ) + - - 98 + - 31 AS col1 FROM tab1
----
117

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + col2 IS NULL
----

query I rowsort
SELECT ALL + 44 + + col0 AS col2 FROM tab0
----
131
141
59

query II rowsort
SELECT - col0 * col2 AS col1, 42 AS col0 FROM tab0
----
-705
42
-870
42
-9603
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT MIN( DISTINCT - col0 ) - 9 AS col2 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5950
SELECT MIN ( DISTINCT - col0 ) - 9 AS col2 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL + 22 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1125
-195
-359

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + CAST( NULL AS SIGNED ) - + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + CAST ( NULL AS INTEGER ) - + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL - MIN( DISTINCT - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - MIN ( DISTINCT - col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT DISTINCT 33 FROM tab1 WHERE NULL >= col2 * - + col1 - - col2
----

query I rowsort
SELECT - col1 + + - col2 AS col2 FROM tab2
----
-117
-125
-74

query II rowsort
SELECT DISTINCT + - col2 AS col2, + col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5958
SELECT ALL + - col0 * CAST( NULL AS SIGNED ) + + col0 * - - 69, + col1 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
196
NULL
2209
NULL
25

skipif mysql # not compatible
query II rowsort label-5958
SELECT ALL + - col0 * CAST ( NULL AS INTEGER ) + + col0 * - - 69, + col1 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
196
NULL
2209
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT 51 + + MAX( 61 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT 51 + + MAX ( 61 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - 14 * - col0 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NOT 74 NOT BETWEEN - col2 AND 97
----
59
68
96

query II rowsort
SELECT - col1, 52 + - + col1 AS col0 FROM tab0 WHERE NOT - 18 IS NULL
----
-1
51
-21
31
-81
-29

query I rowsort
SELECT DISTINCT col0 * - - 5 AS col2 FROM tab2
----
230
320
375

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + 65 + + col0 FROM tab0 AS cor0
----
152
162
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT ALL MAX( + + col2 ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-5966
SELECT ALL MAX ( + + col2 ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT + + ( + + COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5967
SELECT + + ( + + COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT col0, 64 FROM tab0 AS cor0
----
15
64
87
64
97
64

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col2 + - - col1 * col1 FROM tab2 AS cor0
----
3130
7529
7853

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + ( - 27 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 * + - 8 * - - col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 AS col2, - col1 col1 FROM tab2 cor0
----
74
-51
74
-67
74
-77

query I rowsort
SELECT 79 + + 1 FROM tab1 AS cor0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - + col2 OR + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 + + - col2 + - + 36, + col0 - 19 AS col0 FROM tab0 AS cor0
----
-130
-4
-234
78
-56
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT ( + MIN( DISTINCT - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT ( + MIN ( DISTINCT - col2 ) ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE - - col0 < + col0
----

query II rowsort
SELECT ALL + col2 AS col1, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5981
SELECT CAST( + 91 AS SIGNED ) DIV + + 59 + 42 + 53 FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5981
SELECT CAST ( + 91 AS INTEGER ) / + + 59 + 42 + 53 FROM tab1
----
96
96
96

query I rowsort
SELECT DISTINCT ( ( - 66 ) ) AS col2 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - COUNT( * ) + - + COUNT( * ) - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5983
SELECT - COUNT ( * ) + - + COUNT ( * ) - COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT ALL - 1 + - + col0 FROM tab1
----
-52
-86
-92

query II rowsort
SELECT + - col2, 10 + - col2 AS col0 FROM tab0 AS cor0
----
-10
0
-47
-37
-99
-89

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 13 * + 73 * + 52 - 3, col2 + + col1 col0 FROM tab2 cor0
----
-49351
117
-49351
125
-49351
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 - + - col1 * col0 col1 FROM tab0
----
122
1240
1852

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * - 96 FROM tab2 WHERE + - 22 + - col0 BETWEEN NULL AND - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - 96 FROM tab2 WHERE + - 22 + - col0 BETWEEN NULL AND - - col0
----
0

query I rowsort
SELECT - col0 * - col0 * - col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT col0 * - 71 FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT + + col2 * 99 FROM tab1 cor0
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT ALL - col1 DIV col0 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5995
SELECT ALL - col1 / col0 col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - + 42 * + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1932
2688
3150

query I rowsort
SELECT ALL - + col2 + + 53 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5998
SELECT - col1 AS col1, - ( - col2 ) + col0 DIV - 82 AS col1 FROM tab0
----
-1
98
-21
9
-81
47

skipif mysql # not compatible
query II rowsort label-5998
SELECT - col1 AS col1, - ( - col2 ) + col0 / - 82 AS col1 FROM tab0
----
-1
98
-21
9
-81
47

query I rowsort
SELECT col1 * - + 2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * 42 * ( - 68 ), + col0 col0 FROM tab0
----
134232
15
282744
97
28560
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 + col2 FROM tab2
----
51
69
67
133
77
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT + COUNT( * ) * - 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + COUNT ( * ) * - 51 FROM tab1
----
-153

query I rowsort
SELECT ALL - 68 + - - 64 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT COUNT( * ) AS col1, 83 AS col0 FROM tab1
----
3
83

skipif mysql # not compatible
query II rowsort label-6004
SELECT COUNT ( * ) AS col1, 83 AS col0 FROM tab1
----
3
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6005
SELECT COUNT( * ) AS col1, + 6 AS col2 FROM tab0
----
3
6

skipif mysql # not compatible
query II rowsort label-6005
SELECT COUNT ( * ) AS col1, + 6 AS col2 FROM tab0
----
3
6

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT SUM( ALL col1 ) * - + 69 AS col0 FROM tab1 AS cor0
----
-4554

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT SUM ( ALL col1 ) * - + 69 AS col0 FROM tab1 AS cor0
----
-4554

query I rowsort
SELECT - + 73 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 * - 84 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT DISTINCT + 69 + - CAST( ( - col2 ) AS SIGNED ) * col2 FROM tab1 AS cor0
----
3550
4693
9285

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + 69 + - CAST ( ( - col2 ) AS INTEGER ) * col2 FROM tab1 AS cor0
----
3550
4693
9285

query I rowsort
SELECT DISTINCT - col1 + + + 85 * + + 44 FROM tab0 AS cor0
----
3659
3719
3739

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL 89 * 12 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1065

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL 89 * 12 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1065

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT + + MAX( ALL col2 ) * COUNT( * ) + - 13 + - + COUNT( ALL - col0 ) FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT + + MAX ( ALL col2 ) * COUNT ( * ) + - 13 + - + COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - + COUNT( ALL - col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - + COUNT ( ALL - col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - - 3 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT col2 * col0 - + 11 DIV - 52 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT col2 * col0 - + 11 / - 52 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT ALL COUNT( * ), 79 AS col0 FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-6018
SELECT ALL COUNT ( * ), 79 AS col0 FROM tab2
----
3
79

query I rowsort
SELECT - ( - + 47 ) FROM tab0
----
47
47
47

query I rowsort
SELECT 33 * + - ( - + col2 ) FROM tab1
----
1947
2244
3168

query III rowsort
SELECT * FROM tab2 WHERE + - ( + col2 ) > col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6023
SELECT 41 - + COUNT( * ) * + + COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0
----
32
3

skipif mysql # not compatible
query II rowsort label-6023
SELECT 41 - + COUNT ( * ) * + + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0
----
32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT - COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6024
SELECT - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT 33 * + - col0 * col0 + - 65 AS col1 FROM tab2
----
-135233
-185690
-69893

query I rowsort
SELECT col0 - - 91 AS col2 FROM tab0
----
106
178
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL CAST( + 70 AS SIGNED ) + - col1 * col2 FROM tab1 cor0
----
-1274
-225
-3126

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL CAST ( + 70 AS INTEGER ) + - col1 * col2 FROM tab1 cor0
----
-1274
-225
-3126

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT DISTINCT + - 53 - - 87 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
208

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT + - 53 - - 87 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
208

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT ALL col0 DIV - - 21 FROM tab1 AS cor0 WHERE 39 IS NOT NULL
----
2
4
4

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL col0 / - - 21 FROM tab1 AS cor0 WHERE 39 IS NOT NULL
----
2
4
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 31 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6031
SELECT 89, + CAST( NULL AS SIGNED ) + 97 col2 FROM tab0
----
89
NULL
89
NULL
89
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6031
SELECT 89, + CAST ( NULL AS INTEGER ) + 97 col2 FROM tab0
----
89
NULL
89
NULL
89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT ALL + CAST( + col1 AS SIGNED ) * - col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL + CAST ( + col1 AS INTEGER ) * - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * + col0 - ( - ( 29 ) ), - 77 )
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col1 * - + 16
----

query II rowsort
SELECT - col1 * - + col0 * - - col1 * col2, - col0 * + - col0 AS col2 FROM tab1 AS cor0
----
125375
7225
13669292
8281
959616
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT - MAX( + col0 ) * ( - 79 ) AS col2 FROM tab0 AS cor0
----
7663

skipif mysql # not compatible
query I rowsort label-6038
SELECT - MAX ( + col0 ) * ( - 79 ) AS col2 FROM tab0 AS cor0
----
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT + - ( + MAX( - col0 ) ) * - ( 57 ) FROM tab2 AS cor0
----
-2622

skipif mysql # not compatible
query I rowsort label-6039
SELECT + - ( + MAX ( - col0 ) ) * - ( 57 ) FROM tab2 AS cor0
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL + + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6041
SELECT + col1, + col0 * CAST( - ( ( col1 ) ) AS SIGNED ) * + 82 AS col0 FROM tab2 AS cor0
----
51
-192372
67
-412050
77
-404096

skipif mysql # not compatible
query II rowsort label-6041
SELECT + col1, + col0 * CAST ( - ( ( col1 ) ) AS INTEGER ) * + 82 AS col0 FROM tab2 AS cor0
----
51
-192372
67
-412050
77
-404096

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6042
SELECT * FROM tab1 AS cor0 WHERE NOT + 59 + + + col0 + + - 34 - - + 8 + + + 32 / col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6042
SELECT * FROM tab1 AS cor0 WHERE NOT + 59 + + + col0 + + - 34 - - + 8 + + + 32 / col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT COUNT( * ) col0, - 85 FROM tab1 AS cor0
----
3
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6043
SELECT COUNT ( * ) col0, - 85 FROM tab1 AS cor0
----
3
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL + COUNT( ALL - col0 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + COUNT ( ALL - col0 ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL col0 * 45 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT COUNT( * ) * - 54 AS col2 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT COUNT ( * ) * - 54 AS col2 FROM tab0
----
-162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT ALL - ( - - col1 ) DIV - + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - ( - - col1 ) / - + col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 57 <= + - 81
----

query I rowsort
SELECT - + col0 * + + col0 + 66 AS col1 FROM tab2 cor0
----
-2050
-4030
-5559

query I rowsort
SELECT + - 3 + + + col1 FROM tab2 AS cor0 WHERE - ( col2 ) IS NOT NULL
----
48
64
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + + col0 col2 FROM tab1 cor0
----
131
165
171

query II rowsort
SELECT col1 + + - 78, col2 AS col2 FROM tab1 AS cor0
----
-31
68
-64
96
-73
59

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - col0 * ( + + col2 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + + 8 + - col2 FROM tab2 AS cor0
----
-15
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + COUNT( * ) - + 74 AS col0 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6057
SELECT + COUNT ( * ) - + 74 AS col0 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT 66 - - + col1 AS col2 FROM tab0 cor0
----
147
67
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + COUNT( * ) - + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT + COUNT ( * ) - + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL - col0 * - col1 + - - 29 + - - col0 AS col0 FROM tab0 AS cor0
----
1259
1943
223

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT - col0 DIV + 27 + col2 AS col0 FROM tab1 AS cor0
----
56
65
95

skipif mysql # not compatible
query I rowsort label-6062
SELECT - col0 / + 27 + col2 AS col0 FROM tab1 AS cor0
----
56
65
95

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 68 * + ( - col1 ) * + 9 + 17 > NULL AND NULL BETWEEN - 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6064
SELECT + - 29 + 4 * COUNT( * ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-17
3

skipif mysql # not compatible
query II rowsort label-6064
SELECT + - 29 + 4 * COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col0 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - 18 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL + COUNT( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + COUNT ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col0 - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - 94
----

query I rowsort
SELECT - 28 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT COUNT( * ) - - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6070
SELECT COUNT ( * ) - - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + + ( + + col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + col2 * - col1 * col1 - col0 FROM tab1 AS cor0
----
-150303
-1560
-18867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 67 col1, - col0 FROM tab0 AS cor0
----
67
-15
67
-87
67
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT ALL - MIN( - - col1 ) * - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - MIN ( - - col1 ) * - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
150

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 > + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + 48 AS col2 FROM tab2
----
2208
3072
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT ALL col0 DIV - col2 FROM tab1 WHERE NULL IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL col0 / - col2 FROM tab1 WHERE NULL IS NULL
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT COUNT( * ), - 93 AS col0 FROM tab1
----
3
-93

skipif mysql # not compatible
query II rowsort label-6078
SELECT COUNT ( * ), - 93 AS col0 FROM tab1
----
3
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 col2 FROM tab0 WHERE - 6 * ( + col2 ) IS NOT NULL
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT DISTINCT 50 DIV - - col0 AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT 50 / - - col0 AS col1 FROM tab0
----
0
3

query II rowsort
SELECT DISTINCT - col1, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT + 21 AS col1, col0 FROM tab2
----
21
46
21
64
21
75

query I rowsort
SELECT DISTINCT - 73 + - col1 FROM tab2
----
-124
-140
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6084
SELECT DISTINCT COUNT( * ), MIN( + + 79 ) DIV + + 58 col0 FROM tab0 AS cor0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6084
SELECT DISTINCT COUNT ( * ), MIN ( + + 79 ) / + + 58 col0 FROM tab0 AS cor0
----
3
1

query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 + col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
-1024
5731
9410

query I rowsort
SELECT + col2 + + col0 * - col0 FROM tab0 AS cor0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-18

skipif mysql # not compatible
query I rowsort label-6087
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT COUNT( * ) * - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT COUNT ( * ) * - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( col0 >= NULL )
----

query I rowsort
SELECT - col1 * + - col1 + - + ( + col2 ) FROM tab1
----
-34
100
2141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT + col1 + + CAST( - 82 AS SIGNED ) FROM tab1
----
-35
-68
-77

skipif mysql # not compatible
query I rowsort label-6091
SELECT + col1 + + CAST ( - 82 AS INTEGER ) FROM tab1
----
-35
-68
-77

query I rowsort
SELECT + 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col2 * - 57 + + 81 AS col2 FROM tab2 cor0
----
-145839
-247869
-60225

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT DISTINCT - 45 + - SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT - 45 + - SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 41 - + + col1 + + + col1 - col2 * + - col0 AS col1 FROM tab1
----
4937
5056
6229

query II rowsort
SELECT 56 - + ( + + col2 ) AS col2, - ( col2 ) AS col0 FROM tab0
----
-43
-99
46
-10
9
-47

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN - + ( - 42 ) + + col2 * - col0 AND + ( + col1 )
----
-196
-2209
-25

query I rowsort
SELECT - 79 * col0 FROM tab1 cor0
----
-4029
-6715
-7189

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6100
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-6100
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col0 <= NULL
----

query II rowsort
SELECT col0, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6102
SELECT DISTINCT + - 10 * 63 * + - CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6102
SELECT DISTINCT + - 10 * 63 * + - CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col1 / 11 + - 23 * + 27 * + 23 + 47 AND ( - col2 - + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6104
SELECT CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT CAST ( NULL AS INTEGER ) * + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT DISTINCT COUNT( - 41 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT COUNT ( - 41 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col2 * - 40 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6106
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col2 * - 40 <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT DISTINCT ( COUNT( * ) ), 3 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6107
SELECT DISTINCT ( COUNT ( * ) ), 3 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL col0 * - - ( - - ( - 38 ) ) FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT 63 * + + col2 AS col0 FROM tab0
----
2961
6237
630

query I rowsort
SELECT DISTINCT col0 + col1 * + ( - col2 ) FROM tab0 cor0
----
-123
-2
-3792

query I rowsort
SELECT DISTINCT 81 * col2 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

query I rowsort
SELECT - + 22 + col1 AS col0 FROM tab1 AS cor0
----
-17
-8
25

query I rowsort
SELECT ALL - col1 * + - col0 * + 32 FROM tab1 AS cor0
----
13600
136864
22848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 + 4 col2 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT col1 - - - col2 FROM tab2
----
28
37
9

query III rowsort
SELECT * FROM tab2 WHERE 15 * col2 * + ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT DISTINCT + 56 * + col2 * - CAST( NULL AS SIGNED ) + - col0 + - col1 + col1 * + col1 * + 97 / - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT + 56 * + col2 * - CAST ( NULL AS INTEGER ) + - col0 + - col1 + col1 * + col1 * + 97 / - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT + COUNT( * ) * + 38 + - 96 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + COUNT ( * ) * + 38 + - 96 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL SUM( ALL + + col1 ) + - 74 AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL SUM ( ALL + + col1 ) + - 74 AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT - ( + + col2 ) - + col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT col2 - - ( 73 ) AS col1 FROM tab1 AS cor0
----
132
141
169

query II rowsort
SELECT - - col2 * col2 + col1, + 85 FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + + col2 AS col2 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - col0
----

query I rowsort
SELECT - - col1 + col2 AS col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + MIN( + col1 ) + 72 col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6125
SELECT + MIN ( + col1 ) + 72 col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL col1 + + - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - + col2 + 90 AS col1 FROM tab1 AS cor0
----
-6
22
31

query I rowsort
SELECT - col0 + col0 + + + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 * + col2 / 19 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6130
SELECT - CAST( NULL AS DECIMAL ) * - col1 AS col2, - 67 * col0 AS col0 FROM tab0
----
NULL
-1005
NULL
-5829
NULL
-6499

skipif mysql # not compatible
query II rowsort label-6130
SELECT - CAST ( NULL AS REAL ) * - col1 AS col2, - 67 * col0 AS col0 FROM tab0
----
NULL
-1005
NULL
-5829
NULL
-6499

query I rowsort
SELECT - 91 * - col0 * - 64 AS col0 FROM tab0
----
-506688
-564928
-87360

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 52 + + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + - + 97 AS col1 FROM tab2 AS cor0
----
-148
-164
-174

query I rowsort
SELECT ALL ( - ( - + col1 ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - - col0 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + - - 33 + + 85 / + col1 IS NULL
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6136
SELECT * FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6136
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + + ( 46 ) AS col2 FROM tab2 AS cor0
----
-1058
-1840
-2668

query II rowsort
SELECT col2 AS col0, 23 * 61 AS col1 FROM tab2 AS cor0
----
23
1403
40
1403
58
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + COUNT( * ) * 79 AS col2 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-6139
SELECT + COUNT ( * ) * 79 AS col2 FROM tab2
----
237

query II rowsort
SELECT ALL - ( - + col1 ) AS col0, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - ( col0 ) + col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 * - 80 + + col2 * - col1 FROM tab1
----
2736
4084
6505

query I rowsort
SELECT DISTINCT ( + col0 ) + - - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL - SUM( DISTINCT - - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - SUM ( DISTINCT - - col2 ) FROM tab2
----
-121

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + 78 ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + + 50 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ALL 96 + col2 AS col1 FROM tab0
----
106
143
195

query I rowsort
SELECT DISTINCT - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6150
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN - - ( - CAST( NULL AS SIGNED ) ) + - 90 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6150
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN - - ( - CAST ( NULL AS INTEGER ) ) + - 90 AND NULL
----

query I rowsort
SELECT - col0 * col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT - col1 AS col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL - col0 + + col0 FROM tab2 cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col1 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6155
SELECT CAST( NULL AS SIGNED ) AS col1, 36 AS col0 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
query II rowsort label-6155
SELECT CAST ( NULL AS INTEGER ) AS col1, 36 AS col0 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

query I rowsort
SELECT 64 * + ( - - ( col1 ) ) + + 86 + - col2 + - - col1 * col2 * - 5 - col2 + 76 * + - 6 FROM tab1 AS cor0
----
-13478
-1643
-6386

query II rowsort
SELECT ALL col2 AS col1, + 20 * + col2 FROM tab0
----
10
200
47
940
99
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT + CAST( + 47 AS SIGNED ) AS col0 FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-6158
SELECT + CAST ( + 47 AS INTEGER ) AS col0 FROM tab2
----
47
47
47

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL < + col2 * + + 57 * col2
----

query I rowsort
SELECT DISTINCT - 3 * 91 AS col0 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL - MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 51 / 67 + + col1 NOT BETWEEN + - 22 AND - 54
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6165
SELECT - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6166
SELECT ( - - 88 ) * - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-6166
SELECT ( - - 88 ) * - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
264

query I rowsort
SELECT ALL 19 * 16 AS col2 FROM tab2 AS cor0
----
304
304
304

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) FROM tab1
----
2601
7225
8281

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * ( + - col0 ) / + col1 * - col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT DISTINCT - ( - col1 ) + - 98 * - - col2 * - col2 * 84 DIV col2 AS col0 FROM tab0 cor0
----
386985
814969
82341

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT - ( - col1 ) + - 98 * - - col2 * - col2 * 84 / col2 AS col0 FROM tab0 cor0
----
386985
814969
82341

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT DISTINCT + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT + - col2 DIV - 30 AS col2 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6173
SELECT + - col2 / - 30 AS col2 FROM tab1 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT DISTINCT - - 13 + - COUNT( * ) DIV 17 col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6174
SELECT DISTINCT - - 13 + - COUNT ( * ) / 17 col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 - - + 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 47 + + + 47 FROM tab1
----
94
94
94

query I rowsort
SELECT DISTINCT - 70 + + 15 AS col2 FROM tab0
----
-55

query I rowsort
SELECT ALL 13 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT - 1 * - - ( - col2 ) - - + ( + col0 ) * + - col1, col2 AS col2 FROM tab0 AS cor0
----
-1168
47
-1817
10
2
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + col2 + - - col1 * 94 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT DISTINCT ( COUNT( * ) ) * + 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT ( COUNT ( * ) ) * + 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 * - 88 col2, - 81 FROM tab0 AS cor0
----
-5104
-81
-5104
-81
-5104
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 col2 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL - col2 - + col0 FROM tab0 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT MIN( DISTINCT + + col1 ) * 23 * + SUM( ALL + - 92 ) AS col0 FROM tab0
----
-6348

skipif mysql # not compatible
query I rowsort label-6186
SELECT MIN ( DISTINCT + + col1 ) * 23 * + SUM ( ALL + - 92 ) AS col0 FROM tab0
----
-6348

query I rowsort
SELECT 33 * 67 FROM tab0
----
2211
2211
2211

query I rowsort
SELECT col2 * 33 AS col0 FROM tab0
----
1551
3267
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 76 col1 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT - + COUNT( * ) AS col0, 97 * + 95 AS col2 FROM tab2 AS cor0
----
-3
9215

skipif mysql # not compatible
query II rowsort label-6190
SELECT - + COUNT ( * ) AS col0, 97 * + 95 AS col2 FROM tab2 AS cor0
----
-3
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT COUNT( * ) + - - SUM( ALL 4 ) * COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6191
SELECT COUNT ( * ) + - - SUM ( ALL 4 ) * COUNT ( * ) FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6192
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 1 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col2 col1, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT DISTINCT - ( - - 84 ) FROM tab1 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT ALL - - col2, - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - col1 * - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-6195
SELECT ALL - - col2, - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - col1 * - CAST ( + - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6196
SELECT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6196
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + 67 AS col0 FROM tab1 AS cor0
----
114
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT + 6 + - COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT + 6 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - + ( + + 72 ) * - + col1 + col2 FROM tab0 AS cor0
----
1522
171
5879

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 25 < ( + 24 ) * + col0 + ( - col2 ) + - 85 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT 98 * + MIN( DISTINCT + - col2 ) FROM tab1
----
-9408

skipif mysql # not compatible
query I rowsort label-6202
SELECT 98 * + MIN ( DISTINCT + - col2 ) FROM tab1
----
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + SUM( + col2 ) * COUNT( * ) AS col1 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-6203
SELECT + SUM ( + col2 ) * COUNT ( * ) AS col1 FROM tab2
----
363

query I rowsort
SELECT - - col0 FROM tab1 WHERE - - 94 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT - col0 BETWEEN + + 10 AND NULL
----
-51
-85
-91

query I rowsort
SELECT + col1 - 26 * - ( - col2 ) FROM tab2
----
-1441
-547
-963

query I rowsort
SELECT col0 * - col0 + - col0 AS col1 FROM tab0 WHERE + ( 80 ) * - col2 IS NOT NULL
----
-240
-7656
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL CAST( NULL AS SIGNED ) + + col1 * + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 * + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL - 37 * + - COUNT( * ) + - COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - 37 * + - COUNT ( * ) + - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
111

query I rowsort
SELECT + - col1 + - 65 * + + col2 AS col0 FROM tab1 AS cor0
----
-3840
-4467
-6254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6211
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( - col2 ) col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ( + - col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6214
SELECT + 65 AS col2, + col1 DIV + 69 FROM tab1 AS cor0
----
65
0
65
0
65
0

skipif mysql # not compatible
query II rowsort label-6214
SELECT + 65 AS col2, + col1 / + 69 FROM tab1 AS cor0
----
65
0
65
0
65
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( - col2 ) + - 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT + 35 / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT + 35 / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT COUNT( - col1 ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT COUNT ( - col1 ) * COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT ALL - 53 * + col2 * + - col1 AS col1 FROM tab2
----
163240
205958
62169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT SUM( DISTINCT - - CAST( + 14 AS SIGNED ) ) AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6219
SELECT SUM ( DISTINCT - - CAST ( + 14 AS INTEGER ) ) AS col2 FROM tab1
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 67 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 38, - col2, - + 45, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + 47 / - - 32 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + 47 / - - 32 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 25 NOT BETWEEN NULL AND + 64 * - col2 * 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6224
SELECT CAST( - + col2 AS SIGNED ), col2 * - col0 AS col2 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

skipif mysql # not compatible
query II rowsort label-6224
SELECT CAST ( - + col2 AS INTEGER ), col2 * - col0 AS col2 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

query I rowsort
SELECT DISTINCT 80 + + col1 FROM tab1
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT + COUNT( * ) AS col0 FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6226
SELECT + COUNT ( * ) AS col0 FROM tab0, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL - + COUNT( * ) + + COUNT( * ) + + COUNT( * ) * + 79 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) * + 79 FROM tab0 AS cor0
----
237

query I rowsort
SELECT + 42 - + 59 FROM tab2 AS cor0
----
-17
-17
-17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 88 + + ( + col2 )
----

query I rowsort
SELECT + - col1 + + - 17 AS col2 FROM tab1 AS cor0
----
-22
-31
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + 76 NOT BETWEEN - 55 + + - col1 + + 28 * col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - + 13 ) - + + 44 AS col0 FROM tab2
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - 20 <= col0
----

query I rowsort
SELECT - col0 * col0 * + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL 99 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 99 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 32 FROM tab2 WHERE NOT col2 + 92 > + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT DISTINCT COUNT( * ) DIV + COUNT( - 63 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6237
SELECT DISTINCT COUNT ( * ) / + COUNT ( - 63 ) col0 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT + col1 DIV - + col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6239
SELECT + col1 / - + col1 AS col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND 33
----

query I rowsort
SELECT - 14 * - + col2 AS col1 FROM tab0
----
1386
140
658

query II rowsort
SELECT - 86 AS col2, col0 AS col1 FROM tab1
----
-86
51
-86
85
-86
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT COUNT( * ) * MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6243
SELECT COUNT ( * ) * MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 col1, col2 FROM tab0 AS cor0
----
-96
10
-96
47
-96
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col0 + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT + - COUNT( * ) DIV - 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT + - COUNT ( * ) / - 23 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT + COUNT( * ) AS col0, - MIN( + col2 ) FROM tab2 AS cor0
----
3
-23

skipif mysql # not compatible
query II rowsort label-6248
SELECT + COUNT ( * ) AS col0, - MIN ( + col2 ) FROM tab2 AS cor0
----
3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6249
SELECT + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT - + col0 DIV - - ( - 10 ) FROM tab0 AS cor0
----
1
8
9

skipif mysql # not compatible
query I rowsort label-6250
SELECT - + col0 / - - ( - 10 ) FROM tab0 AS cor0
----
1
8
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 - - 66 FROM tab1 cor0 WHERE NOT col1 * + - col1 * - 32 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL - - SUM( DISTINCT ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL - - SUM ( DISTINCT ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 > - - col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT + col0 * - col2 + col1 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT - COUNT( * ) * + 71 * + 48 AS col1 FROM tab2, tab0 AS cor0
----
-30672

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - COUNT ( * ) * + 71 * + 48 AS col1 FROM tab2, tab0 AS cor0
----
-30672

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + ( - - 40 ) * + - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + ( - - 40 ) * + - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6259
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6259
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - + CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col0 ) * + col1 + 23 col2 FROM tab2 AS cor0
----
2369
4951
5048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT + col2 DIV col0 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT + col2 / col0 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT + col0 * 16 FROM tab1
----
1360
1456
816

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT - SUM( + 25 ) * 90 FROM tab0
----
-6750

skipif mysql # not compatible
query I rowsort label-6265
SELECT - SUM ( + 25 ) * 90 FROM tab0
----
-6750

query I rowsort
SELECT ALL + col1 + - 29 AS col2 FROM tab0
----
-28
-8
52

query I rowsort
SELECT DISTINCT - 12 * 27 FROM tab0
----
-324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + + 17 col2 FROM tab1
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT 15 * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT 15 * - COUNT ( * ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT DISTINCT AVG ( - 30 ) + + 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-6270
SELECT DISTINCT AVG ( - 30 ) + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * col2 FROM tab1 WHERE col1 * - col0 + col2 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 69 col2 FROM tab0
----
-1449
-5589
-69

query I rowsort
SELECT 40 * + 44 FROM tab1
----
1760
1760
1760

query I rowsort
SELECT ALL 5 * - 47 FROM tab1
----
-235
-235
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL COUNT( * ) * 21 + - 84 FROM tab0 WHERE NOT ( 81 ) <= + col1 + - col1
----
-21

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL COUNT ( * ) * 21 + - 84 FROM tab0 WHERE NOT ( 81 ) <= + col1 + - col1
----
-21

query I rowsort
SELECT 88 FROM tab1 WHERE + 71 NOT BETWEEN - col0 - 92 AND ( col1 )
----
88
88
88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6277
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) >= ( col1 + 79 )
----

skipif mysql # not compatible
query III rowsort label-6277
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS REAL ) ) >= ( col1 + 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT 64 + col0 DIV + col0 FROM tab2
----
65
65
65

skipif mysql # not compatible
query I rowsort label-6278
SELECT 64 + col0 / + col0 FROM tab2
----
65
65
65

query I rowsort
SELECT 1 + - col0 FROM tab0
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE ( col1 + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE ( col1 + col1 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT + col2 DIV - 9 FROM tab0
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-6281
SELECT + col2 / - 9 FROM tab0
----
-1
-11
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6282
SELECT DISTINCT - COUNT( * ) DIV 31 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - COUNT ( * ) / 31 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT - col2 DIV ( - ( col1 ) ) FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6283
SELECT - col2 / ( - ( col1 ) ) FROM tab1
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col0 FROM tab1 WHERE - ( - col0 ) NOT BETWEEN 40 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL - 88 + - SUM( ALL - col2 + col1 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - 88 + - SUM ( ALL - col2 + col1 ) FROM tab0
----
-35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN ( + col2 * - col1 ) AND - col1 * 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 72 * - 79 ) >= - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT MIN( - col0 ) / 72 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * - 23 AND col1 * col1 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT MIN ( - col0 ) / 72 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * - 23 AND col1 * col1 + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT ( MIN( + 28 ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT ( MIN ( + 28 ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 + + col2 )
----
NULL

query I rowsort
SELECT col0 * + 64 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * ( - col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 61 >= col1
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT ALL - 63 DIV - col1 col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6292
SELECT ALL - 63 / - col1 col1 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 79 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT col0 DIV - 25 FROM tab1
----
-2
-3

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT col0 / - 25 FROM tab1
----
-2
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL 6 AS col2 FROM tab1 WHERE NOT - col0 + ( 50 ) = ( + col0 )
----
6
6
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 * 60 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 41 - + col0 > ( NULL )
----

query I rowsort
SELECT ALL - col0 - 34 / - ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col0 FROM tab2 AS cor0 WHERE NOT NULL < - col0 * 56
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 BETWEEN NULL AND + 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6303
SELECT - MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL + - MAX( ALL col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + - MAX ( ALL col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT - + 19 DIV - ( + COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6305
SELECT - + 19 / - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT 97 * + SUM( DISTINCT - col1 ) FROM tab1
----
-6402

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT 97 * + SUM ( DISTINCT - col1 ) FROM tab1
----
-6402

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT - MIN( ALL col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6309
SELECT - MIN ( ALL col2 ) AS col2 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT - 28 * COUNT( * ) * 53 AS col1 FROM tab0
----
-4452

skipif mysql # not compatible
query I rowsort label-6310
SELECT - 28 * COUNT ( * ) * 53 AS col1 FROM tab0
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT COUNT( * ) FROM tab1 WHERE NULL >= ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6311
SELECT COUNT ( * ) FROM tab1 WHERE NULL >= ( + col1 )
----
0

query I rowsort
SELECT ALL AVG ( col2 ) AS col1 FROM tab2 WHERE + 62 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + 31 ) / - col0 = ( NULL )
----

query I rowsort
SELECT ALL - + col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT + + MIN( DISTINCT + col0 ) + ( - 66 ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6315
SELECT + + MIN ( DISTINCT + col0 ) + ( - 66 ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT + - 74 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-6316
SELECT + - 74 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-222

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col1 * - col0 NOT IN ( + 4 )
----
14
47
5

query I rowsort
SELECT + - 38 - + col0 + + col2 AS col0 FROM tab1 AS cor0
----
-61
-64
7

query II rowsort
SELECT ALL col1, 67 FROM tab0 AS cor0
----
1
67
21
67
81
67

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - 76 NOT BETWEEN NULL AND - 20 * col2 - - ( + col1 )
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT - ( + ( - 89 ) ) - - COUNT( DISTINCT + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6321
SELECT - ( + ( - 89 ) ) - - COUNT ( DISTINCT + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT + col1 + - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT col2 + + col0 + + col0 DIV col2 * col2 FROM tab0 AS cor0
----
177
196
62

skipif mysql # not compatible
query I rowsort label-6323
SELECT col2 + + col0 + + col0 / col2 * col2 FROM tab0 AS cor0
----
177
196
62

query I rowsort
SELECT + + 49 * + 86 * - + 56 + 75 + + col2 AS col0 FROM tab2 AS cor0
----
-235851
-235869
-235886

query I rowsort
SELECT ALL - + 60 - + + col1 AS col1 FROM tab2 AS cor0
----
-111
-127
-137

query I rowsort
SELECT ALL + - col1 - - col2 * 11 FROM tab0 AS cor0
----
1088
436
89

query I rowsort
SELECT DISTINCT + 41 FROM tab1 WHERE NULL <> + col0 + + col0
----

query I rowsort
SELECT ALL + 47 * + col1 + col2 AS col1 FROM tab2 WHERE NOT - col0 = + col0 + col1
----
2420
3207
3659

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT 67 DIV + 46 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6329
SELECT 67 / + 46 AS col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 16 col0 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT ALL col0 * col0 * + + col2 AS col1 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT DISTINCT - - 51 AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6333
SELECT - COUNT( * ) DIV + + COUNT( * ) + + COUNT( * ) + - COUNT( DISTINCT 28 ) DIV 87 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6333
SELECT - COUNT ( * ) / + + COUNT ( * ) + + COUNT ( * ) + - COUNT ( DISTINCT 28 ) / 87 FROM tab2 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 39 - - + 3 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL COUNT( * ) * 86 * - COUNT( * ) + - MAX( ALL ( + 94 ) + 50 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-7110

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL COUNT ( * ) * 86 * - COUNT ( * ) + - MAX ( ALL ( + 94 ) + 50 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-7110

query I rowsort
SELECT DISTINCT 35 FROM tab1 WHERE - col2 IS NOT NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT COUNT( 28 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6338
SELECT COUNT ( 28 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 * - - col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT 63 + - 3 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6341
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + COUNT( * ) + + 40 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6342
SELECT + COUNT ( * ) + + 40 FROM tab0 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT col0 + - 80 FROM tab2 WHERE NOT - col2 * + - 1 + - ( - col1 ) - col1 * col1 IS NULL
----
-16
-34
-5

query II rowsort
SELECT 81, - col1 AS col1 FROM tab2
----
81
-51
81
-67
81
-77

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - - col1 - + 39 / + 30 AND - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 69 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - + col1 * col0 NOT IN ( + 87 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6349
SELECT ALL 48 FROM tab2 AS cor0 WHERE NOT col1 < - + ( CAST( NULL AS DECIMAL ) ) + 49 + CAST( - col2 AS SIGNED ) * 28
----

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL 48 FROM tab2 AS cor0 WHERE NOT col1 < - + ( CAST ( NULL AS REAL ) ) + 49 + CAST ( - col2 AS INTEGER ) * 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT - col0 + col2 + 33 + col1 + - + 96 DIV col1 * + col0 AS col0 FROM tab0
----
-371
-9276
131

skipif mysql # not compatible
query I rowsort label-6350
SELECT - col0 + col2 + 33 + col1 + - + 96 / col1 * + col0 AS col0 FROM tab0
----
-371
-9276
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT 45 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT 45 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 84 AS col0 FROM tab2 AS cor0
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-10

query I rowsort
SELECT ALL + 12 - col0 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6358
SELECT ALL + - ( COUNT( * ) ) DIV - 96 + - 72 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL + - ( COUNT ( * ) ) / - 96 + - 72 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - + col1 - - col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6360
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + + CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6360
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + + CAST ( - - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6361
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + ( + col0 ) * + col2 * - col2 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 WHERE + 95 * + + 47 = + + col0
----

query I rowsort
SELECT ALL 30 * + 49 FROM tab0
----
1470
1470
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL MAX( ALL + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL MAX ( ALL + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL + 88 * - col0 AS col1 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 61 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - - 30 * - 58 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL - col2 * 47 DIV - + 13 FROM tab1 AS cor0
----
213
245
347

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - col2 * 47 / - + 13 FROM tab1 AS cor0
----
213
245
347

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 44 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT + - COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 > - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT - 36 DIV + 2 + - ( + COUNT( * ) ) * - 33 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
279

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 36 / + 2 + - ( + COUNT ( * ) ) * - 33 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 + - - col0 + - col1 col0 FROM tab1
----
40
47
83

query I rowsort
SELECT ALL + col1 + + 20 FROM tab0 cor0
----
101
21
41

query I rowsort
SELECT ALL ( + 16 ) AS col0 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6377
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( - - 2 AS SIGNED ) NOT IN ( - col1, + CAST( - col1 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-6377
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - - 2 AS INTEGER ) NOT IN ( - col1, + CAST ( - col1 AS INTEGER ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + COUNT( DISTINCT - 32 ) + + 44 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + COUNT ( DISTINCT - 32 ) + + 44 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + 18 * COUNT( - 78 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 18 * COUNT ( - 78 ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT 30 * ( + COUNT( * ) ) - 43 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6380
SELECT 30 * ( + COUNT ( * ) ) - 43 FROM tab2 AS cor0
----
47

query I rowsort
SELECT 10 * - + col0 AS col1 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT DISTINCT - col2 * - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - col2 * - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL - COUNT( * ) * + + COUNT( + col1 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - COUNT ( * ) * + + COUNT ( + col1 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL - 36 * + 95 FROM tab2
----
-3420
-3420
-3420

query II rowsort
SELECT DISTINCT + + col2 + + - col2 * + col1 AS col0, + ( col0 ) AS col2 FROM tab0 cor0
----
-200
87
-3760
15
0
97

query III rowsort
SELECT * FROM tab2 WHERE col2 >= + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6387
SELECT ALL - CAST( NULL AS SIGNED ) col2, COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6387
SELECT ALL - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT - 91 * + 80 + - col1 AS col2 FROM tab1 AS cor0
----
-7285
-7294
-7327

query I rowsort
SELECT ALL - - col2 + + ( - 60 ) FROM tab1 cor0
----
-1
36
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab2 cor0
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > ( - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT ALL + + CAST( - ( - 58 ) AS SIGNED ) FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + + CAST ( - ( - 58 ) AS INTEGER ) FROM tab0 AS cor0
----
58
58
58

query II rowsort
SELECT - 94, col0 AS col2 FROM tab1 AS cor0
----
-94
51
-94
85
-94
91

query II rowsort
SELECT - - col2, + ( + col0 ) FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ALL 93 AS col1, 2 * + 96 AS col0 FROM tab2 AS cor0
----
93
192
93
192
93
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL - - MAX( ALL + 63 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - - MAX ( ALL + 63 ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL + ( + - 46 ) AS col0 FROM tab1 cor0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + col1 * + + 38 * + col0 AS col1 FROM tab2
----
11984896
14321250
4100808

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT DISTINCT - MAX( col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT - MAX ( col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT + 93 * + col1 AS col1 FROM tab0
----
1953
7533
93

query II rowsort
SELECT - col0 * + col1 AS col2, col1 AS col0 FROM tab2
----
-2346
51
-4928
77
-5025
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + COUNT( * ) * 28 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-6404
SELECT + COUNT ( * ) * 28 FROM tab0 cor0
----
84

query I rowsort
SELECT DISTINCT + ( - 54 ) AS col0 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT + + 51 * - col0 AS col1 FROM tab1 cor0
----
-2601
-4335
-4641

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 < - - col2
----
51
14
96

query I rowsort
SELECT DISTINCT col0 * - 48 + + 78 AS col0 FROM tab1 AS cor0
----
-2370
-4002
-4290

query I rowsort
SELECT DISTINCT - col1 + - 5 AS col1 FROM tab0 AS cor0
----
-26
-6
-86

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT 10 DIV 27 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT 10 / 27 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6415
SELECT ALL * FROM tab0 WHERE NOT + 88 < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6415
SELECT ALL * FROM tab0 WHERE NOT + 88 < CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT ALL + 16, COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL < - col1
----
16
0

skipif mysql # not compatible
query II rowsort label-6416
SELECT ALL + 16, COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL < - col1
----
16
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6417
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT col1 DIV + 40 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6418
SELECT col1 / + 40 AS col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT ALL 43 * col1 DIV + 16 + - col0 AS col1 FROM tab0
----
-31
-95
202

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL 43 * col1 / + 16 + - col0 AS col1 FROM tab0
----
-31
-95
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT MIN( DISTINCT - col0 ) + 81 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT MIN ( DISTINCT - col0 ) + 81 FROM tab0
----
-16

query I rowsort
SELECT col1 - - - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - - col1 + - 43 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - + 27 / - - 47 * - 52 - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6424
SELECT COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43, col0 col1 FROM tab2 AS cor0
----
43
46
43
64
43
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - MAX( + 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6427
SELECT - MAX ( + 44 ) FROM tab0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT ALL col2 DIV col0 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL col2 / col0 / - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + col0 + col1 * + col0 col0 FROM tab1
----
51
765
85
510
91
4368

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN col0 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + col2 + + + col2 AS col1 FROM tab1 AS cor0
----
141
33
45

query I rowsort
SELECT - 25 AS col0 FROM tab0 AS cor0 WHERE NOT col2 = 24 - - ( - col1 )
----
-25
-25
-25

query I rowsort
SELECT + 36 * + ( + - 19 ) FROM tab1 AS cor0
----
-684
-684
-684

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab1 cor1 ON NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col0 FROM tab0 WHERE NOT ( col0 + + col0 - + col0 / col1 * - 20 + - 87 ) IS NOT NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 98 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
23
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT ALL - col2 + col1 + + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - col2 + col1 + + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 93 + col1 FROM tab0 AS cor0 WHERE NOT 89 IS NULL
----
-12
-72
-92

query I rowsort
SELECT col1 + ( - + col0 ) AS col1 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL - CAST( 61 AS SIGNED ) * - 52 FROM tab0 AS cor0
----
3172
3172
3172

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - CAST ( 61 AS INTEGER ) * - 52 FROM tab0 AS cor0
----
3172
3172
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT - - COUNT( * ) * 97 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT - - COUNT ( * ) * 97 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NOT NULL >= NULL
----
0

query II rowsort
SELECT ALL - 79 AS col2, col2 AS col0 FROM tab2
----
-79
23
-79
40
-79
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT DISTINCT - ( col2 ) DIV + col2 + - col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT - ( col2 ) / + col2 + - col1 FROM tab0
----
-2
-22
-82

query I rowsort
SELECT ALL col1 + col2 + col0 AS col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT COUNT( * ) * 89 * - COUNT( ALL - col2 ) - + 7 FROM tab0 cor0
----
-808

skipif mysql # not compatible
query I rowsort label-6446
SELECT COUNT ( * ) * 89 * - COUNT ( ALL - col2 ) - + 7 FROM tab0 cor0
----
-808

query I rowsort
SELECT DISTINCT - col1 * 73 - - - 14 FROM tab0 AS cor0
----
-1547
-5927
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT - MIN( - 90 ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - MIN ( - 90 ) AS col0 FROM tab2
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, - 42 + + col2 col0 FROM tab2 WHERE 20 IS NULL
----

query I rowsort
SELECT 21 * - + col2 AS col1 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT DISTINCT - col1 * 32 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6452
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / + 32 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 32 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT ALL - col2 * + ( - 33 ) AS col0 FROM tab0 AS cor0
----
1551
3267
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 85 ) col2 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT - - 50 FROM tab2 AS cor0 WHERE NOT ( + col0 + + + 78 ) BETWEEN + ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6457
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / col0 * - CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6457
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / col0 * - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / - ( 86 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL COUNT( * ) * + - 59 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL COUNT ( * ) * + - 59 FROM tab1
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 9 ) col1 FROM tab0
----
-9
-9
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col0 ) = NULL
----

query I rowsort
SELECT ALL + 61 * - 87 + + col1 * 16 * col2 + col0 FROM tab1 AS cor0
----
-502
16248
45920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col1 <> + col0 + - 19 / - - col1 * + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6464
SELECT DISTINCT 24 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT 24 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT ALL - 21 DIV + + 62 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - 21 / + + 62 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) * + col2 + col2 NOT BETWEEN NULL AND + - col2
----

query II rowsort
SELECT ALL - col1, col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6468
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 17 NOT BETWEEN ( + 24 * - + ( + - CAST( NULL AS DECIMAL ) ) / - col1 + + - 60 + - 82 ) AND + col1 + + + col2
----

skipif mysql # not compatible
query III rowsort label-6468
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 17 NOT BETWEEN ( + 24 * - + ( + - CAST ( NULL AS REAL ) ) / - col1 + + - 60 + - 82 ) AND + col1 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT COUNT( * ) + COUNT( * ) + SUM( - col1 ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-6469
SELECT COUNT ( * ) + COUNT ( * ) + SUM ( - col1 ) FROM tab2
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT DISTINCT CAST( + + SUM( + - 40 ) AS SIGNED ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT CAST ( + + SUM ( + - 40 ) AS INTEGER ) AS col2 FROM tab2
----
-120

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - COUNT( - + 66 ) + 86 AS col0 FROM tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-6472
SELECT - COUNT ( - + 66 ) + 86 AS col0 FROM tab1 cor0
----
83

query I rowsort
SELECT col1 + - 34 AS col1 FROM tab0 AS cor0
----
-13
-33
47

query I rowsort
SELECT + col2 + - - col2 AS col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT DISTINCT CAST( - 13 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE - col2 + - 80 - - col1 NOT IN ( - col0 / - 36 )
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6475
SELECT DISTINCT CAST ( - 13 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE - col2 + - 80 - - col1 NOT IN ( - col0 / - 36 )
----
-13

query II rowsort
SELECT ALL + col1, + 98 FROM tab0 cor0
----
1
98
21
98
81
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6477
SELECT * FROM tab1 AS cor0 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6477
SELECT * FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 61 AS col0 FROM tab0 AS cor0 WHERE ( + col1 - - ( - col1 ) ) > - 9 - + 57
----
61
61
61

query I rowsort
SELECT + col0 * - 47 - - 70 + - col2 * + + col2 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-14290
-2844
-4119

onlyif mysql # aggregate syntax: 
query II rowsort label-6480
SELECT ALL - 25 - 9 AS col1, COUNT( * ) FROM tab2
----
-34
3

skipif mysql # not compatible
query II rowsort label-6480
SELECT ALL - 25 - 9 AS col1, COUNT ( * ) FROM tab2
----
-34
3

query I rowsort
SELECT + col2 - - 54 FROM tab1
----
113
122
150

query I rowsort
SELECT + col1 - col0 * 86 + col2 AS col0 FROM tab1
----
-4276
-7246
-7711

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + + col1 * + col1 IS NULL AND + 92 * + 27 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND - + 56 * 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6485
SELECT * FROM tab1 WHERE col1 < CAST( NULL AS SIGNED ) + + - col0 + 83
----

skipif mysql # not compatible
query III rowsort label-6485
SELECT * FROM tab1 WHERE col1 < CAST ( NULL AS INTEGER ) + + - col0 + 83
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * 33 + - col0 BETWEEN + 82 AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT DISTINCT MIN( + 21 ), + 31 AS col1 FROM tab1 AS cor0
----
21
31

skipif mysql # not compatible
query II rowsort label-6487
SELECT DISTINCT MIN ( + 21 ), + 31 AS col1 FROM tab1 AS cor0
----
21
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6488
SELECT * FROM tab2 WHERE NOT CAST( - 36 AS SIGNED ) - - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6488
SELECT * FROM tab2 WHERE NOT CAST ( - 36 AS INTEGER ) - - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= + 94 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 45 * - col1 AS col2 FROM tab0
----
-3645
-45
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6492
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6492
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT - 76 * + 17 FROM tab0 AS cor0
----
-1292
-1292
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT + - COUNT( * ) * - - 39 FROM tab2 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6495
SELECT + - COUNT ( * ) * - - 39 FROM tab2 cor0
----
-117

query I rowsort
SELECT + col2 * + - ( - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6497
SELECT - col0 AS col0, + 79 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6497
SELECT - col0 AS col0, + 79 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT - SUM( DISTINCT + - 13 ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT - SUM ( DISTINCT + - 13 ) AS col2 FROM tab2 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT + col1 * - 60 + ( + - 20 ) AS col1 FROM tab1 AS cor0
----
-2840
-320
-860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6501
SELECT 46 * - + 52 * - ( - - 67 ) AS col0, + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
160264
-9

skipif mysql # not compatible
query II rowsort label-6501
SELECT 46 * - + 52 * - ( - - 67 ) AS col0, + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
160264
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL + ( + MIN( + + 78 ) ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + ( + MIN ( + + 78 ) ) AS col0 FROM tab1
----
78

query I rowsort
SELECT DISTINCT 84 * + 1 AS col0 FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-6504
SELECT DISTINCT - ( + col1 ) DIV + 88 + col0 + + col2 * - + 33 + col0 + + ( - + col2 ) AS col2, 33 AS col1 FROM tab1
----
-1836
33
-2130
33
-3162
33

skipif mysql # not compatible
query II rowsort label-6504
SELECT DISTINCT - ( + col1 ) / + 88 + col0 + + col2 * - + 33 + col0 + + ( - + col2 ) AS col2, 33 AS col1 FROM tab1
----
-1836
33
-2130
33
-3162
33

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE ( NULL ) <> + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT SUM( DISTINCT + - 12 ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT SUM ( DISTINCT + - 12 ) AS col2 FROM tab2
----
-12

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) = + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT ( + + COUNT( * ) ) col0 FROM tab1 WHERE NOT - 54 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6509
SELECT DISTINCT ( + + COUNT ( * ) ) col0 FROM tab1 WHERE NOT - 54 <= NULL
----
0

query I rowsort
SELECT ALL - col2 * + 95 FROM tab0
----
-4465
-9405
-950

query III rowsort
SELECT * FROM tab0 WHERE - col2 > 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL - SUM( + 71 ) AS col0 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - SUM ( + 71 ) AS col0 FROM tab0
----
-213

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, - col2, + col1, + + col0, col0 + - + col1 + - col1 * - 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 >= NULL
----

query I rowsort
SELECT - col1 + + col2 + - 61 AS col1 FROM tab0 cor0
----
-72
-95
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6518
SELECT * FROM tab1 AS cor0 WHERE - CAST( - - 97 AS SIGNED ) * + 14 * + ( - col1 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6518
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - - 97 AS INTEGER ) * + 14 * + ( - col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT col1 = + col0
----
3

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 = + col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT DISTINCT + + col0 col2 FROM tab0 WHERE NOT CAST( 66 AS SIGNED ) > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6520
SELECT DISTINCT + + col0 col2 FROM tab0 WHERE NOT CAST ( 66 AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT - col2 - + ( + + 73 ) + + ( + col0 ) FROM tab0
----
-105
-75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + MIN( DISTINCT - col1 ) - + - 97 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + MIN ( DISTINCT - col1 ) - + - 97 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6523
SELECT * FROM tab2 WHERE - + ( - col0 ) BETWEEN - col1 + + ( - + CAST( NULL AS SIGNED ) ) AND - + 25
----

skipif mysql # not compatible
query III rowsort label-6523
SELECT * FROM tab2 WHERE - + ( - col0 ) BETWEEN - col1 + + ( - + CAST ( NULL AS INTEGER ) ) AND - + 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL CAST( + + 92 AS SIGNED ) AS col2 FROM tab2
----
92
92
92

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL CAST ( + + 92 AS INTEGER ) AS col2 FROM tab2
----
92
92
92

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT - col1 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - 43 ) FROM tab1 WHERE NOT - col1 + ( + col2 ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT 91 * + ( col0 ) AS col2 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT CAST( - - 9 AS SIGNED ) + COUNT( * ) col2 FROM tab1, tab1 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6529
SELECT CAST ( - - 9 AS INTEGER ) + COUNT ( * ) col2 FROM tab1, tab1 AS cor0
----
18

query I rowsort
SELECT ALL + 74 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT - CAST( NULL AS SIGNED ) * - - ( - COUNT( * ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT - CAST ( NULL AS INTEGER ) * - - ( - COUNT ( * ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT ALL - + col1 DIV - col1 + 93 - - 54 * - col0 + - ( + 8 ) + + col1 FROM tab0 AS cor0
----
-4591
-5151
-643

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - + col1 / - col1 + 93 - - 54 * - col0 + - ( + 8 ) + + col1 FROM tab0 AS cor0
----
-4591
-5151
-643

onlyif mysql # DIV for integer division: 
query I rowsort label-6533
SELECT DISTINCT + col2 DIV 8 FROM tab0 AS cor0
----
1
12
5

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT + col2 / 8 FROM tab0 AS cor0
----
1
12
5

query I rowsort
SELECT - + col0 * + 19 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT DISTINCT - - MAX( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 47 * - 91 + - col2 FROM tab1 AS cor0
----
4181
4209
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL - 78 * + MIN( ALL - col2 ) FROM tab2 AS cor0
----
4524

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - 78 * + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
4524

query II rowsort
SELECT col1 AS col1, - 74 FROM tab2
----
51
-74
67
-74
77
-74

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < + col2
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT 84 BETWEEN NULL AND - col0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( - col0 )
----

query II rowsort
SELECT col2, col0 - - ( + 76 ) AS col0 FROM tab1
----
59
161
68
167
96
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6544
SELECT DISTINCT - MAX( + - col2 ) * + CAST( - + 6 AS SIGNED ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - MAX ( + - col2 ) * + CAST ( - + 6 AS INTEGER ) FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL COUNT( * ) + - + MIN( - col0 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL COUNT ( * ) + - + MIN ( - col0 ) AS col1 FROM tab2
----
78

query II rowsort
SELECT col2, col2 * - - col1 FROM tab0
----
10
210
47
3807
99
99

query I rowsort
SELECT 65 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + 65 * + + col2 <> - col0
----
3

skipif mysql # not compatible
query I rowsort label-6549
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + 65 * + + col2 <> - col0
----
3

query I rowsort
SELECT 46 + + - col1 AS col1 FROM tab2
----
-21
-31
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - COUNT( * ) col0 FROM tab2 WHERE NULL < + + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6551
SELECT - COUNT ( * ) col0 FROM tab2 WHERE NULL < + + col1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / 33 + + - col1 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + + ( + + col2 ) * + col2 col0 FROM tab1 AS cor0
----
-3422
-4556
-9120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6554
SELECT ALL CAST( NULL AS DECIMAL ) - + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL CAST ( NULL AS REAL ) - + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0 AS cor0 WHERE - ( - col1 ) BETWEEN - + 43 AND NULL
----

query I rowsort
SELECT + ( + col1 ) - + 1 FROM tab1
----
13
4
46

query I rowsort
SELECT col2 - 27 + + col2 * + col2 AS col2 FROM tab2
----
1613
3395
525

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT 81 * COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-6559
SELECT 81 * COUNT ( * ) FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT - + MIN( DISTINCT - 4 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6560
SELECT - + MIN ( DISTINCT - 4 ) FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6561
SELECT - + col2 DIV 50 DIV - CAST( - 70 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6561
SELECT - + col2 / 50 / - CAST ( - 70 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6562
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6562
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - ( - 28 ) FROM tab1 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + + ( - ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + + ( - ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT CAST( - 70 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-6565
SELECT CAST ( - 70 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT DISTINCT col0 * + - CAST( NULL AS SIGNED ) * col0 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6566
SELECT DISTINCT col0 * + - CAST ( NULL AS INTEGER ) * col0 col1 FROM tab0
----
NULL

query I rowsort
SELECT - 31 * + ( + col0 ) FROM tab0 AS cor0
----
-2697
-3007
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT + COUNT( * ) + 23 AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT + COUNT ( * ) + 23 AS col2 FROM tab1 AS cor0
----
26

query II rowsort
SELECT DISTINCT + + col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT 49 * col2 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
1127
-23
1960
-40
2842
-58

query II rowsort
SELECT + col0 AS col2, 23 - 54 AS col1 FROM tab1 AS cor0
----
51
-31
85
-31
91
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT 1 AS col0, 91 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
1
94

skipif mysql # not compatible
query II rowsort label-6572
SELECT 1 AS col0, 91 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT MAX( + ( + col0 ) ) * 18 FROM tab0 AS cor0
----
1746

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT MAX ( + ( + col0 ) ) * 18 FROM tab0 AS cor0
----
1746

query I rowsort
SELECT - - col1 * ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6575
SELECT * FROM tab0 WHERE ( - col0 * + - col2 + - 25 + + + CAST( - col1 AS SIGNED ) * + col0 ) IN ( + CAST( + 31 AS SIGNED ) - - 37 )
----

skipif mysql # not compatible
query III rowsort label-6575
SELECT * FROM tab0 WHERE ( - col0 * + - col2 + - 25 + + + CAST ( - col1 AS INTEGER ) * + col0 ) IN ( + CAST ( + 31 AS INTEGER ) - - 37 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6576
SELECT 72 + + 18, + ( - 10 ) DIV - MAX( + col0 ) AS col1 FROM tab0
----
90
0

skipif mysql # not compatible
query II rowsort label-6576
SELECT 72 + + 18, + ( - 10 ) / - MAX ( + col0 ) AS col1 FROM tab0
----
90
0

query II rowsort
SELECT ALL col0 AS col2, 34 AS col0 FROM tab0 WHERE + col2 + col0 IS NOT NULL
----
15
34
87
34
97
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 - - + col1 + - - 77 col0 FROM tab2 WHERE col1 * + 93 - - col0 IS NOT NULL
----
1301
3234
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT MIN( ALL - 60 ) + + 41 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6579
SELECT MIN ( ALL - 60 ) + + 41 FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT col0 + - col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT col0 + - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 56 FROM tab2 cor0 WHERE + col2 = NULL
----

query II rowsort
SELECT DISTINCT + 26 * + 94 AS col0, col2 + col1 FROM tab2 AS cor0
----
2444
117
2444
125
2444
74

query I rowsort
SELECT ALL col1 * + col2 * + - col2 * 68 FROM tab2 AS cor0
----
-15326384
-1834572
-8377600

query I rowsort
SELECT DISTINCT + 57 - + - col1 AS col0 FROM tab2 AS cor0
----
108
124
134

query I rowsort
SELECT ALL 23 FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON + - 50 * 19 > NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6586
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6587
SELECT ALL - CAST( NULL AS SIGNED ) * + SUM( col0 ) + - 16 AS col0, + COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6587
SELECT ALL - CAST ( NULL AS INTEGER ) * + SUM ( col0 ) + - 16 AS col0, + COUNT ( * ) FROM tab0
----
NULL
3

query I rowsort
SELECT ALL - + col2 - + - col1 * + + col0 FROM tab2 AS cor0
----
2323
4888
4967

query I rowsort
SELECT col1 + + - 49 AS col0 FROM tab1 AS cor0
----
-2
-35
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - + COUNT( * ) + + 66 AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6590
SELECT - + COUNT ( * ) + + 66 AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + 87 + - - COUNT( * ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6591
SELECT + 87 + - - COUNT ( * ) FROM tab0 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 78 - + 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - 37 ) * - - 80 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
2960
2960
2960

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
99

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE + col0 + - col1 <> + + col0
----
-23
-40
-58

query II rowsort
SELECT - col0 * col0, + col1 AS col0 FROM tab2
----
-2116
51
-4096
77
-5625
67

query I rowsort
SELECT col1 * + - col2 * + col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT col2 * - col1 * + + 9 FROM tab2 AS cor0 WHERE NOT NULL < + 18
----

query I rowsort
SELECT ALL 21 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE 14 IS NULL
----

query I rowsort
SELECT + col2 + + + 81 AS col1 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT + 99 + + ( - + col0 ) FROM tab0 AS cor0
----
12
2
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - + 3
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN + + 64 * - + col2 AND ( + + col1 ) * 26
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 84 * 37 + - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 89 AS col1 FROM tab2 cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6608
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + col2 * + ( col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6608
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col2 * + ( col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 9 IS NOT NULL
----

query II rowsort
SELECT + 91 AS col2, + 29 AS col2 FROM tab0
----
91
29
91
29
91
29

query I rowsort
SELECT + + col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT col0 AS col0, 18, - + col0 * - col1 + + col0 AS col0 FROM tab1
----
9 values hashing to df6f3d39cfb82d16e5bde367c2fbb28d

query II rowsort
SELECT DISTINCT col0 AS col0, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT col0 + - 39 AS col1 FROM tab2
----
25
36
7

query I rowsort
SELECT DISTINCT + col1 + 75 FROM tab1
----
122
80
89

query I rowsort
SELECT DISTINCT + col1 * 49 + - 21 + col0 FROM tab0 AS cor0
----
1095
125
3963

query I rowsort
SELECT ALL - 48 + - + col2 AS col1 FROM tab0 AS cor0
----
-147
-58
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 4 + + 3 col0 FROM tab2 cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT + col0 DIV - 49 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT + col0 / - 49 FROM tab0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - ( - col2 ) * + 39 * - 29 FROM tab1 AS cor0
----
-108576
-66729
-76908

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6622
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + ( 59 ) / + CAST( ( + - col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6622
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + ( 59 ) / + CAST ( ( + - col0 ) AS INTEGER )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - 40 IS NOT NULL )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 71 * col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - ( + MIN( - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6626
SELECT - ( + MIN ( - col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + 75 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-4340
-5009
-7149

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT 68 AS col2, - COUNT( * ) AS col0 FROM tab0
----
68
-3

skipif mysql # not compatible
query II rowsort label-6628
SELECT 68 AS col2, - COUNT ( * ) AS col0 FROM tab0
----
68
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - SUM( DISTINCT 52 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-6629
SELECT - SUM ( DISTINCT 52 ) FROM tab2
----
-52

query I rowsort
SELECT + col2 * + + 29 FROM tab0
----
1363
2871
290

query I rowsort
SELECT ALL + col2 * + col2 * col1 * + col1 FROM tab0
----
14493249
44100
9801

query I rowsort
SELECT + col2 * + + 97 AS col0 FROM tab0
----
4559
9603
970

query I rowsort
SELECT ALL + 61 * + col0 AS col0 FROM tab1
----
3111
5185
5551

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 88 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN - col0 + + ( - 95 ) + - 14 AND 85
----

query I rowsort
SELECT DISTINCT col1 * + 33 + - col2 * - 10 * + col0 * - 9 FROM tab0 AS cor0
----
-60777
-77607
-864237

query II rowsort
SELECT DISTINCT + + 22, - col1 AS col1 FROM tab1 AS cor0
----
22
-14
22
-47
22
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + MIN( + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6638
SELECT + MIN ( + + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT ( 64 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT ( 64 ) <= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + 93 * + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - 35 AS col2 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT 17 * col2 * - 41 AS col1 FROM tab1 AS cor0
----
-41123
-47396
-66912

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT MAX( - + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6645
SELECT MAX ( - + col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - + ( + col0 ) * - 91 - - 0 + - col1 FROM tab2 AS cor0
----
4135
5747
6758

query I rowsort
SELECT 16 * + col1 + - col0 FROM tab1 AS cor0
----
-5
173
661

query I rowsort
SELECT - 10 + - + 76 FROM tab0
----
-86
-86
-86

query II rowsort
SELECT ALL 83 AS col0, + 79 FROM tab2
----
83
79
83
79
83
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab2
----
-44

query I rowsort
SELECT DISTINCT + 28 + + + col1 * - col0 FROM tab0
----
-1187
-1799
-69

query I rowsort
SELECT ALL - col2 * + + col0 + - col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT COUNT( * ) * + MAX( - - 26 ) + 4 AS col0 FROM tab1 WHERE - + col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT COUNT ( * ) * + MAX ( - - 26 ) + 4 AS col0 FROM tab1 WHERE - + col0 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE - 61 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 61 IS NULL
----

query I rowsort
SELECT ALL col0 + - 9 FROM tab2
----
37
55
66

query I rowsort
SELECT ALL col2 - - 25 AS col2 FROM tab1 AS cor0
----
121
84
93

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN - + 10 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + + MIN( - col0 ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6658
SELECT + + MIN ( - col0 ) AS col1 FROM tab2 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 96 col1 FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT + ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col2 * - 7 * - ( col2 ) + + col1 - + col2 * - 15 + - col1 AS col0 FROM tab2 cor0
----
11800
24418
4048

query III rowsort
SELECT * FROM tab1 WHERE NOT - 27 < - 10
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col0 * + col1 - col0 * + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6665
SELECT - CAST( - + col0 AS SIGNED ) DIV + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6665
SELECT - CAST ( - + col0 AS INTEGER ) / + col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT col1 * + + 21 / - col0 + + + 58 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6667
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT col1 * + + 21 / - col0 + + + 58 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 col2 FROM tab0 cor0
----
33
33
33

query II rowsort
SELECT DISTINCT - + 53, col2 + + - col2 - + + col2 + + col0 * + - col0 AS col1 FROM tab1 AS cor0
----
-53
-2697
-53
-7284
-53
-8349

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6670
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6670
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + ( + 54 ) FROM tab2 cor0
----
54

query II rowsort
SELECT DISTINCT 89 * + col0 AS col2, col0 AS col0 FROM tab1
----
4539
51
7565
85
8099
91

query I rowsort
SELECT + 56 * col2 FROM tab0
----
2632
5544
560

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT + 50 * SUM( + - 10 ) * - 49 AS col1 FROM tab0
----
73500

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + 50 * SUM ( + - 10 ) * - 49 AS col1 FROM tab0
----
73500

query I rowsort
SELECT - 22 * col1 FROM tab1
----
-1034
-110
-308

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 5 BETWEEN - + col1 AND - 67 * - - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + SUM( DISTINCT 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-6677
SELECT + SUM ( DISTINCT 43 ) FROM tab1
----
43

query II rowsort
SELECT ALL + col2 * - ( col1 ) AS col0, 20 FROM tab1 AS cor0
----
-1344
20
-295
20
-3196
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT - - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6679
SELECT - - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT ( + col2 ) + col0 AS col1, col0 + + ( + 52 ) - - col0 AS col2 FROM tab1
----
144
222
147
154
159
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT 39 + col2 + - CAST( NULL AS SIGNED ) * + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT 39 + col2 + - CAST ( NULL AS INTEGER ) * + - col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - 61 AS col1, + ( - col2 ) / + ( + col0 ) + - col0 FROM tab0 WHERE + - col1 + - ( - - ( - + col0 ) ) = - + 1
----

query I rowsort
SELECT ALL + 54 * - col1 AS col2 FROM tab1 WHERE + - 35 IS NOT NULL
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT + 35 + - MAX( + + col2 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6684
SELECT + 35 + - MAX ( + + col2 ) FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6685
SELECT - col1 * - ( + col0 ), 24 + + col1 DIV + col2 - + col2 + CAST( + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
1215
-7
1827
103
97
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6685
SELECT - col1 * - ( + col0 ), 24 + + col1 / + col2 - + col2 + CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
1215
-7
1827
103
97
22

query I rowsort
SELECT ALL col0 + + + col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + - col1 + - - col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT + col0 + + 17 AS col1 FROM tab0 cor0
----
104
114
32

query I rowsort
SELECT ALL + col1 * + - 40 FROM tab1 AS cor0
----
-1880
-200
-560

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + + ( + + 66 ) AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NULL > 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab1
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT CAST( - + col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6694
SELECT CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT ( MIN( - - col2 ) ) AS col0 FROM tab0 WHERE NOT + col2 >= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT ( MIN ( - - col2 ) ) AS col0 FROM tab0 WHERE NOT + col2 >= - col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT col2 - - - col1 - - + 82 DIV 95 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-6696
SELECT col2 - - - col1 - - + 82 / 95 FROM tab1
----
21
54
82

query I rowsort
SELECT 33 - col2 FROM tab0
----
-14
-66
23

query I rowsort
SELECT ALL col2 + - - col2 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query II rowsort label-6699
SELECT ALL + col0 + + 7 DIV - col1 * + col1 col1, col2 FROM tab0
----
15
47
87
10
90
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6699
SELECT ALL + col0 + + 7 / - col1 * + col1 col1, col2 FROM tab0
----
15
47
87
10
90
99

query I rowsort
SELECT col0 + + 60 - + + col2 FROM tab1
----
15
83
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( col0 ) + + col2 * col2 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6701
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( col0 ) + + col2 * col2 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 93 + 28 AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - + col2 * 65 + - - 99 - col1 + - col0 + col0 FROM tab2 AS cor0
----
-1447
-2578
-3738

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( - 6 * col0 / col2 / + 79 - + - ( - col0 ) + 99 * - col2 - col2, 30 * - - 52 * - 40 * + + 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6705
SELECT DISTINCT 37, MIN( DISTINCT col1 ) col1 FROM tab0
----
37
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6705
SELECT DISTINCT 37, MIN ( DISTINCT col1 ) col1 FROM tab0
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL - SUM( ALL + + col0 ) * - 59 AS col0 FROM tab2
----
10915

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - SUM ( ALL + + col0 ) * - 59 AS col0 FROM tab2
----
10915

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - ( MIN( DISTINCT col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - ( MIN ( DISTINCT col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT ALL CAST( + 2 AS SIGNED ) FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL - ( + ( - + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - ( + ( - + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - SUM( ALL - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6710
SELECT - SUM ( ALL - col1 ) FROM tab1 cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col1 AS col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT + 31, COUNT( * ) * + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
31
9

skipif mysql # not compatible
query II rowsort label-6712
SELECT + 31, COUNT ( * ) * + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
31
9

query I rowsort
SELECT DISTINCT - - col2 + - 57 + + 91 * col1 + + + col2 FROM tab0 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - COUNT( * ) * COUNT( + + ( - 52 ) ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - COUNT ( * ) * COUNT ( + + ( - 52 ) ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <= col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + - ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 65 * + col2 FROM tab0
----
-3055
-6435
-650

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col0 ) / - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col2, + col2 + 16 + + col2 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 51 col1, + 46 AS col2 FROM tab2 AS cor0
----
-51
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col2 FROM tab1
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * col1 + - 82 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL COUNT( * ) * MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL COUNT ( * ) * MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT - - 99 * - MAX( DISTINCT - 2 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
198

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - - 99 * - MAX ( DISTINCT - 2 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
198

query I rowsort
SELECT DISTINCT 37 + 26 + - 9 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT - 7 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT - 7 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * + + col2 + col0 AS col1 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6733
SELECT DISTINCT + col0 - - CAST( NULL AS SIGNED ) * - CAST( col2 AS SIGNED ) / + 54, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6733
SELECT DISTINCT + col0 - - CAST ( NULL AS INTEGER ) * - CAST ( col2 AS INTEGER ) / + 54, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + + col1 + - col0 + - - col0 AS col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + + 77 + + - col2 * + - col1 FROM tab0 AS cor0
----
176
287
3884

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6736
SELECT + 80 * - CAST( NULL AS DECIMAL ) + + - col2 / - 27 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT + 80 * - CAST ( NULL AS REAL ) + + - col2 / - 27 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 81 + + + col2 AS col0 FROM tab1 AS cor0
----
-13
-22
15

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 cor0 WHERE NULL <= - ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT COUNT( * ) + 40 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6739
SELECT COUNT ( * ) + 40 FROM tab0
----
43

query I rowsort
SELECT DISTINCT + - col2 * - 31 + + 74 + + 79 FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL ( 21 ) * 60 AS col2 FROM tab1
----
1260
1260
1260

query I rowsort
SELECT ALL 91 * + + col2 FROM tab1
----
5369
6188
8736

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 45 AS col1 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6745
SELECT * FROM tab2 WHERE - col1 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6745
SELECT * FROM tab2 WHERE - col1 + + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT ( - + col2 ) DIV col1 * col2 FROM tab0
----
-9801
0
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT ( - + col2 ) / col1 * col2 FROM tab0
----
-9801
0
0

query I rowsort
SELECT ALL + 50 + + 15 FROM tab1
----
65
65
65

query II rowsort
SELECT DISTINCT col1 AS col2, 48 AS col0 FROM tab1 AS cor0
----
14
48
47
48
5
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT + + MAX( 8 ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6750
SELECT + + MAX ( 8 ) AS col2 FROM tab0 AS cor0
----
8

query I rowsort
SELECT ALL + - col1 * + + 75 AS col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6752
SELECT * FROM tab0 WHERE + CAST( ( - col1 ) AS SIGNED ) NOT BETWEEN - col2 - col0 AND NULL
----
15
81
47

skipif mysql # not compatible
query III rowsort label-6752
SELECT * FROM tab0 WHERE + CAST ( ( - col1 ) AS INTEGER ) NOT BETWEEN - col2 - col0 AND NULL
----
15
81
47

query I rowsort
SELECT 58 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0 / + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT ALL + col2 DIV 31 + 13 AS col2 FROM tab2
----
13
14
14

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + col2 / 31 + 13 AS col2 FROM tab2
----
13
14
14

query I rowsort
SELECT + col0 + ( 36 ) FROM tab0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT + ( ( MIN( col2 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-6756
SELECT + ( ( MIN ( col2 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT + col2 * - 22 + - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + col2 * - 22 + - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + col1 + + col0 IN ( + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 76 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT - col1 * col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT - col1 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) <> col0
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT col2 * + col2 NOT BETWEEN col2 * col0 AND - col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT ALL + CAST( NULL AS SIGNED ) * - ( - col1 / col1 ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( - col1 / col1 ) + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT + SUM( DISTINCT - ( col1 ) ) DIV 6 + ( SUM( col0 ) ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-6766
SELECT + SUM ( DISTINCT - ( col1 ) ) / 6 + ( SUM ( col0 ) ) FROM tab2
----
153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 IN ( + col1 )
----

query I rowsort
SELECT 56 + - col1 FROM tab1
----
42
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT MIN( ALL + col2 ) + - 43 AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6769
SELECT MIN ( ALL + col2 ) + - 43 AS col2 FROM tab2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT DISTINCT 70 * col0 - col1 DIV col1 FROM tab2
----
3219
4479
5249

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT 70 * col0 - col1 / col1 FROM tab2
----
3219
4479
5249

query III rowsort
SELECT * FROM tab1 WHERE col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col2 NOT BETWEEN ( - 41 * - 21 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 < ( col0 * 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE 84 BETWEEN col1 + - col1 AND NULL
----

query I rowsort
SELECT + 96 + - 88 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT 23 + + MAX( DISTINCT 58 - - ( - col1 ) ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-6778
SELECT 23 + + MAX ( DISTINCT 58 - - ( - col1 ) ) AS col2 FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT ALL 64 * ( + CAST( - 4 AS SIGNED ) ) FROM tab1
----
-256
-256
-256

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL 64 * ( + CAST ( - 4 AS INTEGER ) ) FROM tab1
----
-256
-256
-256

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - col1 * 68 AS col0 FROM tab0
----
-1428
-5508
-68

query I rowsort
SELECT DISTINCT col0 + col2 * + 88 AS col2 FROM tab0 AS cor0
----
4151
8809
967

query I rowsort
SELECT 32 * - col1 AS col2 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL + MIN( 93 ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL + MIN ( 93 ) AS col0 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT 9 + + 90 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ALL col0 + - col1 * + col2 FROM tab1 cor0
----
-1293
-210
-3105

query I rowsort
SELECT - 16 + col0 AS col0 FROM tab0 AS cor0
----
-1
71
81

query I rowsort
SELECT - 83 + - col1 * col2 AS col0 FROM tab1
----
-1427
-3279
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL 26 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
234

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL 26 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
234

query I rowsort
SELECT + 63 + - col0 AS col0 FROM tab0
----
-24
-34
48

query I rowsort
SELECT col1 * - 91 + - col2 AS col0 FROM tab1
----
-1370
-4345
-514

query I rowsort
SELECT ALL ( + col1 ) FROM tab1 WHERE - col0 * - 74 + col1 / ( - 34 ) NOT BETWEEN - col2 AND col0 + + col2
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT DISTINCT 99 + + 68 DIV col1 AS col0 FROM tab1 AS cor0
----
100
103
112

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT 99 + + 68 / col1 AS col0 FROM tab1 AS cor0
----
100
103
112

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6794
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN col1 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6794
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN col1 * col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 58 + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * - col2 + col2 col1 FROM tab0 AS cor0 WHERE 72 BETWEEN ( NULL ) AND 75
----

query I rowsort
SELECT - 86 * col0 AS col1 FROM tab1 AS cor0
----
-4386
-7310
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT DISTINCT + + 6 - - 40 * - COUNT( * ) AS col2 FROM tab1 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT + + 6 - - 40 * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-114

query I rowsort
SELECT ALL col2 + + 94 FROM tab1 AS cor0
----
153
162
190

query I rowsort
SELECT DISTINCT - col2 + - 80 * col1 FROM tab1 AS cor0
----
-1216
-3828
-459

query I rowsort
SELECT DISTINCT 75 FROM tab0 AS cor0 WHERE NOT - 94 <= col1
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * - 76 - + col1 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN NULL AND - 85 * - col2 + 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT col0 - - 76 DIV col2 AS col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-6804
SELECT col0 - - 76 / col2 AS col0 FROM tab1
----
51
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6805
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) * - 2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 2 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT SUM( - 54 ) - COUNT( * ) AS col0 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-6806
SELECT SUM ( - 54 ) - COUNT ( * ) AS col0 FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT DISTINCT MAX( - 43 ) AS col2 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT MAX ( - 43 ) AS col2 FROM tab1 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6808
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6808
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) >= NULL
----

query I rowsort
SELECT + col2 + 24 AS col2 FROM tab0
----
123
34
71

query I rowsort
SELECT - col2 * + + 87 + col2 FROM tab1
----
-5074
-5848
-8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col0 FROM tab0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col2 col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL + + COUNT( * ) * + 56 AS col2 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + + COUNT ( * ) * + 56 AS col2 FROM tab1 AS cor0
----
168

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT + col1 BETWEEN 68 AND + col0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT ALL + - col1 DIV - 77 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + - col1 / - 77 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT ( + col0 + - col2 * col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 44
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 AND ( 57 + col2 )
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 28 + + 59 ) <> ( ( col1 ) + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6820
SELECT COUNT( * ) DIV - 20 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - - 62 ) + - col1 * 32 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT COUNT ( * ) / - 20 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - - 62 ) + - col1 * 32 = NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6821
SELECT - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - + 79 AS col0 FROM tab2 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 57 col2 FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL + MAX( DISTINCT - 1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + MAX ( DISTINCT - 1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - MAX( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - MAX ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 67 + - 44 * ( + col2 * + col2 ) IS NULL
----
15
87
97

query I rowsort
SELECT + - col1 * + 8 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-408
-536
-616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 95, - col2 col0 FROM tab1 AS cor0
----
95
-59
95
-68
95
-96

query I rowsort
SELECT DISTINCT 89 * 42 FROM tab2 WHERE - + col0 IN ( 69 * - col2 )
----

query I rowsort
SELECT ALL col1 * + col2 + col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 25 NOT BETWEEN 52 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6832
SELECT DISTINCT - col0 + - col0 AS col1, + CAST( NULL AS SIGNED ) FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

skipif mysql # not compatible
query II rowsort label-6832
SELECT DISTINCT - col0 + - col0 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

query I rowsort
SELECT 96 - + col1 AS col0 FROM tab1 WHERE ( col0 + col1 - col0 * + col2 ) >= NULL
----

query I rowsort
SELECT ALL + - col0 * - + col1 + 51 FROM tab0 AS cor0
----
1266
148
1878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT DISTINCT + col2 * + + ( - CAST( NULL AS SIGNED ) ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + col2 * + + ( - CAST ( NULL AS INTEGER ) ) + col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 90 FROM tab2 cor0 WHERE NOT ( NOT - + col0 NOT IN ( col2 + - col0 ) )
----
90

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 91 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - ( + - 99 ), - col2 AS col1 FROM tab0 AS cor0
----
99
-10
99
-47
99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT ALL SUM( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6841
SELECT ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * 26 + + 71 AS col0 FROM tab0 AS cor0 WHERE NOT - 34 * col2 NOT BETWEEN ( + 23 ) AND + col2
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( 53 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 79 + + col1 * - ( - col1 ) AS col0 FROM tab0
----
7314
7664
7746

query I rowsort
SELECT ALL - 89 * - + col2 + - - col2 AS col1 FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT COUNT( * ) - - 78 + COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6846
SELECT COUNT ( * ) - - 78 + COUNT ( * ) FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT 24 + + COUNT( * ) AS col0 FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6847
SELECT 24 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
27

query I rowsort
SELECT ALL + col2 - - + 14 + + col0 AS col2 FROM tab0 AS cor0
----
111
210
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6849
SELECT DISTINCT + + col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT + + col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT ( + - COUNT( * ) ) * + 43 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT ( + - COUNT ( * ) ) * + 43 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT DISTINCT 93 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 7 - + col2 + - - 68 + - - col1 + - col2 * col2 * + col1 * + ( col2 ) FROM tab0 AS cor0
----
-20928
-8409568
-970336

query I rowsort
SELECT + ( 53 ) + 80 FROM tab0 AS cor0
----
133
133
133

query I rowsort
SELECT ( - + 36 ) + - col2 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT - + 46 * + col0 + - - col2 FROM tab0 AS cor0
----
-3992
-4363
-643

query III rowsort
SELECT * FROM tab1 WHERE ( - 47 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT ALL ( + MIN( col0 ) ) - - - COUNT( * ) DIV + - 79 AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL ( + MIN ( col0 ) ) - - - COUNT ( * ) / + - 79 AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL = + col1 * - + col0
----
0

skipif mysql # not compatible
query I rowsort label-6858
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL = + col1 * - + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6859
SELECT ALL - 73 DIV COUNT( * ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL - 73 / COUNT ( * ) AS col0 FROM tab0
----
-24

query I rowsort
SELECT - 11 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( + col1 / col2 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT + SUM( ALL - + col1 ) * + 41 AS col2 FROM tab2
----
-7995

skipif mysql # not compatible
query I rowsort label-6862
SELECT + SUM ( ALL - + col1 ) * + 41 AS col2 FROM tab2
----
-7995

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6863
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 76 * - - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-3445
-4787
-5633

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN + 29 AND ( - + 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT ( - COUNT( * ) ) * + - 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT ( - COUNT ( * ) ) * + - 64 FROM tab0
----
192

query II rowsort
SELECT ALL 31 * 28 AS col0, - col0 AS col2 FROM tab2
----
868
-46
868
-64
868
-75

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + 77 < - 12
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - 5 * - col0 + 95 / + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6872
SELECT + col0 + + - 34 / - col2 + - 15 + + col1 * + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT + col0 + + - 34 / - col2 + - 15 + + col1 * + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT ALL ( - + CAST( + + col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL ( - + CAST ( + + col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT col0 + col2 FROM tab2 AS cor0 WHERE NOT + 34 + col0 + - col2 / - 14 IN ( - col0 + - col2 * - col1 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - COUNT( * ) + - 26 * - COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6875
SELECT - COUNT ( * ) + - 26 * - COUNT ( * ) FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN NULL AND + 16 + ( - 45 ) / + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN NULL AND + 16 + ( - 45 ) / + col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT - col1 DIV - col0 + + + 15 - + col1 + - - 72 * 16 FROM tab2 AS cor0
----
1091
1100
1117

skipif mysql # not compatible
query I rowsort label-6877
SELECT - col1 / - col0 + + + 15 - + col1 + - - 72 * 16 FROM tab2 AS cor0
----
1091
1100
1117

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT ALL - 94 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - 94 / col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL 39 - + col0 * + ( col2 ) col2 FROM tab1 AS cor0 WHERE NOT CAST( 96 AS SIGNED ) <= - - col1 + - ( col0 )
----
-4857
-4976
-6149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6880
SELECT ALL 39 - + col0 * + ( col2 ) col2 FROM tab1 AS cor0 WHERE NOT CAST ( 96 AS INTEGER ) <= - - col1 + - ( col0 )
----
-4857
-4976
-6149

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 1 - + 26 NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT COUNT( DISTINCT + - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6882
SELECT COUNT ( DISTINCT + - col0 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT col0, 49 FROM tab2
----
46
49
64
49
75
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT SUM( 16 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6884
SELECT SUM ( 16 ) FROM tab0
----
48

query I rowsort
SELECT DISTINCT - 54 + - col0 AS col2 FROM tab0
----
-141
-151
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6886
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL 36 * ( - 43 ) * + CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL 36 * ( - 43 ) * + CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE - col0 * col0 + + col2 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT DISTINCT col2 + - col0 DIV - col1 AS col0 FROM tab2 cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT col2 + - col0 / - col1 AS col0 FROM tab2 cor0
----
23
40
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL + + SUM( 48 ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + + SUM ( 48 ) FROM tab1 AS cor0
----
144

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL - - MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE + col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - - MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE + col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - MIN( ALL 84 ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-6894
SELECT - MIN ( ALL 84 ) AS col0 FROM tab0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col2 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT col2 * + 90 FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - COUNT( ALL - col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6897
SELECT - COUNT ( ALL - col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT + col2 + - - col1 / col1 FROM tab1 WHERE NOT - col0 NOT IN ( 32 )
----

query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab0
----
-28

query I rowsort
SELECT DISTINCT + 21 * - col2 * - col2 FROM tab2
----
11109
33600
70644

onlyif mysql # DIV for integer division: 
query II rowsort label-6901
SELECT ALL col1, 52 DIV - col2 FROM tab2
----
51
-2
67
0
77
-1

skipif mysql # not compatible
query II rowsort label-6901
SELECT ALL col1, 52 / - col2 FROM tab2
----
51
-2
67
0
77
-1

query I rowsort
SELECT DISTINCT 95 * - - 47 FROM tab2
----
4465

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 BETWEEN + col0 AND NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 82 AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

onlyif mysql # aggregate syntax: 
query II rowsort label-6905
SELECT 72 col0, COUNT( * ) FROM tab2
----
72
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6905
SELECT 72 col0, COUNT ( * ) FROM tab2
----
72
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 * col2, - ( + + 54 ) + - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 31 + - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 31 + - - col2 )
----
0

query I rowsort
SELECT DISTINCT - - 14 AS col1 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT - - CAST( col1 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-6910
SELECT - - CAST ( col1 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 27 * - col0 * - col2 FROM tab1 AS cor0
----
132192
135405
167076

query I rowsort
SELECT DISTINCT col1 * + col1 * - - col0 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL + + COUNT( DISTINCT 48 ) * - - 79 - - + COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + + COUNT ( DISTINCT 48 ) * - - 79 - - + COUNT ( * ) FROM tab1 AS cor0
----
82

query I rowsort
SELECT + - 88 + - + col0 * col0 FROM tab0 AS cor0
----
-313
-7657
-9497

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - 60 + COUNT( - col2 ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6916
SELECT - 60 + COUNT ( - col2 ) AS col2 FROM tab1
----
-57

query II rowsort
SELECT DISTINCT - + col2 AS col1, + col1 - - + col0 FROM tab0 WHERE col2 * - 40 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT - 9 * - CAST( NULL AS SIGNED ) + col1 + - 58 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 9 * - CAST ( NULL AS INTEGER ) + col1 + - 58 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT DISTINCT - col0 * CAST( + col0 AS SIGNED ) + CAST( - col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - col0 * CAST ( + col0 AS INTEGER ) + CAST ( - col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 82 BETWEEN NULL AND col2 * + col2 + + - 14
----

query I rowsort
SELECT ALL + - 52 FROM tab1 WHERE + 23 IS NULL
----

query II rowsort
SELECT + col1 + - col0 AS col0, - col0 AS col2 FROM tab1
----
-37
-51
-44
-91
-80
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL 87 - 74 * - - COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL 87 - 74 * - - COUNT ( * ) FROM tab2 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-6924
SELECT ALL - - col0 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - - col0 / - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + col0
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6927
SELECT ALL - 81 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-6927
SELECT ALL - 81 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-81
3

query II rowsort
SELECT + col0 AS col1, + col2 AS col0 FROM tab1 cor0
----
51
96
85
59
91
68

query II rowsort
SELECT ALL + 28 AS col1, - 96 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + - 18 AS col2 FROM tab1 cor0
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) IN ( + - col1, + col0, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT CAST( NULL AS SIGNED ) * - - col2 FROM tab0 AS cor0 WHERE NOT ( col0 + + CAST( NULL AS SIGNED ) / - col1 + - col2 + + + col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-6932
SELECT CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0 WHERE NOT ( col0 + + CAST ( NULL AS INTEGER ) / - col1 + - col2 + + + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + - COUNT( + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6933
SELECT + - COUNT ( + col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - ( 65 ) AS col2 FROM tab0 AS cor0
----
-65
-65
-65

query II rowsort
SELECT 59 AS col1, 38 * 24 + + col1 + 77 FROM tab1 AS cor0
----
59
1003
59
1036
59
994

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT DISTINCT COUNT( * ), 66 AS col0 FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-6936
SELECT DISTINCT COUNT ( * ), 66 AS col0 FROM tab1 AS cor0
----
3
66

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + 22, - 11 * 18, - col0 * + - col2 - + col1 + - 69 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + - col2 + - 79 * + 47 + col2 IN ( + col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 60 + - - ( - col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL SUM( ALL col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6941
SELECT ALL SUM ( ALL col0 ) col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 44 col2 FROM tab1
----
-2068
-220
-616

query III rowsort
SELECT ALL * FROM tab0 WHERE + 86 IS NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 90 AS col1 FROM tab0
----
1890
7290
90

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = + 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + 61 col0 FROM tab1
----
117
117
117

query I rowsort
SELECT DISTINCT - - 54 * col1 FROM tab0 WHERE ( + col1 ) > col0 + + col1
----

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 + - ( - - col1 ) * 57 * - col0 AS col1 FROM tab1
----
19125
237510
35751

query I rowsort
SELECT DISTINCT - - 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT DISTINCT - 78 + - CAST( NULL AS SIGNED ) * + ( + col0 ) + col0 * - 83 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - 78 + - CAST ( NULL AS INTEGER ) * + ( + col0 ) + col0 * - 83 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - - col2 IS NULL
----

query I rowsort
SELECT - 12 FROM tab1 AS cor0 WHERE - 53 >= ( NULL )
----

query I rowsort
SELECT - - col0 + + 54 FROM tab0 AS cor0
----
141
151
69

query I rowsort
SELECT ALL + ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT ALL + col2 + - 63 + col2 DIV 59 DIV col2 FROM tab2 cor0
----
-23
-40
-5

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + col2 + - 63 + col2 / 59 / col2 FROM tab2 cor0
----
-23
-40
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 >= NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT 8 NOT BETWEEN - col0 + + - ( + - col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT - 5 DIV + 85 - + - 5 col1 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6958
SELECT - 5 / + 85 - + - 5 col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT col2 * 49 AS col0 FROM tab2
----
1127
1960
2842

query I rowsort
SELECT ALL 96 * + + col0 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT ( + col2 ) * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT ( + col2 ) * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT + CAST( NULL AS SIGNED ) * - 83 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT + CAST ( NULL AS INTEGER ) * - 83 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 70 - - - 87 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT - MIN( ALL + - col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6964
SELECT - MIN ( ALL + - col1 ) col0 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 - - 28 * - 91 - + + col2 col1 FROM tab0
----
-2558
-2595
-2647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6966
SELECT DISTINCT COUNT( * ) DIV - + 55 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT COUNT ( * ) / - + 55 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6967
SELECT + ( + - 35 ) DIV col0 + + CAST( + - col2 AS SIGNED ) col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6967
SELECT + ( + - 35 ) / col0 + + CAST ( + - col2 AS INTEGER ) col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6968
SELECT DISTINCT COUNT( * ) DIV - 54 * - - 97 + + ( COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT COUNT ( * ) / - 54 * - - 97 + + ( COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL + - 52 + MAX( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL + - 52 + MAX ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6971
SELECT DISTINCT - col1 - + col1 * - col0 * + col1 / 22 + col1 * + col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 / + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - col1 - + col1 * - col0 * + col1 / 22 + col1 * + col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 / + col2 IS NOT NULL
----

query I rowsort
SELECT - 80 FROM tab1 cor0 WHERE NOT NULL > 96
----

query I rowsort
SELECT + + col1 * + - 11 AS col0 FROM tab1 AS cor0
----
-154
-517
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6974
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - + ( + col0 ) * - + 73 AND col2
----

skipif mysql # not compatible
query III rowsort label-6974
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - + ( + col0 ) * - + 73 AND col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6975
SELECT 74, 26 DIV + 21 DIV 11 * + - col0 + + col1 * + col1 AS col2 FROM tab1
----
74
196
74
2209
74
25

skipif mysql # not compatible
query II rowsort label-6975
SELECT 74, 26 / + 21 / 11 * + - col0 + + col1 * + col1 AS col2 FROM tab1
----
74
196
74
2209
74
25

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT 0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
-3
3

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab2
----
23
40
58

query II rowsort
SELECT + 39, + col0 - + + col2 AS col1 FROM tab2
----
39
17
39
23
39
24

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - 78 FROM tab2 AS cor0 WHERE NOT col1 + - 25 <> - + col1 + col0 + + 55
----

query I rowsort
SELECT - + col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT + col0 DIV 79 AS col0 FROM tab0 WHERE ( - 34 + col0 + - col2 ) <= 11 - + col1
----
1

skipif mysql # not compatible
query I rowsort label-6983
SELECT + col0 / 79 AS col0 FROM tab0 WHERE ( - 34 + col0 + - col2 ) <= 11 - + col1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 + col2 col0, + col1 FROM tab1 cor0
----
118
5
136
47
192
14

query II rowsort
SELECT - col0 + - col2 AS col2, + 46 AS col1 FROM tab2 cor0
----
-104
46
-133
46
-69
46

query I rowsort
SELECT + col0 * - - col2 * + - col0 FROM tab1 AS cor0 WHERE 60 > NULL
----

query I rowsort
SELECT ALL 87 + - col1 FROM tab0 AS cor0
----
6
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT + MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 68 * + - 88 + - COUNT( * ) col2 FROM tab1 AS cor0
----
5981

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6989
SELECT - 68 * + - 88 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
5981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 85 col0 FROM tab1 AS cor0
----
132
90
99

query I rowsort
SELECT DISTINCT col1 * - - col0 * + 57 AS col1 FROM tab0
----
104139
5529
69255

query I rowsort
SELECT DISTINCT 5 + col1 FROM tab2
----
56
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT + SUM( + - 32 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT + SUM ( + - 32 ) FROM tab2
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-6995
SELECT - col0 * - col0 * + 50 AS col0, 94 * col0 DIV col1 * + ( - 93 ) col1 FROM tab1 WHERE NULL IS NULL
----
130050
-31806
361250
-148614
414050
-16926

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6995
SELECT - col0 * - col0 * + 50 AS col0, 94 * col0 / col1 * + ( - 93 ) col1 FROM tab1 WHERE NULL IS NULL
----
130050
-31806
361250
-148614
414050
-16926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 75 * + 59 AS col1 FROM tab1
----
4425
4425
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab0
----
12

query I rowsort
SELECT ALL - col2 + + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + MAX( DISTINCT + - ( - col2 ) ) * - 47 FROM tab1 AS cor0
----
-4512

skipif mysql # not compatible
query I rowsort label-7000
SELECT + MAX ( DISTINCT + - ( - col2 ) ) * - 47 FROM tab1 AS cor0
----
-4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT ALL + CAST( + 22 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + CAST ( + 22 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT ALL CAST( - AVG ( DISTINCT 32 ) AS SIGNED ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL CAST ( - AVG ( DISTINCT 32 ) AS INTEGER ) FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 65 * col2 FROM tab0 AS cor0
----
3055
6435
650

query I rowsort
SELECT ( - - 5 ) AS col0 FROM tab0 AS cor0
----
5
5
5

query II rowsort
SELECT DISTINCT - col0, - 91 * col2 AS col2 FROM tab0 AS cor0
----
-15
-4277
-87
-910
-97
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL + - COUNT( * ) * - + 56 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + - COUNT ( * ) * - + 56 FROM tab1 AS cor0
----
168

query I rowsort
SELECT + - col2 * + ( ( - 72 ) ) FROM tab2 AS cor0
----
1656
2880
4176

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 78 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7010
SELECT DISTINCT 59 DIV COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT 59 / COUNT ( * ) FROM tab1 AS cor0
----
19

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 72 * ( - + col2 ) * - col2 BETWEEN + - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 98 AS col2 FROM tab2 AS cor0 WHERE col1 / ( - 32 ) * col2 * col0 - + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT MAX( DISTINCT + 29 ), 65 AS col1 FROM tab2
----
29
65

skipif mysql # not compatible
query II rowsort label-7015
SELECT MAX ( DISTINCT + 29 ), 65 AS col1 FROM tab2
----
29
65

query I rowsort
SELECT - 53 + + + col0 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN - 53 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - COUNT( * ) * + 52 AS col2 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-7017
SELECT - COUNT ( * ) * + 52 AS col2 FROM tab1
----
-156

query I rowsort
SELECT DISTINCT + 83 + - + 56 * col1 * ( - - 4 ) + 81 FROM tab2
----
-11260
-14844
-17084

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT - col0 DIV 19 * - + col0 FROM tab0 AS cor0
----
0
348
485

skipif mysql # not compatible
query I rowsort label-7019
SELECT - col0 / 19 * - + col0 FROM tab0 AS cor0
----
0
348
485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT DISTINCT + - col0 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + - col0 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7021
SELECT * FROM tab0 cor0 WHERE NOT + 10 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7021
SELECT * FROM tab0 cor0 WHERE NOT + 10 < + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 63 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-63
-63
-63

query II rowsort
SELECT ALL + col1, + 51 FROM tab2 AS cor0
----
51
51
67
51
77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL 84 - - - COUNT( * ) col1 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7025
SELECT ALL 84 - - - COUNT ( * ) col1 FROM tab1
----
81

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT - + col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT 88 - + col2 * - - 53 - 73 AS col0 FROM tab1
----
-3112
-3589
-5073

query I rowsort
SELECT + 82 + col0 FROM tab0
----
169
179
97

query I rowsort
SELECT ALL - + 91 * 49 AS col0 FROM tab2 AS cor0
----
-4459
-4459
-4459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab0 cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT ALL SUM( DISTINCT - - 20 ) AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL SUM ( DISTINCT - - 20 ) AS col1 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE - + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE - + col0 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT - - 84 DIV col0 AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - - 84 / col0 AS col0 FROM tab2 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7034
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - CAST( + + 6 AS SIGNED ) * col1 + + 81 + + + col1
----

skipif mysql # not compatible
query III rowsort label-7034
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - CAST ( + + 6 AS INTEGER ) * col1 + + 81 + + + col1
----

query I rowsort
SELECT 63 * + col1 * col1 AS col2 FROM tab2 cor0
----
163863
282807
373527

query I rowsort
SELECT ALL col0 * - 72 AS col1 FROM tab0 cor0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - - MIN( ALL - 19 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7037
SELECT - - MIN ( ALL - 19 ) FROM tab1 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT + - col2 DIV + col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7038
SELECT + - col2 / + col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - ( + 11 ) FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ALL 38 * + 78 AS col2 FROM tab0 AS cor0
----
2964
2964
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT - MIN( DISTINCT + + 90 ) col1 FROM tab2
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7041
SELECT - MIN ( DISTINCT + + 90 ) col1 FROM tab2
----
-90

query II rowsort
SELECT DISTINCT col1, 35 * - col1 * - + 99 AS col1 FROM tab1
----
14
48510
47
162855
5
17325

query II rowsort
SELECT ALL + 61 AS col2, + 30 AS col1 FROM tab0
----
61
30
61
30
61
30

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 29 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7046
SELECT ALL COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

query I rowsort
SELECT + col0 + + - 95 FROM tab0
----
-8
-80
2

query I rowsort
SELECT ALL col2 * - 26 * + - 66 FROM tab1
----
101244
116688
164736

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT + ( - - col0 ) DIV + col0 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + ( - - col0 ) / + col0 AS col1 FROM tab0
----
1

query II rowsort
SELECT + - 21, + col2 AS col0 FROM tab1 cor0
----
-21
59
-21
68
-21
96

query II rowsort
SELECT ALL + col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 65 FROM tab1, tab0 AS cor0
----
65

query I rowsort
SELECT + col0 + - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 - col1 col0 FROM tab2 AS cor0
----
-103
-119
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 0 * - + 64 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 0 * - + 64 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT ALL col2 + CAST( 54 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
112
77
94

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL col2 + CAST ( 54 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
112
77
94

query I rowsort
SELECT + - col1 * col1 - - col0 + 45 AS col0 FROM tab2 AS cor0
----
-2510
-4369
-5820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT - - 83 + - CAST( - 44 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
127
127
127

skipif mysql # not compatible
query I rowsort label-7059
SELECT - - 83 + - CAST ( - 44 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
127
127
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7060
SELECT COUNT( * ) + + CAST( - - COUNT( DISTINCT 36 ) AS SIGNED ) + + COUNT( * ), 19 AS col0 FROM tab1 AS cor0
----
7
19

skipif mysql # not compatible
query II rowsort label-7060
SELECT COUNT ( * ) + + CAST ( - - COUNT ( DISTINCT 36 ) AS INTEGER ) + + COUNT ( * ), 19 AS col0 FROM tab1 AS cor0
----
7
19

query I rowsort
SELECT 4 + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-55
-64
-92

query I rowsort
SELECT - ( - + col1 ) + + col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT 28 + - MIN( 67 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT 28 + - MIN ( 67 ) FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL SUM( ALL + - 78 ) AS col0 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL SUM ( ALL + - 78 ) AS col0 FROM tab1
----
-234

query I rowsort
SELECT DISTINCT - col2 * 69 AS col1 FROM tab1 AS cor0
----
-4071
-4692
-6624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT DISTINCT CAST( + 30 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT CAST ( + 30 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
30

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col2 * - 84 + + 27 + - col0 + 75 AS col0 FROM tab2 AS cor0
----
1988
3398
4899

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT + 19 * col1 DIV 17 FROM tab2 AS cor0
----
57
74
86

skipif mysql # not compatible
query I rowsort label-7069
SELECT + 19 * col1 / 17 FROM tab2 AS cor0
----
57
74
86

query I rowsort
SELECT DISTINCT + col2 * + 50 + col2 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL 99 * + COUNT( * ) - - 69 col0 FROM tab2 AS cor0
----
366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7071
SELECT ALL 99 * + COUNT ( * ) - - 69 col0 FROM tab2 AS cor0
----
366

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE ( NOT 59 > - - col1 )
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + - col2 + - col2 AS col1, + col0 col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT ( + - 82 ) FROM tab2
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT CAST( ( 71 ) AS SIGNED ) * - col1 * 46 FROM tab0
----
-264546
-3266
-68586

skipif mysql # not compatible
query I rowsort label-7076
SELECT CAST ( ( 71 ) AS INTEGER ) * - col1 * 46 FROM tab0
----
-264546
-3266
-68586

query II rowsort
SELECT col1, - 41 AS col0 FROM tab1
----
14
-41
47
-41
5
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL COUNT( * ) + COUNT( ALL col2 ) + 84 * + 62 AS col2 FROM tab2
----
5214

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL COUNT ( * ) + COUNT ( ALL col2 ) + 84 * + 62 AS col2 FROM tab2
----
5214

query II rowsort
SELECT + 9, col0 FROM tab0
----
9
15
9
87
9
97

query I rowsort
SELECT DISTINCT + ( + 82 ) AS col1 FROM tab0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 45 NOT BETWEEN ( - - col1 / + 88 + col0 ) AND + col1 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + 38 + - col1 FROM tab1 AS cor0 WHERE - col1 * 69 IS NOT NULL
----
118
75
82

query I rowsort
SELECT DISTINCT - + 53 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-53

query III rowsort
SELECT * FROM tab1 WHERE 68 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - 27 - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7085
SELECT - 27 - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1, + col1, col1 col1 FROM tab0
----
9 values hashing to f4c2d045b47d133f3978384ca1abe7bc

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7087
SELECT ALL + col2 * col1 + - CAST( NULL AS DECIMAL ) + - + ( + col0 ) FROM tab1 AS cor0 WHERE - col1 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + col2 * col1 + - CAST ( NULL AS REAL ) + - + ( + col0 ) FROM tab1 AS cor0 WHERE - col1 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + 26 + - + 45 AS col0, + col2 * + + 41 AS col2 FROM tab2 cor0
----
-71
1640
-71
2378
-71
943

query I rowsort
SELECT DISTINCT - col2 - - ( + 97 ) FROM tab0 AS cor0
----
-2
50
87

query I rowsort
SELECT ALL 10 - + + col1 AS col0 FROM tab0 AS cor0
----
-11
-71
9

query I rowsort
SELECT DISTINCT - 26 + - + 20 + - 40 FROM tab0 cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL + CAST( - + CAST( col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE 30 >= + col1 / col2 + + - 99 * - col0
----

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL + CAST ( - + CAST ( col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE 30 >= + col1 / col2 + + - 99 * - col0
----

query I rowsort
SELECT + + 56 - 14 AS col1 FROM tab2 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - + ( col2 ) col1 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL 11 * - col0 AS col1 FROM tab1
----
-1001
-561
-935

query I rowsort
SELECT - col1 * - + 24 * + col1 AS col2 FROM tab0
----
10584
157464
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 57 * 28, 92 col1 FROM tab2
----
1596
92
1596
92
1596
92

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + - - col1 + - + 53 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab2 cor0
----
-85

query II rowsort
SELECT ALL + + col0 / 52, + col1 AS col1 FROM tab2 cor0 WHERE 94 * + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT - + COUNT( * ) * + MAX( ALL 85 ) FROM tab2 WHERE + - col1 IS NOT NULL
----
-255

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - + COUNT ( * ) * + MAX ( ALL 85 ) FROM tab2 WHERE + - col1 IS NOT NULL
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT DISTINCT + + COUNT( * ), COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7103
SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9

query II rowsort
SELECT DISTINCT + 52 AS col1, + 98 * + col0 FROM tab1 cor0
----
52
4998
52
8330
52
8918

query I rowsort
SELECT ALL - col0 + col2 + col1 - - col1 * - - col1 FROM tab1 AS cor0
----
2233
255
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7106
SELECT ALL - COUNT( * ), 21 + 55 col1 FROM tab2 cor0
----
-3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7106
SELECT ALL - COUNT ( * ), 21 + 55 col1 FROM tab2 cor0
----
-3
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, + col1 col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query II rowsort
SELECT + col1, + col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT col2 * + - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT ALL col0 DIV ( ( col1 ) ) FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL col0 / ( ( col1 ) ) FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT - col0 + + 64 + - - col2 AS col0 FROM tab2 AS cor0
----
40
41
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT + SUM( - 35 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT + SUM ( - 35 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 + 26 AS col2 FROM tab0
----
125
36
73

query I rowsort
SELECT ALL + 6 + + col1 + + col0 AS col2 FROM tab1
----
144
71
96

query I rowsort
SELECT ALL col0 * + - col1 * - 51 + - ( col2 ) AS col0 FROM tab1
----
21616
218059
36318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 75 ) + col1 + + 54 col0 FROM tab0
----
130
150
210

query I rowsort
SELECT ALL - 79 + col1 FROM tab2
----
-12
-2
-28

query I rowsort
SELECT DISTINCT - ( + + col1 ) + + col0 + + col1 * col2 + - + col1 FROM tab2
----
1117
2990
3827

query III rowsort
SELECT * FROM tab1 WHERE - col0 / - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT 70 * + AVG ( + - 13 ) + - MIN( + - ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * 63 / - 60 IS NOT NULL AND NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT 70 * + AVG ( + - 13 ) + - MIN ( + - ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * 63 / - 60 IS NOT NULL AND NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT DISTINCT + MIN( ALL col0 ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT + MIN ( ALL col0 ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
12

query I rowsort
SELECT DISTINCT + - 54 - - + 79 FROM tab1 AS cor0
----
25

query I rowsort
SELECT + col1 + + 3 + + col0 + col1 * + 98 * + 35 FROM tab2 AS cor0
----
175030
229955
264254

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - + col0 * + 58 FROM tab0 AS cor0
----
-5046
-5626
-870

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 0 + - + col1 col1 FROM tab2 AS cor0 WHERE - 99 * + + 41 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT ALL + col2 DIV 73 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + col2 / 73 AS col2 FROM tab1
----
0
0
1

query II rowsort
SELECT 93 * - 58 AS col1, col0 / - 41 FROM tab2 WHERE NOT NULL NOT IN ( + - col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7131
SELECT DISTINCT * FROM tab2 WHERE - 60 - - CAST( NULL AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query III rowsort label-7131
SELECT DISTINCT * FROM tab2 WHERE - 60 - - CAST ( NULL AS INTEGER ) <> - col0
----

query I rowsort
SELECT - - col2 * + 61 AS col1 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT ALL - + col0 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7134
SELECT DISTINCT 74 AS col0, + MIN( DISTINCT + 69 ) + + 83 - - + MAX( + - 55 ) FROM tab1 AS cor0
----
74
97

skipif mysql # not compatible
query II rowsort label-7134
SELECT DISTINCT 74 AS col0, + MIN ( DISTINCT + 69 ) + + 83 - - + MAX ( + - 55 ) FROM tab1 AS cor0
----
74
97

query I rowsort
SELECT ALL - + 18 AS col1 FROM tab0 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT + + MIN( ALL - 15 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-15

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + + MIN ( ALL - 15 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-15

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL - MAX( 93 ) col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT ALL - MAX ( 93 ) col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-93

query I rowsort
SELECT + 66 + col0 * - col2 * - col0 AS col0 FROM tab0 AS cor0
----
10641
75756
931557

query I rowsort
SELECT - + col1 + - col0 + + ( - 5 ) * + ( - 89 ) FROM tab1 AS cor0
----
307
355
380

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + col0 FROM tab0 WHERE 66 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT - MAX( + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7145
SELECT - MAX ( + col1 ) AS col2 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 + - - 78 - + + col2 <> NULL
----

query I rowsort
SELECT ALL + col2 + + col0 * + + ( + col0 ) - - + col0 * - 58 AS col1 FROM tab2 AS cor0
----
-529
1333
424

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT ALL + 67 DIV - col1 + + + col2 FROM tab2 cor0
----
22
40
57

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL + 67 / - col1 + + + col2 FROM tab2 cor0
----
22
40
57

query I rowsort
SELECT + col0 + + 59 + - + col1 AS col2 FROM tab0 AS cor0
----
-7
125
155

query I rowsort
SELECT ALL col0 - - - col2 FROM tab0 AS cor0
----
-2
-32
77

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT ( + 87 ) BETWEEN - 92 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT + 86 - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + 86 - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - 31
----

query I rowsort
SELECT - + 90 AS col2 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL + 87 * COUNT( * ) col1 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7155
SELECT ALL + 87 * COUNT ( * ) col1 FROM tab1 AS cor0
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT DISTINCT + CAST( NULL AS SIGNED ) / MAX( + - col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / MAX ( + - col2 ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
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-7157
SELECT CAST ( NULL AS INTEGER ) * - - col0 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 <> NULL
----

query I rowsort
SELECT DISTINCT - - 27 * + + col2 FROM tab2 cor0
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - COUNT( DISTINCT + col2 ) * - - COUNT( col2 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7160
SELECT - COUNT ( DISTINCT + col2 ) * - - COUNT ( col2 ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT ALL - + 2 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - + 2 / col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + col1 ) <= NULL
----

query II rowsort
SELECT DISTINCT + 31, col1 AS col1 FROM tab2
----
31
51
31
67
31
77

query I rowsort
SELECT ALL 35 + - col1 * - col1 FROM tab1
----
2244
231
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT DISTINCT - col0 DIV + ( + - 35 ) AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT - col0 / + ( + - 35 ) AS col0 FROM tab1 AS cor0
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7166
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( - col2 AS SIGNED ) ) <= CAST( 29 AS SIGNED ) * - + col1
----

skipif mysql # not compatible
query III rowsort label-7166
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) <= CAST ( 29 AS INTEGER ) * - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - + col0 IS NULL AND + 70 IS NULL
----

query II rowsort
SELECT ALL - - 57, col1 AS col0 FROM tab1 AS cor0
----
57
14
57
47
57
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + COUNT( + - 99 ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT + COUNT ( + - 99 ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT SUM( ALL col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT SUM ( ALL col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT 33 + + col1 FROM tab2 AS cor0
----
100
110
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT COUNT( * ) + + 46 + + ( + - COUNT( * ) ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7172
SELECT COUNT ( * ) + + 46 + + ( + - COUNT ( * ) ) AS col2 FROM tab2
----
46

query II rowsort
SELECT col0 + - - col2, 24 + + ( - col2 ) * - col1 AS col1 FROM tab2
----
104
3104
133
3910
69
1197

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7175
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 * + ( - + col0 ) * + col0 * - + col2 + + col1 AS col1, 65 FROM tab2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7175
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 * + ( - + col0 ) * + col0 * - + col2 + + col1 AS col1, 65 FROM tab2
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT + 84 + - 32 + - - COUNT( + 44 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + 84 + - 32 + - - COUNT ( + 44 ) AS col0 FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT + 3 + + col2 + + - 0 DIV col1 FROM tab1 AS cor0
----
62
71
99

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + 3 + + col2 + + - 0 / col1 FROM tab1 AS cor0
----
62
71
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 - 27 < + col0 / 22 + + - col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + SUM( ALL - 42 ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-7179
SELECT + SUM ( ALL - 42 ) FROM tab0 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT - - COUNT( + col2 ) - 92 AS col2 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - - COUNT ( + col2 ) - 92 AS col2 FROM tab1 AS cor0
----
-89

query II rowsort
SELECT + - col2 - + + col0 AS col2, - 90 FROM tab0 AS cor0
----
-196
-90
-62
-90
-97
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7182
SELECT ALL - CAST( NULL AS DECIMAL ) - + 51 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL - CAST ( NULL AS REAL ) - + 51 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT col2 DIV + col1 * + ( - 8 ) + col1 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7183
SELECT col2 / + col1 * + ( - 8 ) + col1 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col0 * + 23 FROM tab0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + COUNT( ALL + + col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7185
SELECT + COUNT ( ALL + + col2 ) col0 FROM tab1
----
3

query II rowsort
SELECT + 70, + 51 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 52bbbbf3350b4dfbbf3f465a71bd1953

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT DISTINCT - 47 DIV - col0 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT - 47 / - col0 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT + col2 DIV - + 32 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT + col2 / - + 32 AS col0 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL > + - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7191
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7191
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * col2 * - + ( col2 ) FROM tab1
----
-1479425
-19776848
-6580224

query I rowsort
SELECT 11 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT ALL col1 FROM tab0 WHERE col0 * - col1 - - - CAST( 81 AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL col1 FROM tab0 WHERE col0 * - col1 - - - CAST ( 81 AS INTEGER ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * col0 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col2 NOT BETWEEN - 42 AND NULL
----

query I rowsort
SELECT 8 * + - 66 AS col1 FROM tab0
----
-528
-528
-528

query I rowsort
SELECT - 12 * 99 AS col2 FROM tab1
----
-1188
-1188
-1188

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7200
SELECT + SUM( DISTINCT - 91 ) AS col0, 9 + - - MAX( + col0 ) FROM tab0 AS cor0
----
-91
106

skipif mysql # not compatible
query II rowsort label-7200
SELECT + SUM ( DISTINCT - 91 ) AS col0, 9 + - - MAX ( + col0 ) FROM tab0 AS cor0
----
-91
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT + COUNT( * ) DIV + + 87 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT + COUNT ( * ) / + + 87 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 65 * - col2 AS col2 FROM tab2 AS cor0
----
1495
2600
3770

query I rowsort
SELECT + ( - - 4 ) * - 23 + + col1 * + 95 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
4753
6273
7223

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7205
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - - 99 AS col0 FROM tab2
----
145
163
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT - 69 + COUNT( * ) AS col1 FROM tab0 cor0 WHERE + col1 * + col2 IS NULL
----
-69

skipif mysql # not compatible
query I rowsort label-7207
SELECT - 69 + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE + col1 * + col2 IS NULL
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7208
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) ) + + + col2 col1, col2 AS 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-7208
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) + + + col2 col1, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + + 18 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 1 + + + 13 * + - col0 AS col1 FROM tab0 AS cor0
----
-1218
-1358
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NULL IN ( + 79, 5 * - - ( - - col0 ) + + col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NULL IN ( + 79, 5 * - - ( - - col0 ) + + col0, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + 31 * - + col2 BETWEEN 71 * - 2 + + 14 AND + 95 + + 68
----
3

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + 31 * - + col2 BETWEEN 71 * - 2 + + 14 AND + 95 + + 68
----
3

query I rowsort
SELECT ALL - 28 FROM tab1 AS cor0 WHERE NOT 17 IS NULL
----
-28
-28
-28

query I rowsort
SELECT ALL + 38 FROM tab0 WHERE NOT NULL IS NOT NULL
----
38
38
38

query I rowsort
SELECT DISTINCT + col1 * - col1 * + col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT - CAST( NULL AS SIGNED ) - 73 + + 81 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT - CAST ( NULL AS INTEGER ) - 73 + + 81 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT ALL - ( + COUNT( * ) ) AS col1, + 66 - + + 73 FROM tab2
----
-3
-7

skipif mysql # not compatible
query II rowsort label-7217
SELECT ALL - ( + COUNT ( * ) ) AS col1, + 66 - + + 73 FROM tab2
----
-3
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT col2 * + 95 + + - col1 * - - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
658
740
9306

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT col2 * + 95 + + - col1 * - - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
658
740
9306

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-23
67
-58
77
-40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 5
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT + COUNT( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7223
SELECT + COUNT ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 * col2, col2 AS col0 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT - - 96 FROM tab2 WHERE NOT NULL > + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7226
SELECT DISTINCT 90 * + - ( 96 ) DIV - - ( - COUNT( * ) ), COUNT( * ) AS col2 FROM tab2
----
2880
3

skipif mysql # not compatible
query II rowsort label-7226
SELECT DISTINCT 90 * + - ( 96 ) / - - ( - COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab2
----
2880
3

query I rowsort
SELECT ALL + 71 AS col2 FROM tab1 WHERE NOT 72 IS NULL
----
71
71
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) - + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL - - COUNT( DISTINCT 38 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL - - COUNT ( DISTINCT 38 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + 24 * + + 21 col1 FROM tab2 AS cor0
----
-2576
-3382
-669

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 = NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, - 10 FROM tab2
----
46
-10
64
-10
75
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + 4 * - COUNT( * ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7235
SELECT + 4 * - COUNT ( * ) AS col2 FROM tab1
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37, 42 * - + 8 col1 FROM tab2
----
37
-336
37
-336
37
-336

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7237
SELECT DISTINCT + 68 * - CAST( NULL AS DECIMAL ) * col1 col1, + 19 FROM tab1
----
NULL
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7237
SELECT DISTINCT + 68 * - CAST ( NULL AS REAL ) * col1 col1, + 19 FROM tab1
----
NULL
19

query II rowsort
SELECT col2 AS col1, 59 AS col2 FROM tab0
----
10
59
47
59
99
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT ALL - CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 87 * col1 + + ( - col0 ) * col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 39 * + 75 FROM tab2 AS cor0
----
-2925
-2925
-2925

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 48 * col1 + col1 NOT IN ( + 32 + + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT + COUNT( * ) * - 73 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT + COUNT ( * ) * - 73 FROM tab2
----
-219

query I rowsort
SELECT ALL 99 * + col0 AS col1 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL ( COUNT( * ) ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL ( COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7247
SELECT ALL * FROM tab1 WHERE NOT + CAST( 15 AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7247
SELECT ALL * FROM tab1 WHERE NOT + CAST ( 15 AS INTEGER ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT col0 * + col2 - col1 * + 43 FROM tab0 WHERE NOT - 33 * col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7248
SELECT col0 * + col2 - col1 * + 43 FROM tab0 WHERE NOT - 33 * col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL col1 * + col1 FROM tab0 WHERE NOT NULL <> col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT NULL > 13 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL > 13 * - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7251
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE ( NULL ) > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - col0 + col0 * + col1
----

query I rowsort
SELECT ALL 65 FROM tab0 WHERE 2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 32 FROM tab2 WHERE NULL NOT BETWEEN col2 AND + col1 * + ( col0 )
----

query I rowsort
SELECT DISTINCT col1 + - ( col2 ) FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - MIN( - 27 ) * 39 FROM tab2
----
1053

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MIN ( - 27 ) * 39 FROM tab2
----
1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT DISTINCT COUNT( * ) - + 87 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT COUNT ( * ) - + 87 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * + 8 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT - 8 + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - 8 + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT DISTINCT + col1 * 65 FROM tab1 WHERE + col2 + + col2 / 21 <> ( + CAST( 85 AS SIGNED ) + 30 )
----
3055
325
910

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT + col1 * 65 FROM tab1 WHERE + col2 + + col2 / 21 <> ( + CAST ( 85 AS INTEGER ) + 30 )
----
3055
325
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT DISTINCT - 62 DIV 89 + COUNT( * ) * 97 FROM tab0 WHERE NULL <> 79
----
0

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT - 62 / 89 + COUNT ( * ) * 97 FROM tab0 WHERE NULL <> 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT 36 + COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7263
SELECT 36 + COUNT ( * ) FROM tab0
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + - col1 IS NULL
----

query I rowsort
SELECT col0 + col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7266
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT + col2 AS col1 FROM tab2 WHERE NOT col1 NOT BETWEEN col0 + + CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-7267
SELECT + col2 AS col1 FROM tab2 WHERE NOT col1 NOT BETWEEN col0 + + CAST ( NULL AS INTEGER ) AND + col1
----

query I rowsort
SELECT 80 + col0 * + 32 AS col0 FROM tab0
----
2864
3184
560

query I rowsort
SELECT ( + col0 ) + 76 * 91 FROM tab2
----
6962
6980
6991

query I rowsort
SELECT 85 * + col1 AS col0 FROM tab1
----
1190
3995
425

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT ALL col1 DIV + ( + col2 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL col1 / + ( + col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 86 * + col0 FROM tab2
----
3956
5504
6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT 61 * - ( col1 * col2 ) - - 9 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT 61 * - ( col1 * col2 ) - - 9 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col2 col2 FROM tab2 WHERE col0 / + 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - MIN( + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7275
SELECT - MIN ( + col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT 9 * col0 - + col0 AS col0 FROM tab1
----
408
680
728

query I rowsort
SELECT + col2 + + 75 * + col2 AS col0 FROM tab2
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - 29 + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - 29 + + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT COUNT( * ) * 15 + + MAX( DISTINCT col1 ) AS col0 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-7279
SELECT COUNT ( * ) * 15 + + MAX ( DISTINCT col1 ) AS col0 FROM tab2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT col1 + + 88 DIV col0 FROM tab0
----
1
22
86

skipif mysql # not compatible
query I rowsort label-7280
SELECT col1 + + 88 / col0 FROM tab0
----
1
22
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT - COUNT( * ) + - 70 AS col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT - COUNT ( * ) + - 70 AS col2 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT - col0 * - ( col1 * col2 ) AS col0 FROM tab2 cor0 WHERE + 14 IS NOT NULL
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT + 49 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7283
SELECT + 49 / col0 AS col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( 8 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - 13 ) ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 85 * - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 8 AS col0 FROM tab2 WHERE NOT - col1 * ( 94 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT + + 89 DIV 62 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7288
SELECT + + 89 / 62 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT + + COUNT( * ) * COUNT( - 51 ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7289
SELECT + + COUNT ( * ) * COUNT ( - 51 ) AS col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 - 69 ) = - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 60 col0 FROM tab1 AS cor0
----
-3540
-4080
-5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7292
SELECT + 80 DIV SUM( - 24 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7292
SELECT + 80 / SUM ( - 24 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT COUNT( * ) + - COUNT( * ) * 53 AS col2 FROM tab0 cor0 WHERE NOT - 1 + - 94 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7293
SELECT COUNT ( * ) + - COUNT ( * ) * 53 AS col2 FROM tab0 cor0 WHERE NOT - 1 + - 94 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT ALL + 23 + CAST( 53 AS SIGNED ) * + 24 FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
1295
1295
1295

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + 23 + CAST ( 53 AS INTEGER ) * + 24 FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
1295
1295
1295

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT - SUM( - 46 ) AS col1 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7295
SELECT - SUM ( - 46 ) AS col1 FROM tab0 AS cor0
----
138

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 WHERE ( + col1 ) <> col1 + col1
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 50 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + 5 + col0 * col2 BETWEEN ( - 44 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 2 + 74 ) NOT IN ( - ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + + 57 col0 FROM tab0 AS cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT - ( - - 51 ) FROM tab0
----
-51
-51
-51

query I rowsort
SELECT + ( 72 ) * col1 + 95 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col0 * + 47 NOT IN ( - col1 )
----
51
67
77

query I rowsort
SELECT ALL - col2 * - 48 * - col1 FROM tab1
----
-14160
-153408
-64512

query I rowsort
SELECT + col2 * + + 24 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col0 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col0 < ( NULL )
----
0

query I rowsort
SELECT ALL + + 71 * col2 AS col0 FROM tab2 cor0
----
1633
2840
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT CAST( NULL AS SIGNED ) + col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT CAST ( NULL AS INTEGER ) + col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7309
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) / 36 IS NOT NULL AND NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) / 36 IS NOT NULL AND NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT COUNT( * ) + SUM( DISTINCT + col1 ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7311
SELECT COUNT ( * ) + SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT col0 + + 27 - - col1 DIV + ( col2 ) FROM tab2
----
103
75
92

skipif mysql # not compatible
query I rowsort label-7312
SELECT col0 + + 27 - - col1 / + ( col2 ) FROM tab2
----
103
75
92

query I rowsort
SELECT DISTINCT - 10 * 72 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-720

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT DISTINCT col1 + - col1 + - col2 DIV ( + col2 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT col1 + - col1 + - col2 / ( + col2 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7316
SELECT ALL + CAST( NULL AS DECIMAL ) + - - col0 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + CAST ( NULL AS REAL ) + - - col0 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT + MIN( DISTINCT 84 ) + - - 98 AS col2 FROM tab0 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT + MIN ( DISTINCT 84 ) + - - 98 AS col2 FROM tab0 AS cor0
----
182

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 57 - + - col0 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 - col1 + + ( col1 ) * + 26 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7320
SELECT - CAST( col0 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - col2 * + col1
----

skipif mysql # not compatible
query I rowsort label-7320
SELECT - CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - col2 * + col1
----

query I rowsort
SELECT col2 / col1 AS col0 FROM tab2 AS cor0 WHERE 63 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + col1 - + 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT + - COUNT( * ) - + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7323
SELECT + - COUNT ( * ) - + + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7324
SELECT DISTINCT col1 AS col0, - col2 + + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7324
SELECT DISTINCT col1 AS col0, - col2 + + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * col0 - 42 AS col1 FROM tab0 AS cor0 WHERE + 34 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT 30 - - col2 + - col1 - + 70 * - col0 AS col2 FROM tab0
----
1046
6109
6918

query I rowsort
SELECT + - AVG ( DISTINCT + + 15 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 78 AS col2 FROM tab0 WHERE - 24 IS NOT NULL
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT 86 * + COUNT( DISTINCT - + col2 ) + MAX( ALL col2 ) AS col0 FROM tab1
----
354

skipif mysql # not compatible
query I rowsort label-7330
SELECT 86 * + COUNT ( DISTINCT - + col2 ) + MAX ( ALL col2 ) AS col0 FROM tab1
----
354

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7331
SELECT * FROM tab2 WHERE NOT ( + col1 + CAST( NULL AS DECIMAL ) - 39 ) = + ( + ( - 78 ) ) / 56
----

skipif mysql # not compatible
query III rowsort label-7331
SELECT * FROM tab2 WHERE NOT ( + col1 + CAST ( NULL AS REAL ) - 39 ) = + ( + ( - 78 ) ) / 56
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT - COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 37 col1 FROM tab1 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT SUM( + - 93 ) FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT SUM ( + - 93 ) FROM tab2
----
-279

query I rowsort
SELECT ALL + col2 + - 23 FROM tab2 cor0
----
0
17
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL COUNT( ALL + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL COUNT ( ALL + + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col0 + + col1 FROM tab0 AS cor0 WHERE NOT - col0 <> + col0 - + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL - MAX( - - col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - MAX ( - - col2 ) AS col2 FROM tab0 cor0
----
-99

query II rowsort
SELECT + + 58 AS col0, + col2 AS col1 FROM tab2 AS cor0
----
58
23
58
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 col2 FROM tab0 AS cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - + col0, 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT 13 + + - MIN( col0 ) FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-7347
SELECT 13 + + - MIN ( col0 ) FROM tab1
----
-38

query I rowsort
SELECT col2 + 61 AS col1 FROM tab1
----
120
129
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL - MIN( + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - MIN ( + col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT + CAST( NULL AS SIGNED ) * - 23 * + 94 / + col1 + - 87 * + + ( col1 ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT + CAST ( NULL AS INTEGER ) * - 23 * + 94 / + col1 + - 87 * + + ( col1 ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL + 12 * 42 + COUNT( * ) AS col0 FROM tab2 WHERE - 98 * - col2 - + col1 NOT IN ( - col1 )
----
507

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + 12 * 42 + COUNT ( * ) AS col0 FROM tab2 WHERE - 98 * - col2 - + col1 NOT IN ( - col1 )
----
507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT DISTINCT - SUM( ALL + - CAST( NULL AS SIGNED ) ) + 0 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7352
SELECT DISTINCT - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + 0 col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - ( - COUNT( * ) ) * - - COUNT( * ) + COUNT( + 59 ) + - 57 AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7354
SELECT - ( - COUNT ( * ) ) * - - COUNT ( * ) + COUNT ( + 59 ) + - 57 AS col0 FROM tab2
----
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + col1 * - - col0 + col0 + + + col2
----

query I rowsort
SELECT DISTINCT col2 + + - 57 AS col1 FROM tab1
----
11
2
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - ( SUM( DISTINCT - - 84 ) ) * - - MIN( col1 ) FROM tab2 AS cor0
----
-4284

skipif mysql # not compatible
query I rowsort label-7358
SELECT - ( SUM ( DISTINCT - - 84 ) ) * - - MIN ( col1 ) FROM tab2 AS cor0
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + COUNT( + - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7359
SELECT + COUNT ( + - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT + + 54 BETWEEN + + ( - col2 ) AND - - 64
----

query I rowsort
SELECT - ( + col1 ) * - col1 + + 14 * + col0 - - - 85 FROM tab2
----
3160
5454
6740

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL - 39 + COUNT( * ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL - 39 + COUNT ( * ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT + col0 + - - col2 + + 33 * col1 + + - 51 * - 82 AS col1 FROM tab0 AS cor0
----
4411
4972
6917

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( + - col1 ) + - col1 + ( - - col2 ) <= - 70
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT + 49 + col1 + col0 + col0 + - col2 DIV + col2 FROM tab1 cor0
----
164
223
277

skipif mysql # not compatible
query I rowsort label-7365
SELECT + 49 + col1 + col0 + col0 + - col2 / + col2 FROM tab1 cor0
----
164
223
277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + col1 + - - col1 col2 FROM tab0 AS cor0
----
166
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + - MIN( - + 33 ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT + - MIN ( - + 33 ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT DISTINCT col2 - + - col0 * + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT col2 - + - col0 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - 63, - col0 * 87 FROM tab2 cor0 WHERE ( 99 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT - 99 / + col1 + + col1 - 34 * - col2 * + CAST( NULL AS SIGNED ) + - col2 * - 5 col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7370
SELECT DISTINCT - 99 / + col1 + + col1 - 34 * - col2 * + CAST ( NULL AS INTEGER ) + - col2 * - 5 col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL

query I rowsort
SELECT ALL 98 + + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + col2 + + col0 ) >= + 59 * + 72 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * 47 + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 * - - col1 - + 65 - - + ( + - col0 ) + - col1 + + col1 + + col0 BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL COUNT( - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL COUNT ( - col1 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 12 * 0 AS col2 FROM tab0
----
0

query I rowsort
SELECT 90 * - - ( + 17 ) + + 25 AS col1 FROM tab0 AS cor0
----
1555
1555
1555

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( col1 )
----

query II rowsort
SELECT col1 AS col2, + col0 + + + col2 * + col1 FROM tab1 AS cor0
----
14
1395
47
3287
5
380

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7380
SELECT - CAST( NULL AS DECIMAL ) AS col0, - 92 DIV col2 FROM tab0 cor0
----
NULL
-1
NULL
-9
NULL
0

skipif mysql # not compatible
query II rowsort label-7380
SELECT - CAST ( NULL AS REAL ) AS col0, - 92 / col2 FROM tab0 cor0
----
NULL
-1
NULL
-9
NULL
0

query II rowsort
SELECT + col0, - 99 FROM tab1 AS cor0
----
51
-99
85
-99
91
-99

query I rowsort
SELECT DISTINCT + 2 * - 27 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL SUM( ALL - ( + + col0 ) ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL SUM ( ALL - ( + + col0 ) ) AS col2 FROM tab1
----
-227

query II rowsort
SELECT + 42 + - - col0 AS col0, col2 AS col0 FROM tab0
----
129
10
139
99
57
47

query II rowsort
SELECT ALL col1 + - 53 AS col2, + 7 - col2 FROM tab0 AS cor0
----
-32
-3
-52
-92
28
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT 4 * 58 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 4 * 58 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7387
SELECT + COUNT( * ) DIV - - 21 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT + COUNT ( * ) / - - 21 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <> 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7389
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 + - + CAST( NULL AS SIGNED ) * - col0 / + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7389
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 + - + CAST ( NULL AS INTEGER ) * - col0 / + + CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= + col0
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col2 FROM tab2
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT + col1 DIV + + 12 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7392
SELECT + col1 / + + 12 AS col1 FROM tab0
----
0
1
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * + col0 col2 FROM tab1
----
1173
1955
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL SUM( DISTINCT - + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL SUM ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT 14 + - col1 FROM tab2
----
-37
-53
-63

query I rowsort
SELECT ALL - col1 * col2 * - 65 + + - 25 FROM tab2
----
200175
252565
76220

query I rowsort
SELECT DISTINCT + col1 - 48 FROM tab0 AS cor0
----
-27
-47
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL 66 + - SUM( col1 ) + - 32 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 66 + - SUM ( col1 ) + - 32 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 90 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7400
SELECT ALL COUNT( * ), COUNT( * ) + SUM( ALL - CAST( - col1 AS SIGNED ) ) - + 52 AS col1 FROM tab1
----
3
17

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL COUNT ( * ), COUNT ( * ) + SUM ( ALL - CAST ( - col1 AS INTEGER ) ) - + 52 AS col1 FROM tab1
----
3
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT DISTINCT col2 * 15 / - CAST( NULL AS SIGNED ) * 88 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT col2 * 15 / - CAST ( NULL AS INTEGER ) * 88 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 46 + 32 * + + col1 * + col2 FROM tab2 cor0
----
124398
37582
98606

query I rowsort
SELECT DISTINCT 68 FROM tab2 AS cor0 WHERE NULL IN ( + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - ( - 79 ) * - COUNT( * ) * - + 15 AS col1 FROM tab0
----
3555

skipif mysql # not compatible
query I rowsort label-7404
SELECT - ( - 79 ) * - COUNT ( * ) * - + 15 AS col1 FROM tab0
----
3555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7405
SELECT ALL CAST( + + 65 AS SIGNED ) AS col2, col2 FROM tab0
----
65
10
65
47
65
99

skipif mysql # not compatible
query II rowsort label-7405
SELECT ALL CAST ( + + 65 AS INTEGER ) AS col2, col2 FROM tab0
----
65
10
65
47
65
99

query I rowsort
SELECT DISTINCT - 2 * - 8 * + col0 AS col2 FROM tab2
----
1024
1200
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT COUNT( CAST( col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7407
SELECT COUNT ( CAST ( col2 AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 69 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 69 IS NOT NULL
----
0

query II rowsort
SELECT - - ( - col2 ) AS col1, col1 FROM tab1 cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + MAX( ALL - - col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7410
SELECT + MAX ( ALL - - col0 ) FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + - col2 / + + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL COUNT( * ) + + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 * - col0 IS NULL
----

query I rowsort
SELECT ALL 9 + col2 AS col2 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + 89 * COUNT( * ) AS col0 FROM tab2 cor0
----
267

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + 89 * COUNT ( * ) AS col0 FROM tab2 cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL + - MAX( + col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7416
SELECT ALL + - MAX ( + col1 ) col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL + - MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + - MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 94 * - + col2
----

query I rowsort
SELECT 95 + - ( - - 23 ) + - col0 * 62 AS col1 FROM tab1
----
-3090
-5198
-5570

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT ALL + 45 * col0 * - col2 DIV - col2 FROM tab0
----
3915
4365
675

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + 45 * col0 * - col2 / - col2 FROM tab0
----
3915
4365
675

query I rowsort
SELECT ALL - - 27 * + 51 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 24 * + 60 FROM tab0
----
1440
1440
1440

onlyif mysql # DIV for integer division: 
query II rowsort label-7423
SELECT + col2 + + - col0 + col0 DIV - col1 AS col2, - 8 col2 FROM tab1
----
-24
-8
-43
-8
42
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7423
SELECT + col2 + + - col0 + col0 / - col1 AS col2, - 8 col2 FROM tab1
----
-24
-8
-43
-8
42
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - - 21 * 82 * SUM( DISTINCT - + col0 ) AS col1 FROM tab1 WHERE - ( 79 ) NOT BETWEEN NULL AND col2 * - col1 + - col2 + + + col1
----
-390894

skipif mysql # not compatible
query I rowsort label-7425
SELECT - - 21 * 82 * SUM ( DISTINCT - + col0 ) AS col1 FROM tab1 WHERE - ( 79 ) NOT BETWEEN NULL AND col2 * - col1 + - col2 + + + col1
----
-390894

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT 77 * + COUNT( * ) col1 FROM tab1 WHERE NULL IN ( col0, + col2 * + 29 * - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7426
SELECT 77 * + COUNT ( * ) col1 FROM tab1 WHERE NULL IN ( col0, + col2 * + 29 * - col0 )
----
0

query I rowsort
SELECT ALL - col0 * - + 51 + + - col1 + + col0 FROM tab0
----
4503
5043
699

query I rowsort
SELECT DISTINCT - 48 + - col2 AS col2 FROM tab0 AS cor0
----
-147
-58
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 17 BETWEEN - 35 AND - col1
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT + CAST( + SUM( col1 ) AS SIGNED ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7430
SELECT + CAST ( + SUM ( col1 ) AS INTEGER ) FROM tab1 cor0
----
66

query I rowsort
SELECT + ( + col2 ) - + 58 AS col2 FROM tab2 AS cor0
----
-18
-35
0

query II rowsort
SELECT - col1 - + ( col2 ) AS col2, col0 AS col2 FROM tab1
----
-110
51
-115
91
-64
85

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * 58 FROM tab2 cor0
----
-2668
-3712
-4350

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7437
SELECT + MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col0 FROM tab0
----
10

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE - 5 < + col0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7440
SELECT ALL COUNT( * ), COUNT( * ) DIV - SUM( - + col0 ) AS col0 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-7440
SELECT ALL COUNT ( * ), COUNT ( * ) / - SUM ( - + col0 ) AS col0 FROM tab0
----
3
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7442
SELECT + MIN( 53 ) * CAST( COUNT( * ) AS SIGNED ) * - - 60 AS col0 FROM tab0
----
9540

skipif mysql # not compatible
query I rowsort label-7442
SELECT + MIN ( 53 ) * CAST ( COUNT ( * ) AS INTEGER ) * - - 60 AS col0 FROM tab0
----
9540

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT - + CAST( 13 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-1287
-130
-611

skipif mysql # not compatible
query I rowsort label-7444
SELECT - + CAST ( 13 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-1287
-130
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 col1, col0 * col0 FROM tab1 AS cor0
----
-82
2601
-82
7225
-82
8281

query II rowsort
SELECT ALL col1 + - - col1 AS col0, + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col2 - + col0 * - col2
----

query II rowsort
SELECT DISTINCT - 99, col2 AS col1 FROM tab0 AS cor0
----
-99
10
-99
47
-99
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 * + 61 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 - - col1 / - col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + + col0 * - + col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT MAX( ALL col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7451
SELECT MAX ( ALL col0 ) AS col2 FROM tab1
----
91

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT + col1 + + + col1 + + + col0 FROM tab2
----
148
209
218

query I rowsort
SELECT ALL col1 * + - 47 + + - 63 FROM tab0 AS cor0
----
-1050
-110
-3870

query I rowsort
SELECT ALL - 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7456
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT - col0 * ( col2 ) + - - 10 AS col1 FROM tab2 cor0 WHERE col1 > - - col0
----
-1048
-2550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 76
----

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL 40 * - - 4 + MAX( col0 ) col2 FROM tab0
----
257

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7460
SELECT ALL 40 * - - 4 + MAX ( col0 ) col2 FROM tab0
----
257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7461
SELECT ALL COUNT( * ) DIV - 34 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL COUNT ( * ) / - 34 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT ( - - col1 ) * CAST( col0 AS SIGNED ) * + col0 + + + col0 * - col1 * - - 22 AS col0 FROM tab2
----
206976
266325
56304

skipif mysql # not compatible
query I rowsort label-7462
SELECT ( - - col1 ) * CAST ( col0 AS INTEGER ) * + col0 + + + col0 * - col1 * - - 22 AS col0 FROM tab2
----
206976
266325
56304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + - col0 + + col2 AS col2, 71 col0 FROM tab1
----
4345
71
484
71
810
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT + col1 DIV col0 + - col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-7464
SELECT + col1 / col0 + - col0 FROM tab2
----
-45
-63
-75

query I rowsort
SELECT ALL + col0 + - - col0 * + - col1 AS col2 FROM tab1
----
-340
-4186
-663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7466
SELECT ALL ( 92 ) FROM tab1 WHERE col2 < - - CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL ( 92 ) FROM tab1 WHERE col2 < - - CAST ( + col1 AS REAL )
----

query I rowsort
SELECT ALL - 77 + - 14 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL - - ( + + 45 ) * - 46 * - - col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-1459350
-1800900
-19878210

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col2 - 46 * + + col0 <= NULL
----

query I rowsort
SELECT DISTINCT col1 * 97 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 / + - col0, col1, - + col0 * + 50 * + + col1, + col2 )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ( + + ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7472
SELECT ( + + ( - COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT MAX( DISTINCT 57 ) col0 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7473
SELECT MAX ( DISTINCT 57 ) col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT COUNT( * ) * - SUM( ALL + - col1 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7474
SELECT COUNT ( * ) * - SUM ( ALL + - col1 ) FROM tab1
----
198

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 20 / - 58 * col1 + + 9 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col0 + - + 3 * col2 FROM tab2 AS cor0
----
2277
4808
4851

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 40 / - + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - 98 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT - SUM( DISTINCT - col0 ) * - 81 AS col2 FROM tab0 AS cor0
----
-16119

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT - SUM ( DISTINCT - col0 ) * - 81 AS col2 FROM tab0 AS cor0
----
-16119

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query II rowsort label-7482
SELECT + col1 AS col0, - col1 + - 6 DIV - - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 79 < + + 20
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-7482
SELECT + col1 AS col0, - col1 + - 6 / - - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 79 < + + 20
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - 51 AS col0 FROM tab1 cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - 92 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT SUM( DISTINCT - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7485
SELECT SUM ( DISTINCT - - col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL - SUM( DISTINCT + + 45 ) AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - SUM ( DISTINCT + + 45 ) AS col0 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL - MIN( - + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL - MIN ( - + col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - 92 * - col1 + 2 + - 94 AS col1 FROM tab0
----
0
1840
7360

onlyif mysql # aggregate syntax: 
query II rowsort label-7489
SELECT - - 78 * - MIN( DISTINCT - col1 ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
6318
-3

skipif mysql # not compatible
query II rowsort label-7489
SELECT - - 78 * - MIN ( DISTINCT - col1 ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
6318
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT CAST( NULL AS SIGNED ) * - 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT CAST ( NULL AS INTEGER ) * - 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + COUNT( ALL - ( + 31 ) ) * + 12 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7492
SELECT + COUNT ( ALL - ( + 31 ) ) * + 12 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + + COUNT( * ) * + + 99 * + COUNT( * ) * + 40 * 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1924560

skipif mysql # not compatible
query I rowsort label-7493
SELECT + + COUNT ( * ) * + + 99 * + COUNT ( * ) * + 40 * 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1924560

query I rowsort
SELECT ALL col0 * + col2 * - col0 + - + 73 + - 3 AS col2 FROM tab1
----
-249772
-426351
-563184

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT - 75 + + + COUNT( * ) FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7495
SELECT - 75 + + + COUNT ( * ) FROM tab1 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7496
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < + + col1
----

skipif mysql # not compatible
query III rowsort label-7496
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT DISTINCT + COUNT( * ) + + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT + ( + + SUM( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + ( + + SUM ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + col2 + 71 AS col2 FROM tab2 AS cor0
----
111
129
94

query I rowsort
SELECT col0 * - 43 * - - col0 + - 37 FROM tab0 AS cor0
----
-325504
-404624
-9712

query I rowsort
SELECT - col2 + - - 71 FROM tab2 AS cor0
----
13
31
48

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT DISTINCT 58 * - col2 DIV + ( col2 ) AS col1 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT 58 * - col2 / + ( col2 ) AS col1 FROM tab1 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT ( - - col0 ) + - - col2 + 15 DIV col2 col2 FROM tab0 AS cor0
----
196
62
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7504
SELECT ( - - col0 ) + - - col2 + 15 / col2 col2 FROM tab0 AS cor0
----
196
62
98

query I rowsort
SELECT + - col0 + + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT + COUNT( * ) * - 50 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT + COUNT ( * ) * - 50 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL - SUM( + 1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - SUM ( + 1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + col2 / - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 74 + - 45 * - col2 FROM tab0
----
2041
376
4381

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + COUNT( * ) * + 35 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7510
SELECT + COUNT ( * ) * + 35 FROM tab0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL CAST( NULL AS SIGNED ) + 73 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7511
SELECT ALL CAST ( NULL AS INTEGER ) + 73 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - 1 - + + COUNT( * ) AS col2 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 1 - + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-4

query III rowsort
SELECT DISTINCT + ( - 60 ), + col1, col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to ef76cf2ee02fe5ebd7a3160a597f3b00

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 34 ) + + - col1 IS NULL
----

query II rowsort
SELECT + 39 AS col2, - 11 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + + ( - - 42 ) FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * col0 + + 12 col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - + col1 )
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT DISTINCT + ( 97 ) FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col2 col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT - SUM( - - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - SUM ( - - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + col2 * - col1 * + - col1 - - col1 FROM tab1 WHERE + - 55 IS NOT NULL
----
1480
150259
18830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7524
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT col0 * + ( + 70 ) FROM tab2
----
3220
4480
5250

query I rowsort
SELECT DISTINCT - col2 + + 29 AS col1 FROM tab2
----
-11
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL + 88 * COUNT( * ) * - 94 + - MIN( + col2 ) AS col2 FROM tab1
----
-24875

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + 88 * COUNT ( * ) * - 94 + - MIN ( + col2 ) AS col2 FROM tab1
----
-24875

query I rowsort
SELECT - col0 * - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 85 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 2 * + col2 * + + col2 col0 FROM tab2 AS cor0
----
1058
3200
6728

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT - col0 DIV + 2 + + col1 + + + col2 * + 12 AS col2 FROM tab0
----
1141
638
98

skipif mysql # not compatible
query I rowsort label-7530
SELECT - col0 / + 2 + + col1 + + + col2 * + 12 AS col2 FROM tab0
----
1141
638
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 70 * - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT MIN( + - 64 ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-7532
SELECT MIN ( + - 64 ) AS col2 FROM tab1
----
-64

query I rowsort
SELECT + ( 71 ) AS col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col2 + + - 23 AS col1 FROM tab1 AS cor0
----
36
45
73

query II rowsort
SELECT ALL + col1 + col1 + - 4 AS col2, + 47 FROM tab1 AS cor0
----
24
47
6
47
90
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL - - COUNT( DISTINCT 98 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - - COUNT ( DISTINCT 98 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 27 - - 23 AS col2 FROM tab2 cor0
----
50
50
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7539
SELECT CAST( NULL AS DECIMAL ) + + 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT CAST ( NULL AS REAL ) + + 24 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 + - + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 32 >= - 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL MIN( ALL 50 ) AS col1 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL MIN ( ALL 50 ) AS col1 FROM tab2
----
50

query I rowsort
SELECT ALL 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 58 AND ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT DISTINCT + 19 DIV ( - col2 ) FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + 19 / ( - col2 ) FROM tab0 cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7546
SELECT ALL + CAST( + - col0 AS SIGNED ) AS col0, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

skipif mysql # not compatible
query II rowsort label-7546
SELECT ALL + CAST ( + - col0 AS INTEGER ) AS col0, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - COUNT( 86 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7547
SELECT - COUNT ( 86 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7548
SELECT + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT ALL + col0 DIV col1 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + col0 / col1 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 41 ) col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT + ( + COUNT( - 40 ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7552
SELECT + ( + COUNT ( - 40 ) ) col0 FROM tab0
----
3

query I rowsort
SELECT + col1 + + col0 - col2 * + 30 - + 1 FROM tab0
----
-1315
-193
-2873

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT COUNT( * ) + + 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT COUNT ( * ) + + 70 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7555
SELECT * FROM tab0 AS cor0 WHERE CAST( - CAST( - - col1 AS SIGNED ) AS SIGNED ) * - - 5 * - 7 * col0 + - + 90 * - + col1 - - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7555
SELECT * FROM tab0 AS cor0 WHERE CAST ( - CAST ( - - col1 AS INTEGER ) AS INTEGER ) * - - 5 * - 7 * col0 + - + 90 * - + col1 - - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT - + 5 * + - CAST( NULL AS SIGNED ) * ( - ( - col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT - + 5 * + - CAST ( NULL AS INTEGER ) * ( - ( - col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT - col0 DIV 78 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT - col0 / 78 AS col0 FROM tab0 AS cor0
----
-1
-1
0

query II rowsort
SELECT - 47, col0 FROM tab1 AS cor0
----
-47
51
-47
85
-47
91

query I rowsort
SELECT ALL + 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + COUNT( - 49 ) + - 6 AS col2 FROM tab0 WHERE - 25 BETWEEN NULL AND - col1
----
-6

skipif mysql # not compatible
query I rowsort label-7560
SELECT + COUNT ( - 49 ) + - 6 AS col2 FROM tab0 WHERE - 25 BETWEEN NULL AND - col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT 34 + - + MIN( 95 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT 34 + - + MIN ( 95 ) FROM tab0 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL + - CAST( NULL AS SIGNED ) / + + 9 + - 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + - CAST ( NULL AS INTEGER ) / + + 9 + - 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 67 FROM tab1 AS cor0 WHERE + 98 * - col1 * - col2 IS NOT NULL
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7565
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( - 98 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7565
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( - 98 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
8

query I rowsort
SELECT DISTINCT ( - col0 ) - + + col2 AS col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL + col0 - - - 79 AS col2 FROM tab2
----
-15
-33
-4

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 31 IS NOT NULL )
----

query I rowsort
SELECT ALL + 79 FROM tab1, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 92, + 47 / - + ( - + 5 ), 70 * - 85 * - - ( col1 ) + - - 51 + + col0 )
----

query I rowsort
SELECT DISTINCT + 62 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7574
SELECT DISTINCT 77 * + COUNT( * ), + CAST( + + SUM( - 49 ) AS SIGNED ) AS col2 FROM tab1
----
231
-147

skipif mysql # not compatible
query II rowsort label-7574
SELECT DISTINCT 77 * + COUNT ( * ), + CAST ( + + SUM ( - 49 ) AS INTEGER ) AS col2 FROM tab1
----
231
-147

query II rowsort
SELECT + col0, col2 * + - ( + - col0 ) AS col1 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

query I rowsort
SELECT - col2 * - + 62 AS col1 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT + CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT + CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT ALL AVG ( 65 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL AVG ( 65 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - 18 NOT BETWEEN + col2 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7579
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - 18 NOT BETWEEN + col2 AND NULL )
----
0

query I rowsort
SELECT DISTINCT + ( + 70 ) * - col2 AS col2 FROM tab1 AS cor0
----
-4130
-4760
-6720

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( - 55 * - + col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT DISTINCT + COUNT( * ) * 42, + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0
----
0
0

skipif mysql # not compatible
query II rowsort label-7582
SELECT DISTINCT + COUNT ( * ) * 42, + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0
----
0
0

query I rowsort
SELECT DISTINCT - ( - col2 ) + - - col0 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * 63 + - + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 15 + - - col0 + - 38 * + + 89 AS col1 FROM tab0
----
-3300
-3310
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT 3 + + - COUNT( * ) + - 65 + - 20 AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-7587
SELECT 3 + + - COUNT ( * ) + - 65 + - 20 AS col2 FROM tab2
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 81 col2 FROM tab0
----
10
81
47
81
99
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7589
SELECT DISTINCT - ( - 75 ) - - + col2 DIV - 71, col2 * col1 DIV ( + + col0 ) AS col2 FROM tab1 AS cor0
----
74
26
75
3
75
35

skipif mysql # not compatible
query II rowsort label-7589
SELECT DISTINCT - ( - 75 ) - - + col2 / - 71, col2 * col1 / ( + + col0 ) AS col2 FROM tab1 AS cor0
----
74
26
75
3
75
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT DISTINCT - col0 + - col0 + + 28 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - col0 + - col0 + + 28 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 * - 8 + - 72 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * - 8 + - 72 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * - col2 <= 33 / 70
----

query I rowsort
SELECT ( + 32 ) AS col0 FROM tab2
----
32
32
32

query I rowsort
SELECT col2 * 94 AS col0 FROM tab1
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - 47 * MIN( - + col2 ) FROM tab2
----
2726

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 47 * MIN ( - + col2 ) FROM tab2
----
2726

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT ALL - COUNT( DISTINCT + col0 ) AS col0, 59 + - + 93 col0 FROM tab1 AS cor0
----
-3
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7597
SELECT ALL - COUNT ( DISTINCT + col0 ) AS col0, 59 + - + 93 col0 FROM tab1 AS cor0
----
-3
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-7598
SELECT 15 AS col2, - 38 * col0 DIV col0 + - col1 AS col2 FROM tab1
----
15
-43
15
-52
15
-85

skipif mysql # not compatible
query II rowsort label-7598
SELECT 15 AS col2, - 38 * col0 / col0 + - col1 AS col2 FROM tab1
----
15
-43
15
-52
15
-85

query I rowsort
SELECT ALL col0 * + 19 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL - SUM( 89 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - SUM ( 89 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT + COUNT( ALL - + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + COUNT ( ALL - + col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 48 + + col1 AS col2 FROM tab1
----
53
62
95

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query II rowsort
SELECT col0 * col2 + + 47 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
4943
96
5062
59
6235
68

query I rowsort
SELECT - + 75 * - col0 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col1 * - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT + 60 + + - MAX( col2 ) AS col1 FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7607
SELECT + 60 + + - MAX ( col2 ) AS col1 FROM tab1 cor0
----
-36

query I rowsort
SELECT DISTINCT + 41 * + 64 FROM tab0 AS cor0
----
2624

query I rowsort
SELECT DISTINCT - col2 * - 89 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT DISTINCT + 64 + col1 * - col2 FROM tab1
----
-1280
-231
-3132

query III rowsort
SELECT * FROM tab1 WHERE ( col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 15 FROM tab2 WHERE + 92 >= col1 * + ( - col1 ) + - col0 + - col0
----
15
15
15

query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab1 WHERE NOT ( NOT NULL < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT DISTINCT col2 DIV - col0 + - 94 FROM tab0
----
-94
-95
-97

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT col2 / - col0 + - 94 FROM tab0
----
-94
-95
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT CAST( NULL AS SIGNED ) + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT CAST ( NULL AS INTEGER ) + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + COUNT( ALL + 94 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7616
SELECT + COUNT ( ALL + 94 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - MIN( DISTINCT 25 ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7617
SELECT - MIN ( DISTINCT 25 ) AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT DISTINCT + + col0 DIV + 79 + + + 10 * + col2 + 76 FROM tab1 AS cor0
----
1036
667
757

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + + col0 / + 79 + + + 10 * + col2 + 76 FROM tab1 AS cor0
----
1036
667
757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - + col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + col2 * - col0 * 0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT ALL 78 DIV - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL 78 / - COUNT ( * ) FROM tab2
----
-26

query I rowsort
SELECT - col1 * col1 + - col2 * col0 + - - 21 - + col0 + - col0 AS col1 FROM tab0
----
-1464
-7275
-9777

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT + - col2 DIV - col1 + - 51 FROM tab0 AS cor0
----
-51
-51
48

skipif mysql # not compatible
query I rowsort label-7624
SELECT + - col2 / - col1 + - 51 FROM tab0 AS cor0
----
-51
-51
48

query I rowsort
SELECT + + 6 * + col1 FROM tab0 AS cor0
----
126
486
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT ALL - COUNT( * ) DIV + 82 * + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - COUNT ( * ) / + 82 * + - COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + 8 * - 11 * - col2 / + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL - MIN( + col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - MIN ( + col0 ) AS col0 FROM tab2 cor0
----
-46

query I rowsort
SELECT + + ( col2 ) + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col1 FROM tab0
----
51
51
51

query I rowsort
SELECT ALL ( + col2 ) * col1 AS col2 FROM tab1 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT + 64 * + - 90 AS col0 FROM tab2
----
-5760
-5760
-5760

query I rowsort
SELECT - col1 * col0 * col1 + + 5 AS col2 FROM tab2
----
-119641
-336670
-379451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7634
SELECT + - CAST( + - col1 AS SIGNED ) col0, + col2 + - col0 FROM tab1 cor0
----
14
45
47
-23
5
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7634
SELECT + - CAST ( + - col1 AS INTEGER ) col0, + col2 + - col0 FROM tab1 cor0
----
14
45
47
-23
5
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT 41 * + 75 - + 81 * + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT 41 * + 75 - + 81 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / + 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL MIN( DISTINCT - + col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7637
SELECT ALL MIN ( DISTINCT - + col2 ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + COUNT( ALL + col1 ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7638
SELECT + COUNT ( ALL + col1 ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT CAST( NULL AS SIGNED ) / - col0 + + ( + col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT CAST ( NULL AS INTEGER ) / - col0 + + ( + col2 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - COUNT( * ) + + 57 AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7640
SELECT - COUNT ( * ) + + 57 AS col1 FROM tab1
----
54

query I rowsort
SELECT - col0 + - ( - col0 ) * + col1 FROM tab0
----
0
1200
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT ( + 4 ) / - 15 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT ( + 4 ) / - 15 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - 68 * 95 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT ALL + 20 - + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL + 20 - + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 44 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 54 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT ALL - col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - col0 / + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT ALL - 97 AS col1, SUM( ALL 49 ) FROM tab2 AS cor0
----
-97
147

skipif mysql # not compatible
query II rowsort label-7649
SELECT ALL - 97 AS col1, SUM ( ALL 49 ) FROM tab2 AS cor0
----
-97
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT COUNT( * ) * - COUNT( ALL - col2 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7650
SELECT COUNT ( * ) * - COUNT ( ALL - col2 ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7651
SELECT DISTINCT * FROM tab1 WHERE NULL < CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7651
SELECT DISTINCT * FROM tab1 WHERE NULL < CAST ( - col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * - col1 * - col0 col0 FROM tab1
----
23375
235235
39270

query I rowsort
SELECT DISTINCT - col2 * + 22 AS col1 FROM tab2
----
-1276
-506
-880

query I rowsort
SELECT - 21 * + + col2 AS col0 FROM tab1
----
-1239
-1428
-2016

query II rowsort
SELECT ALL + ( - 46 ), col2 FROM tab0 cor0
----
-46
10
-46
47
-46
99

query I rowsort
SELECT ALL + 65 + + 24 AS col1 FROM tab2
----
89
89
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT - COUNT( ALL - CAST( NULL AS SIGNED ) ) + - 73 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + - 73 FROM tab1
----
-73

query I rowsort
SELECT - AVG ( ALL + col2 ) AS col1 FROM tab0 WHERE NULL <> - 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL + col2 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL + col2 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL - + MIN( + 67 ) + - SUM( ALL + col0 ) col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7660
SELECT ALL - + MIN ( + 67 ) + - SUM ( ALL + col0 ) col0 FROM tab1 AS cor0
----
-294

query I rowsort
SELECT + 95 + - - col2 AS col2 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT col2 + + - col1 + + + col2 AS col1 FROM tab0 cor0
----
-1
13
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 99 ) col2 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - 65 - + + 24 FROM tab0 AS cor0
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 - 22 col2 FROM tab1 cor0
----
3459
4602
9194

query I rowsort
SELECT ALL + - 7 FROM tab0 WHERE - col1 IS NOT NULL
----
-7
-7
-7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + ( + 56 ) * + col0 + + - col2 + + + col2, + ( - + col2 ) * + col1 AS col0 FROM tab2
----
2576
-1173
3584
-3080
4200
-3886

query I rowsort
SELECT 38 * + - col2 / - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7670
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL + col2 * CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 AS col2, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT ALL - + col0 DIV - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - + col0 / - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

query II rowsort
SELECT - - col1 AS col1, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT col2 DIV - 25 + + - col1 FROM tab2 cor0
----
-51
-69
-78

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT col2 / - 25 + + - col1 FROM tab2 cor0
----
-51
-69
-78

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col2 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab2
----
51
51
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 96 * ( + - 26 )
----

query I rowsort
SELECT - col0 * - 13 AS col1 FROM tab1
----
1105
1183
663

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT + col0 + - col1 DIV + - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + col0 + - col1 / + - col0 FROM tab1
----
51
85
91

query III rowsort
SELECT col2 AS col0, col1 AS col1, 77 - - - col2 FROM tab2
----
9 values hashing to 2d721bbc0ab6b3b6f18a9752cb863d9b

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT COUNT( * ) * - 23 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-7681
SELECT COUNT ( * ) * - 23 FROM tab2
----
-69

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL <> - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + 86 * + MAX( - 3 ) AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-7683
SELECT + 86 * + MAX ( - 3 ) AS col0 FROM tab2 AS cor0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col0 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + COUNT( * ) * - COUNT( * ) + - 18 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7685
SELECT + COUNT ( * ) * - COUNT ( * ) + - 18 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col2 * 42 AS col1 FROM tab2 AS cor0
----
1680
2436
966

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + + col1 IN ( + - 45, + col0, - - col1, - col2 * + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL - col2 * CAST( NULL AS SIGNED ) * - col1 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 20 FROM tab1
----
31
65
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - + COUNT( DISTINCT + col2 ) + + + ( + 55 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - + COUNT ( DISTINCT + col2 ) + + + ( + 55 ) FROM tab0 AS cor0
----
52

query I rowsort
SELECT 48 FROM tab0 AS cor0 WHERE + col0 * - col1 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) * - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT + col1 DIV 7 * - 18 * - + col2 + - 40 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-40
3416
7304

skipif mysql # not compatible
query I rowsort label-7693
SELECT + col1 / 7 * - 18 * - + col2 + - 40 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-40
3416
7304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT + 0 / + 11 * - CAST( NULL AS SIGNED ) * + 37 * - col2 + - + col2 * - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + 0 / + 11 * - CAST ( NULL AS INTEGER ) * + 37 * - col2 + - + col2 * - col0 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 - 95 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7696
SELECT ALL + col0 AS col1, - col1 + 37 DIV + col0 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
query II rowsort label-7696
SELECT ALL + col0 AS col1, - col1 + 37 / + col0 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT col0 + + + 87 AS col1 FROM tab2
----
133
151
162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7698
SELECT * FROM tab0 WHERE - col0 IN ( - CAST( NULL AS SIGNED ), 39 + + - 99, + col1 * col1 )
----

skipif mysql # not compatible
query III rowsort label-7698
SELECT * FROM tab0 WHERE - col0 IN ( - CAST ( NULL AS INTEGER ), 39 + + - 99, + col1 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7699
SELECT ALL + COUNT( * ) * + + CAST( NULL AS DECIMAL ) * + SUM( DISTINCT 26 ) * 93 * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS REAL ) * + SUM ( DISTINCT 26 ) * 93 * + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 53 * - col0 FROM tab2 AS cor0
----
2438
3392
3975

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( 6 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT + MAX( ( 2 ) ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + MAX ( ( 2 ) ) AS col1 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT - COUNT( * ) + - 57 AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - COUNT ( * ) + - 57 AS col1 FROM tab0
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7704
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - col2 BETWEEN col2 + + col1 AND ( NULL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL - COUNT( * ) + MAX( + 98 ) AS col0 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL - COUNT ( * ) + MAX ( + 98 ) AS col0 FROM tab2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT ALL - COUNT( * ) * + ( CAST( + 71 AS SIGNED ) ) - + MIN( DISTINCT + col0 ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - COUNT ( * ) * + ( CAST ( + 71 AS INTEGER ) ) - + MIN ( DISTINCT + col0 ) FROM tab1
----
-264

query III rowsort
SELECT * FROM tab0 WHERE NOT + 14 * - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT 46 * + MIN( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT + col2 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT 46 * + MIN ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT + col2 * - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 70 AS col1 FROM tab0 WHERE col0 * col1 NOT IN ( + col2 )
----
-70
-70
-70

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 79 ) * 59 + col1 IS NOT NULL
----

query I rowsort
SELECT - 23 FROM tab0 WHERE col2 * - col0 IS NOT NULL
----
-23
-23
-23

query I rowsort
SELECT col2 * col1 FROM tab1 WHERE - 34 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( 16 ) * 95 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( 16 ) * 95 >= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7715
SELECT - CAST( col2 AS SIGNED ) + + 29 FROM tab0
----
-18
-70
19

skipif mysql # not compatible
query I rowsort label-7715
SELECT - CAST ( col2 AS INTEGER ) + + 29 FROM tab0
----
-18
-70
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT - SUM( DISTINCT CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7716
SELECT - SUM ( DISTINCT CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col2 NOT BETWEEN - 20 + 71 / 24 AND ( + col2 * + 36 - - 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL MIN( DISTINCT 11 ) FROM tab1 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL MIN ( DISTINCT 11 ) FROM tab1 WHERE NOT NULL > ( NULL )
----
NULL

query I rowsort
SELECT col2 * + 96 FROM tab0 WHERE NOT col2 BETWEEN ( NULL ) AND ( col1 / col2 )
----
4512
9504
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col0 FROM tab1 WHERE NOT ( NULL ) < 71
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT 14 - + 57 FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT COUNT( * ) * + 81 col2 FROM tab2
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7723
SELECT COUNT ( * ) * + 81 col2 FROM tab2
----
243

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( 83 + 19 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7725
SELECT DISTINCT - SUM( - 93 ) * SUM( ALL CAST( NULL AS DECIMAL ) * + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - SUM ( - 93 ) * SUM ( ALL CAST ( NULL AS REAL ) * + col2 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT CAST( - col2 AS SIGNED ) - col2 AS col1 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-7726
SELECT CAST ( - col2 AS INTEGER ) - col2 AS col1 FROM tab2
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT col1 + 37 DIV + 30 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7727
SELECT col1 + 37 / + 30 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT 2 * COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7728
SELECT 2 * COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT + 94 * + 11 AS col2 FROM tab1
----
1034
1034
1034

query I rowsort
SELECT ALL + 4 + + col1 FROM tab0 cor0
----
25
5
85

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 - col0 * col2 IN ( - 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 3 FROM tab0 AS cor0 WHERE NULL < + col1 * col2
----

query I rowsort
SELECT - 14 * + col0 FROM tab2
----
-1050
-644
-896

query I rowsort
SELECT DISTINCT 1 * col0 AS col0 FROM tab1
----
51
85
91

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 41 NOT BETWEEN NULL AND + 47
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE + 78 * col1 NOT BETWEEN ( + col2 ) AND col0 - - 22 * 89
----
23
40
58

query I rowsort
SELECT ALL 78 + + col2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT - + CAST( NULL AS SIGNED ) + COUNT( * ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7739
SELECT - + CAST ( NULL AS INTEGER ) + COUNT ( * ) col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT - + 12 + 18 AS col2 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 48 col1 FROM tab0 AS cor0
----
135
145
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * col0 IS NULL
----

query I rowsort
SELECT - 89 + + col1 * - col0 FROM tab0 AS cor0
----
-1304
-186
-1916

query I rowsort
SELECT ALL 57 - 87 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL - COUNT( * ) - 75 col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7746
SELECT ALL - COUNT ( * ) - 75 col2 FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL - - ( - col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - - ( - col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 30 / + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 60 ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT ALL COUNT( CAST( - 88 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL COUNT ( CAST ( - 88 AS INTEGER ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + 33 + - - COUNT( ALL col2 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + 33 + - - COUNT ( ALL col2 ) FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT 16 DIV + col1 AS col0 FROM tab0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-7753
SELECT 16 / + col1 AS col0 FROM tab0
----
0
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT + 60 * + 49 - - COUNT( * ) AS col2 FROM tab0
----
2943

skipif mysql # not compatible
query I rowsort label-7754
SELECT + 60 * + 49 - - COUNT ( * ) AS col2 FROM tab0
----
2943

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( + col1 * col2 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col1 IN ( 62 / + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - + 69 ) col0 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT ALL + 95 AS col0 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT 29 * - 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ee830ad631c58b64a22fc54a75806ce2

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON 80 <= - 3 / + 43
----
0

skipif mysql # not compatible
query I rowsort label-7761
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON 80 <= - 3 / + 43
----
0

query II rowsort
SELECT ALL 88, + col0 AS col0 FROM tab2
----
88
46
88
64
88
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + + MAX( ALL 60 ) * + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
5520

skipif mysql # not compatible
query I rowsort label-7763
SELECT + + MAX ( ALL 60 ) * + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
5520

query I rowsort
SELECT col1 * + col0 - + 26 AS col0 FROM tab0 AS cor0
----
1189
1801
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 / + col2 * col0 ) AND 48
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7766
SELECT + 61, + ( COUNT( 48 ) ) AS col2 FROM tab1 cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-7766
SELECT + 61, + ( COUNT ( 48 ) ) AS col2 FROM tab1 cor0
----
61
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - - col0 <> ( NULL )
----

query II rowsort
SELECT col0 AS col1, 59 FROM tab2 AS cor0
----
46
59
64
59
75
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - 87 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7771
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 37 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7771
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 37 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) <= + col2
----

skipif mysql # not compatible
query I rowsort label-7772
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <= + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 61 ) >= col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 73 * col0 - CAST( + 70 AS SIGNED ) NOT IN ( col1 + - ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 73 * col0 - CAST ( + 70 AS INTEGER ) NOT IN ( col1 + - ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7775
SELECT DISTINCT * FROM tab2 WHERE ( + + CAST( - - 86 AS SIGNED ) ) <= ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-7775
SELECT DISTINCT * FROM tab2 WHERE ( + + CAST ( - - 86 AS INTEGER ) ) <= ( + col0 )
----

query I rowsort
SELECT DISTINCT 30 FROM tab1 WHERE + 69 * - col2 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT + col0 DIV 23 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
2
2
3

skipif mysql # not compatible
query I rowsort label-7777
SELECT + col0 / 23 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
2
2
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) BETWEEN 64 AND ( 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + - col2 * + - col2 AS col1 FROM tab1
----
3566
4715
9267

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT ALL col0 + - ( - + ( + col2 ) ) DIV col2 AS col1 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL col0 + - ( - + ( + col2 ) ) / col2 AS col1 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT DISTINCT - 70 * COUNT( * ) * - COUNT( * ) FROM tab0
----
630

skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT - 70 * COUNT ( * ) * - COUNT ( * ) FROM tab0
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT DISTINCT 12 * + 14 AS col0 FROM tab2 cor0 WHERE NULL IN ( ( + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT 12 * + 14 AS col0 FROM tab2 cor0 WHERE NULL IN ( ( + + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT ALL col1 DIV - + col2 + + 35 - + - col2 DIV ( + 87 * - col1 ) FROM tab0 AS cor0
----
33
34
34

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL col1 / - + col2 + + 35 - + - col2 / ( + 87 * - col1 ) FROM tab0 AS cor0
----
33
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT MAX( ALL + - col1 ) FROM tab0 WHERE NULL IN ( - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT MAX ( ALL + - col1 ) FROM tab0 WHERE NULL IN ( - + col1 )
----
NULL

query I rowsort
SELECT + col2 * + col0 * - - col2 * + + 92 FROM tab0
----
3048420
800400
87464124

query I rowsort
SELECT DISTINCT 72 + + 14 FROM tab2 AS cor0
----
86

query I rowsort
SELECT ALL + col2 * col1 + + 94 FROM tab2 cor0 WHERE + col1 * - + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col2 - - col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT col0 - + + col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT DISTINCT - + col1 * 19 - - + col2 DIV + 3 col2 FROM tab0 cor0
----
-1524
-396
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7790
SELECT DISTINCT - + col1 * 19 - - + col2 / + 3 col2 FROM tab0 cor0
----
-1524
-396
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7791
SELECT DISTINCT 38 DIV COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT 38 / COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT + col2 + col0 AS col1 FROM tab2 AS cor0 WHERE - 52 NOT IN ( 11 + + 68 )
----
104
133
69

query I rowsort
SELECT 32 + 62 AS col0 FROM tab2
----
94
94
94

query II rowsort
SELECT DISTINCT col1, 8 FROM tab0
----
1
8
21
8
81
8

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT - COUNT( * ) DIV + 45 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT - COUNT ( * ) / + 45 * - COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL - COUNT( - - 29 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7797
SELECT ALL - COUNT ( - - 29 ) col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 * + + col2 col0, col2 AS col2 FROM tab1
----
-3717
59
-4284
68
-6048
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7799
SELECT DISTINCT col1 AS col1, + 30 + col0 + + CAST( - + col0 AS SIGNED ) + + col2 + col1 * 91 col2 FROM tab1
----
14
1400
47
4375
5
544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7799
SELECT DISTINCT col1 AS col1, + 30 + col0 + + CAST ( - + col0 AS INTEGER ) + + col2 + col1 * 91 col2 FROM tab1
----
14
1400
47
4375
5
544

query I rowsort
SELECT DISTINCT col1 * + - 99 FROM tab1 AS cor0
----
-1386
-4653
-495

query II rowsort
SELECT ALL + col2 AS col0, 37 FROM tab0 AS cor0
----
10
37
47
37
99
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 30 ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT DISTINCT - + ( col1 ) col0 FROM tab0 AS cor0 WHERE NOT col0 - CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND 16
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7803
SELECT DISTINCT - + ( col1 ) col0 FROM tab0 AS cor0 WHERE NOT col0 - CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND 16
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7805
SELECT DISTINCT + 9 DIV - col1, col1 FROM tab0
----
-9
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-7805
SELECT DISTINCT + 9 / - col1, col1 FROM tab0
----
-9
1
0
21
0
81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT ( 50 ) IS NULL WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL + col1 * + 41 AS col2 FROM tab2 AS cor0
----
2091
2747
3157

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + col2 * - - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT SUM( 73 ) col1 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7809
SELECT SUM ( 73 ) col1 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT + + MAX( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + + MAX ( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
99

query II rowsort
SELECT DISTINCT + ( - + 40 ), - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-40
23
-40
40
-40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT 97 * - col0 + + - col1 - col0 - + col2 * - + col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3654
-5722
-8035

skipif mysql # not compatible
query I rowsort label-7812
SELECT 97 * - col0 + + - col1 - col0 - + col2 * - + col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3654
-5722
-8035

query I rowsort
SELECT DISTINCT + col0 * + - 39 AS col2 FROM tab1 AS cor0
----
-1989
-3315
-3549

query I rowsort
SELECT + ( col0 ) FROM tab0 cor0 WHERE NOT ( - 97 ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE ( - 26 IN ( + + col2 * - 56 * col1 ) ) OR NOT 94 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 7 * 30 * + ( - + col2 ), - col2 - - col0 AS col2 FROM tab1
----
-12390
26
-14280
23
-20160
-45

query II rowsort
SELECT ALL - 28, col0 AS col2 FROM tab0
----
-28
15
-28
87
-28
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT ALL ( + COUNT( CAST( + col2 AS SIGNED ) ) ) + + 89 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL ( + COUNT ( CAST ( + col2 AS INTEGER ) ) ) + + 89 FROM tab2
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + + col0 col1 FROM tab0
----
156
166
84

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE + + 28 BETWEEN + col0 + + col2 * + ( - - col2 ) AND ( col2 + 86 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT COUNT( * ) DIV + 38 + - + SUM( ALL col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT COUNT ( * ) / + 38 + - + SUM ( ALL col0 ) AS col0 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 <> - col1 * - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - + col2 col1 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT + col0 AS col0, 80 AS col1 FROM tab1 AS cor0
----
51
80
85
80
91
80

query I rowsort
SELECT + 27 * - col2 + col2 FROM tab1
----
-1534
-1768
-2496

query I rowsort
SELECT ALL + 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL + col2 * + 25 + - col1 AS col1 FROM tab1 cor0
----
1470
1653
2386

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7830
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2, - 45 * - ( + 77 ) AS col0 FROM tab1 cor0
----
NULL
3465

skipif mysql # not compatible
query II rowsort label-7830
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2, - 45 * - ( + 77 ) AS col0 FROM tab1 cor0
----
NULL
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7831
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT col1 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT DISTINCT 80 DIV col1 FROM tab0
----
0
3
80

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT 80 / col1 FROM tab0
----
0
3
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col2, col2 / - col2 / + + ( 82 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 + 26 < ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + COUNT( + col2 ) * - 4 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7836
SELECT + COUNT ( + col2 ) * - 4 FROM tab1
----
-12

query I rowsort
SELECT ALL col1 * + 12 AS col2 FROM tab0
----
12
252
972

query I rowsort
SELECT DISTINCT + col0 * 6 FROM tab2 cor0
----
276
384
450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 15 * + - col2 + - - col2 * - - col2 )
----

query I rowsort
SELECT ALL + - col2 * - - 18 FROM tab0 AS cor0
----
-1782
-180
-846

query I rowsort
SELECT 49 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT ( - - COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7842
SELECT DISTINCT ( - - COUNT ( * ) ) col0 FROM tab1
----
3

query II rowsort
SELECT ALL + col0 AS col1, + 40 FROM tab1
----
51
40
85
40
91
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - 88 + + 64 FROM tab0
----
1
-24
21
-24
81
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT 63 col0, COUNT( + 59 ) FROM tab2 AS cor0
----
63
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7845
SELECT 63 col0, COUNT ( + 59 ) FROM tab2 AS cor0
----
63
3

onlyif mysql # aggregate syntax: 
query III rowsort label-7846
SELECT ALL - 70, 34 AS col0, 38 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-70
34
35

skipif mysql # not compatible
query III rowsort label-7846
SELECT ALL - 70, 34 AS col0, 38 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-70
34
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT + 3 + - 61 + + - 41 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 3 + - 61 + + - 41 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col2 - - col2, - col2 AS col0 FROM tab0 WHERE + col2 * - - 4 + + + col1 <= NULL
----

query II rowsort
SELECT ( - 49 ) AS col1, 96 FROM tab0
----
-49
96
-49
96
-49
96

query I rowsort
SELECT + 84 + + - 5 AS col0 FROM tab1
----
79
79
79

query I rowsort
SELECT + ( col1 ) + + + col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7852
SELECT ALL * FROM tab2 WHERE - col0 + - - col2 - + 95 / - + 28 * - ( CAST( - + 7 AS SIGNED ) ) + - - col2 * - col1 + + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7852
SELECT ALL * FROM tab2 WHERE - col0 + - - col2 - + 95 / - + 28 * - ( CAST ( - + 7 AS INTEGER ) ) + - - col2 * - col1 + + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT DISTINCT + 66 / - - CAST( NULL AS SIGNED ) * + + col0 + + - col1 * ( + col2 ) / - 44 - + + 48 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT + 66 / - - CAST ( NULL AS INTEGER ) * + + col0 + + - col1 * ( + col2 ) / - 44 - + + 48 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 93 * - 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2697

query I rowsort
SELECT + col2 * - + 85 AS col1 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT 24 - - 33 AS col1 FROM tab2
----
57
57
57

query II rowsort
SELECT ALL - col0 AS col1, 1 AS col1 FROM tab0
----
-15
1
-87
1
-97
1

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + + - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT + ( - col0 ) - 50 + + col1 AS col2 FROM tab1 cor0
----
-130
-87
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NULL ) IN ( + + col0, col0 ) ) )
----

query I rowsort
SELECT DISTINCT + 85 * 66 FROM tab1 AS cor0
----
5610

query I rowsort
SELECT - 4 * - - 41 AS col0 FROM tab1 AS cor0
----
-164
-164
-164

query III rowsort
SELECT ALL * FROM tab1 WHERE 91 >= - 2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT + ( - + COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7866
SELECT + ( - + COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - 9 * - - 24 * - + COUNT( * ) FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 9 * - - 24 * - + COUNT ( * ) FROM tab2
----
648

query I rowsort
SELECT + - 13 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT ALL + col1 DIV - + col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + col1 / - + col1 AS col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 18 col0 FROM tab0
----
1566
1746
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7871
SELECT ALL - MAX( col2 ) DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - MAX ( col2 ) / - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT 38 * + SUM( + col1 ) AS col2 FROM tab2 cor0
----
7410

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT 38 * + SUM ( + col1 ) AS col2 FROM tab2 cor0
----
7410

query I rowsort
SELECT 29 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL AND NOT NULL > + col0
----

query I rowsort
SELECT - - ( - - ( - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * + + 89 * ( - 99 ) * + col0 + ( + + col2 ) AS col0 FROM tab1
----
-43138560
-44187106
-54522400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7876
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + 35 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + 35 IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 63 + + - 51, - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7880
SELECT DISTINCT CAST( + - col2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL > - 30 - - - col0 + - 12
----

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT CAST ( + - col2 AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL > - 30 - - - col0 + - 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col2 FROM tab2 cor0
----
81

query I rowsort
SELECT col2 * + - ( - - col0 ) * - + 84 + + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
59286
73014
806556

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col0 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT - COUNT( * ) + - ( + MAX( DISTINCT + col0 ) ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-7886
SELECT - COUNT ( * ) + - ( + MAX ( DISTINCT + col0 ) ) FROM tab0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-7887
SELECT col0 DIV ( 15 ) + + col0 + col1 FROM tab2
----
100
145
147

skipif mysql # not compatible
query I rowsort label-7887
SELECT col0 / ( 15 ) + + col0 + col1 FROM tab2
----
100
145
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT - col2 + + CAST( - + 84 AS SIGNED ) FROM tab1
----
-143
-152
-180

skipif mysql # not compatible
query I rowsort label-7888
SELECT - col2 + + CAST ( - + 84 AS INTEGER ) FROM tab1
----
-143
-152
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-7889
SELECT ALL 38 AS col2, - MIN( - col2 ) + - - COUNT( * ) FROM tab2
----
38
61

skipif mysql # not compatible
query II rowsort label-7889
SELECT ALL 38 AS col2, - MIN ( - col2 ) + - - COUNT ( * ) FROM tab2
----
38
61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col0 + - col2 ) BETWEEN ( NULL ) AND + + col2
----

query I rowsort
SELECT DISTINCT col0 + + - 82 AS col1 FROM tab0
----
-67
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT COUNT( * ) * + + 30 col2 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7892
SELECT COUNT ( * ) * + + 30 col2 FROM tab2
----
90

query III rowsort
SELECT * FROM tab1 WHERE + col1 / + col1 - + 71 IS NULL
----

query I rowsort
SELECT col0 * + - 47 AS col1 FROM tab2 AS cor0
----
-2162
-3008
-3525

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7895
SELECT * FROM tab2 AS cor0 WHERE - 82 IN ( + - col0, - ( + col1 ), - col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7895
SELECT * FROM tab2 AS cor0 WHERE - 82 IN ( + - col0, - ( + col1 ), - col1 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL ( + col0 ) + + - col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT - 58 * SUM( DISTINCT + col0 ) - + + 0 - - + 97 DIV COUNT( * ) FROM tab2 cor0
----
-10698

skipif mysql # not compatible
query I rowsort label-7897
SELECT - 58 * SUM ( DISTINCT + col0 ) - + + 0 - - + 97 / COUNT ( * ) FROM tab2 cor0
----
-10698

query I rowsort
SELECT - col2 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 - 75 col0 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT col2 - - + col1 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT col2 - - + col1 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT DISTINCT - col2 DIV + col2 - + - col2 AS col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - col2 / + col2 - + - col2 AS col0 FROM tab1
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7902
SELECT ALL - col1 * + CAST( NULL AS SIGNED ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 85 AS col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + + 18 * - - col0 AS col0 FROM tab2 AS cor0
----
1152
1350
828

query I rowsort
SELECT - ( + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + + 41 AS col0 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - + col0 IS NULL
----
0

query I rowsort
SELECT ALL ( + 32 ) FROM tab0 WHERE NOT + 46 IS NULL
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT ALL col1 * 60 DIV + 57 AS col2 FROM tab0
----
1
22
85

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL col1 * 60 / + 57 AS col2 FROM tab0
----
1
22
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT + col0 DIV - + col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + col0 / - + col2 FROM tab0
----
-8
0

query I rowsort
SELECT DISTINCT + col1 * + 80 FROM tab2 WHERE NOT NULL IS NOT NULL
----
4080
5360
6160

query III rowsort
SELECT * FROM tab0 WHERE NOT 43 + + 42 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 34 * - 84 FROM tab2
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7915
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 + col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, 76 col2 FROM tab2 AS cor0
----
46
76
64
76
75
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <= - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + + 24 FROM tab0
----
123
34
71

query I rowsort
SELECT - col0 * + - col1 + col1 AS col2 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - MIN( - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( + col0 < NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT - MIN ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( + col0 < NULL )
----
NULL

query II rowsort
SELECT ALL 42 * + - col2 AS col1, ( + - 14 ) AS col2 FROM tab2 cor0
----
-1680
-14
-2436
-14
-966
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + 45 ) * + 67, - col0 col1 FROM tab1
----
3015
-51
3015
-85
3015
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT - SUM( ALL 33 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - SUM ( ALL 33 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT 45 * - col0 + - col0 + + col0 * + + col2 AS col0 FROM tab1
----
1105
2002
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT col1 DIV + col1 + 91 AS col1 FROM tab2
----
92
92
92

skipif mysql # not compatible
query I rowsort label-7927
SELECT col1 / + col1 + 91 AS col1 FROM tab2
----
92
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT ALL - - col2 + + col0 DIV col0 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - - col2 + + col0 / col0 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE - CAST( - col2 AS SIGNED ) NOT BETWEEN NULL AND + - 88
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7929
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) NOT BETWEEN NULL AND + - 88
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT col2 DIV - + 86 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT col2 / - + 86 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7932
SELECT * FROM tab1 WHERE NOT ( col2 * + col2 * - col0 BETWEEN NULL AND + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7932
SELECT * FROM tab1 WHERE NOT ( col2 * + col2 * - col0 BETWEEN NULL AND + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT CAST( NULL AS SIGNED ) * 5 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT CAST ( NULL AS INTEGER ) * 5 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT MAX( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7934
SELECT MAX ( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col2 * 17 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 73 * + ( - 77 ) AS col1 FROM tab0
----
-5621

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 35 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7939
SELECT ALL 31 * + - 35 * - + COUNT( * ) + - 8 DIV - 38 + + - COUNT( col2 ), ( - - 96 ) col2 FROM tab0 AS cor0
----
3252
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7939
SELECT ALL 31 * + - 35 * - + COUNT ( * ) + - 8 / - 38 + + - COUNT ( col2 ), ( - - 96 ) col2 FROM tab0 AS cor0
----
3252
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7940
SELECT - col0 * + + 47 + - + CAST( - + 73 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-4082
-4559
-704

skipif mysql # not compatible
query I rowsort label-7940
SELECT - col0 * + + 47 + - + CAST ( - + 73 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-4082
-4559
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL MAX( ALL - ( - - 65 ) ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL MAX ( ALL - ( - - 65 ) ) FROM tab2 AS cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * - col1 * - 32 col1, - col0 FROM tab0 AS cor0
----
3104
-97
38880
-15
58464
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL COUNT( * ) + + 64 AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL COUNT ( * ) + + 64 AS col0 FROM tab2 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT CAST( - col2 AS SIGNED ) + - + 70 + + + 62 AS col0 FROM tab1 AS cor0
----
-104
-67
-76

skipif mysql # not compatible
query I rowsort label-7946
SELECT CAST ( - col2 AS INTEGER ) + - + 70 + + + 62 AS col0 FROM tab1 AS cor0
----
-104
-67
-76

query I rowsort
SELECT - 57 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - + 0 * + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * 67 * + col1 * + - 44 col0 FROM tab0 AS cor0
----
-12655764
-156244
-3281124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT - 9 + col1 AS col1 FROM tab0 cor0 WHERE CAST( + col0 AS SIGNED ) BETWEEN NULL AND + + 9
----

skipif mysql # not compatible
query I rowsort label-7950
SELECT - 9 + col1 AS col1 FROM tab0 cor0 WHERE CAST ( + col0 AS INTEGER ) BETWEEN NULL AND + + 9
----

query I rowsort
SELECT ALL col1 - + 85 FROM tab1 AS cor0
----
-38
-71
-80

query I rowsort
SELECT + col0 + 7 FROM tab1 AS cor0
----
58
92
98

query I rowsort
SELECT - 39 + + - col0 FROM tab1 cor0
----
-124
-130
-90

query I rowsort
SELECT 25 + - ( - 13 ) AS col1 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT 25 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7955
SELECT 25 / col2 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col1 FROM tab1
----
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 83 / + col0 >= ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col1 FROM tab2
----
89
89
89

query I rowsort
SELECT DISTINCT - col0 * + col2 * - + 81 AS col2 FROM tab1 AS cor0
----
396576
406215
501228

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 * col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 70 ) col1 FROM tab0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT 23 / - + MAX( DISTINCT + - 82 ) col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT 23 / - + MAX ( DISTINCT + - 82 ) col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

query I rowsort
SELECT ALL col2 * + 83 FROM tab2 AS cor0
----
1909
3320
4814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7964
SELECT DISTINCT - COUNT( * ) DIV + + 74 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT DISTINCT - COUNT ( * ) / + + 74 col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + 10 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT col0 = col0
----

query I rowsort
SELECT col0 * + 82 FROM tab2 AS cor0
----
3772
5248
6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0 WHERE NOT ( NOT + - col2 * - + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0 WHERE NOT ( NOT + - col2 * - + col0 IS NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - ( - 27 ) ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT + CAST( + 51 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28 col1, + col0 FROM tab1
----
-28
51
-28
85
-28
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + MIN( + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7976
SELECT + MIN ( + col1 ) AS col0 FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - ( col2 ) * - + col2 AND ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT - COUNT( * ) * + MIN( 8 ) * + ( - + 87 ) * + COUNT( * ) * 28 + - 32 AS col2 FROM tab0
----
175360

skipif mysql # not compatible
query I rowsort label-7978
SELECT - COUNT ( * ) * + MIN ( 8 ) * + ( - + 87 ) * + COUNT ( * ) * 28 + - 32 AS col2 FROM tab0
----
175360

query I rowsort
SELECT ALL - 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab2 AS cor0 WHERE - ( + col2 ) >= NULL
----

query I rowsort
SELECT ALL + - col2 * 92 * - + col0 * + + col2 + + - col1 - col2 * 98 * - - col2 AS col1 FROM tab0 AS cor0
----
2831857
790579
86503625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 51 IS NULL
----

query I rowsort
SELECT + - 59 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 26, 78, - + 58 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * - 33 - col2 col0 FROM tab2 AS cor0
----
-2762
-2779
-2797

query I rowsort
SELECT - 32 + - 72 FROM tab0
----
-104
-104
-104

query II rowsort
SELECT + col2 * + 97 + 1 + + - col1 * ( 44 ) AS col1, - col1 FROM tab1
----
4529
-47
5504
-5
8697
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT CAST( NULL AS SIGNED ) + - + col2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT CAST ( NULL AS INTEGER ) + - + col2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7988
SELECT + MAX( DISTINCT 11 ) + + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab1
----
14
3

skipif mysql # not compatible
query II rowsort label-7988
SELECT + MAX ( DISTINCT 11 ) + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
14
3

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
5

query I rowsort
SELECT DISTINCT - ( + col0 ) * + + 85 AS col0 FROM tab2
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7991
SELECT - COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT MIN( - ( - - ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7993
SELECT MIN ( - ( - - ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT + col2 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT + 59 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ( + col1 ) * - ( - col0 ) + + 36 - + ( - + 1 ) FROM tab0
----
1252
134
1864

query I rowsort
SELECT ALL - + col2 * - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query II rowsort label-7998
SELECT DISTINCT - col0 DIV + + col0 AS col1, - col2 FROM tab0 cor0
----
-1
-10
-1
-47
-1
-99

skipif mysql # not compatible
query II rowsort label-7998
SELECT DISTINCT - col0 / + + col0 AS col1, - col2 FROM tab0 cor0
----
-1
-10
-1
-47
-1
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT ALL - 91 DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - 91 / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT + 20 * 10 FROM tab0 AS cor0
----
200
200
200

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + - MAX( DISTINCT - 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8001
SELECT + - MAX ( DISTINCT - 13 ) FROM tab1 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 58 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + ( - 56 ) col1 FROM tab2
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - SUM( - - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - SUM ( - - col0 ) AS col2 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT + col1 + + - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT + col1 + + - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT ALL + + COUNT( * ) AS col2, 83 * SUM( ALL col2 ) FROM tab0 WHERE NULL IS NULL
----
3
12948

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL + + COUNT ( * ) AS col2, 83 * SUM ( ALL col2 ) FROM tab0 WHERE NULL IS NULL
----
3
12948

query I rowsort
SELECT DISTINCT col1 + 77 + + - col1 + col1 FROM tab0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE - - 46 * col0 + - col0 BETWEEN - 27 + - col2 AND ( col0 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE - - 46 * col0 + - col0 BETWEEN - 27 + - col2 AND ( col0 + - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT DISTINCT + col0 DIV + col2 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
0
8

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + col0 / + col2 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
0
8

query I rowsort
SELECT DISTINCT + col1 + + col1 + col2 + - col2 AS col2 FROM tab1 AS cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 56 ) * - col2 col1 FROM tab2 AS cor0
----
-1288
-2240
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8012
SELECT + MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 67 * 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 >= + ( - CAST( 67 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 >= + ( - CAST ( 67 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT SUM( ALL 95 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
855

skipif mysql # not compatible
query I rowsort label-8015
SELECT SUM ( ALL 95 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
855

query I rowsort
SELECT + col0 + + - 93 AS col2 FROM tab2 AS cor0
----
-18
-29
-47

query I rowsort
SELECT col1 + - 21 * - col1 AS col0 FROM tab0 cor0
----
1782
22
462

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( + 8, - col1 )
----

query I rowsort
SELECT + - ( - 15 ) FROM tab1 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT 0 - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT 0 - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT DISTINCT + 84 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-8021
SELECT DISTINCT + 84 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT 23 * + - 85 - - + COUNT( * ) FROM tab2
----
-1952

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT 23 * + - 85 - - + COUNT ( * ) FROM tab2
----
-1952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT ALL 96 * + col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL 96 * + col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 AS col0 FROM tab0 WHERE NOT 9 IS NULL
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT DISTINCT 14 DIV + col2 * - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT 14 / + col2 * - col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - 68 * col1
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query II rowsort label-8029
SELECT col1, + col0 + - - col0 DIV ( + + col0 ) col2 FROM tab2
----
51
47
67
76
77
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8029
SELECT col1, + col0 + - - col0 / ( + + col0 ) col2 FROM tab2
----
51
47
67
76
77
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, - col2 * + 34 * + col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
23
-39882
40
-104720
58
-132124

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * + col0 + - col2 ) NOT BETWEEN - col0 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 > - col0
----

query I rowsort
SELECT DISTINCT + - 64 AS col0 FROM tab2 cor0
----
-64

query I rowsort
SELECT ALL 15 * col1 AS col0 FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT SUM( + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8036
SELECT SUM ( + col1 ) AS col1 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * + + col1 col0 FROM tab0
----
2673
33
693

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 + - col1 NOT BETWEEN - col2 * - 53 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 0 + + col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT DISTINCT col1 + + col1 DIV + + 59 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT col1 + + col1 / + + 59 AS col2 FROM tab1
----
14
47
5

query II rowsort
SELECT 31 + - - col2 AS col0, - col1 + - + 14 AS col1 FROM tab1
----
127
-28
90
-19
99
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 34 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col1 col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT 94 col2, COUNT( * ) FROM tab2
----
94
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8044
SELECT 94 col2, COUNT ( * ) FROM tab2
----
94
3

query I rowsort
SELECT ALL + + 47 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT col2 - + col2 - 62 + + col2 FROM tab2 AS cor0
----
-22
-39
-4

query I rowsort
SELECT 56 * + 31 * - col2 AS col1 FROM tab2
----
-100688
-39928
-69440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8048
SELECT col1, - CAST( - - CAST( - - 74 AS SIGNED ) AS SIGNED ) FROM tab2
----
51
-74
67
-74
77
-74

skipif mysql # not compatible
query II rowsort label-8048
SELECT col1, - CAST ( - - CAST ( - - 74 AS INTEGER ) AS INTEGER ) FROM tab2
----
51
-74
67
-74
77
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8049
SELECT + 58 * CAST( NULL AS SIGNED ), - col1 + + col2 AS col2 FROM tab1
----
NULL
21
NULL
54
NULL
82

skipif mysql # not compatible
query II rowsort label-8049
SELECT + 58 * CAST ( NULL AS INTEGER ), - col1 + + col2 AS col2 FROM tab1
----
NULL
21
NULL
54
NULL
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL >= col1 )
----

query I rowsort
SELECT DISTINCT - 95 * + - col2 FROM tab0
----
4465
9405
950

query I rowsort
SELECT col0 * - 46 AS col0 FROM tab0
----
-4002
-4462
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT COUNT( * ) + 97 FROM tab0, tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-8053
SELECT COUNT ( * ) + 97 FROM tab0, tab2 AS cor0
----
106

query II rowsort
SELECT DISTINCT + col1, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT col2 + 41 * - + col0 AS col2 FROM tab1 WHERE NOT ( ( ( col1 IS NOT NULL ) ) )
----

query I rowsort
SELECT ALL + ( + col0 ) * - + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query II rowsort
SELECT ALL 53 AS col0, col2 AS col1 FROM tab0 AS cor0
----
53
10
53
47
53
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + ( 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - + COUNT( DISTINCT - 16 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - + COUNT ( DISTINCT - 16 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 = ( - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 28 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
28

query I rowsort
SELECT ALL + 27 + + + col1 FROM tab0 AS cor0
----
108
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8063
SELECT * FROM tab1 AS cor0 WHERE col1 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8063
SELECT * FROM tab1 AS cor0 WHERE col1 < + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT 27 + + COUNT( ALL + col2 ) * COUNT( * ) * + 66 * + 11 * SUM( + 85 ) AS col0 FROM tab2 AS cor0
----
1666197

skipif mysql # not compatible
query I rowsort label-8064
SELECT 27 + + COUNT ( ALL + col2 ) * COUNT ( * ) * + 66 * + 11 * SUM ( + 85 ) AS col0 FROM tab2 AS cor0
----
1666197

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT - - COUNT( DISTINCT + ( - 37 ) ) + + 6 AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8065
SELECT - - COUNT ( DISTINCT + ( - 37 ) ) + + 6 AS col1 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT - - COUNT( * ) + 67 AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8066
SELECT - - COUNT ( * ) + 67 AS col1 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT 97 * - COUNT( ALL - col0 ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT 97 * - COUNT ( ALL - col0 ) FROM tab2
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT ALL col0 DIV col0 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT ALL col0 / col0 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE col1 BETWEEN + ( + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 1 * col0 * + 83 FROM tab1
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + COUNT( * ) * 53 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) * 53 FROM tab0
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-8073
SELECT - col0 + + col2 DIV + + col2 AS col0, col0 + 65 * + - col2 FROM tab2
----
-45
-1449
-63
-2536
-74
-3695

skipif mysql # not compatible
query II rowsort label-8073
SELECT - col0 + + col2 / + + col2 AS col0, col0 + 65 * + - col2 FROM tab2
----
-45
-1449
-63
-2536
-74
-3695

query I rowsort
SELECT ALL - col1 * - - col2 + col2 FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab0 WHERE col2 / col0 IN ( + 32 + + + col0 * + 2 - + - 87, - 43, - col0 )
----

query I rowsort
SELECT DISTINCT + ( + col2 ) * - + 58 + 98 AS col0 FROM tab2
----
-1236
-2222
-3266

query I rowsort
SELECT ALL 97 + + col1 FROM tab2
----
148
164
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT + SUM( + 32 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + SUM ( + 32 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT 54 - + col1 AS col0 FROM tab2 AS cor0
----
-13
-23
3

query I rowsort
SELECT - 29 - + col0 + + col2 FROM tab1
----
-52
-55
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col2 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + 96 + col1 AS col2 FROM tab2
----
147
163
173

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 - - - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 * + - col1 + - + col2 ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL - - 45 * + - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - - 45 * + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT + ( - - CAST( 8 AS SIGNED ) ) FROM tab2 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8086
SELECT + ( - - CAST ( 8 AS INTEGER ) ) FROM tab2 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - - SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - - SUM ( - col1 ) FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col1 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT - ( + 51 ) AS col0 FROM tab2 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL ( - ( - 8 ) ) FROM tab1
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8091
SELECT DISTINCT col1, - col0 * - CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 WHERE 50 / col1 + - - col1 > NULL
----

skipif mysql # not compatible
query II rowsort label-8091
SELECT DISTINCT col1, - col0 * - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 WHERE 50 / col1 + - - col1 > NULL
----

query II rowsort
SELECT DISTINCT - 66, col1 AS col1 FROM tab0
----
-66
1
-66
21
-66
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT DISTINCT - ( col2 ) DIV - + col0 AS col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - ( col2 ) / - + col0 AS col0 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - COUNT( * ) * + 53 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT - COUNT ( * ) * + 53 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV + - 46 FROM tab1 WHERE NOT col2 DIV - col0 * col0 * + - col1 = 5
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / + - 46 FROM tab1 WHERE NOT col2 / - col0 * col0 * + - col1 = 5
----
0

query I rowsort
SELECT - 93 * + 1 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8097
SELECT CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ( + col2 ) FROM tab0 cor0 WHERE NOT + col2 BETWEEN - - col1 AND NULL
----
10
47

query I rowsort
SELECT - 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL + ( - 22 ) FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + 55 + col1 FROM tab0 AS cor0
----
136
56
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8102
SELECT DISTINCT + CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8102
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * + 12 col1 FROM tab2 AS cor0
----
216
216
216

query III rowsort
SELECT * FROM tab0 WHERE + + col1 IS NULL
----

query I rowsort
SELECT ALL 95 + - col1 * - 33 AS col1 FROM tab1
----
1646
260
557

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT SUM( ALL - 96 ) FROM tab1, tab1 cor0
----
-864

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT SUM ( ALL - 96 ) FROM tab1, tab1 cor0
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT col0 + - - CAST( 55 AS SIGNED ) + + - col1 FROM tab0
----
-11
121
151

skipif mysql # not compatible
query I rowsort label-8107
SELECT col0 + - - CAST ( 55 AS INTEGER ) + + - col1 FROM tab0
----
-11
121
151

query I rowsort
SELECT ( + col0 ) + - 27 FROM tab2
----
19
37
48

query I rowsort
SELECT col2 + - - ( + 17 ) FROM tab1
----
113
76
85

query I rowsort
SELECT DISTINCT + 95 - + col0 AS col1 FROM tab1 AS cor0
----
10
4
44

query I rowsort
SELECT ALL - col0 * - + 96 - + col2 FROM tab0 AS cor0
----
1393
8342
9213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8112
SELECT * FROM tab0 AS cor0 WHERE col1 - - CAST( - col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8112
SELECT * FROM tab0 AS cor0 WHERE col1 - - CAST ( - col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL 79 + - 75 AS col1 FROM tab0 cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT + CAST( 74 AS SIGNED ) - - 72 FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + CAST ( 74 AS INTEGER ) - - 72 FROM tab1 AS cor0
----
146

query I rowsort
SELECT ALL - col2 * + + col1 AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT DISTINCT 20 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT 20 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL - MIN( - - 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - MIN ( - - 82 ) FROM tab1 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 65, + col2 + ( + 28 ) * - col2 col2 FROM tab2 AS cor0
----
-65
-1080
-65
-1566
-65
-621

query I rowsort
SELECT ALL + + 85 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND + 73
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8120
SELECT DISTINCT 98 DIV - COUNT( 12 ) AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT 98 / - COUNT ( 12 ) AS col1 FROM tab2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL - 77 * + col0 * - + ( + 76 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - 77 * + col0 * - + ( + 76 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8122
SELECT ( col2 ) * col2 + + + col0 DIV + CAST( + - 96 AS SIGNED ) AS col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8122
SELECT ( col2 ) * col2 + + + col0 / + CAST ( + - 96 AS INTEGER ) AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT DISTINCT CAST( 55 AS SIGNED ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT CAST ( 55 AS INTEGER ) AS col2 FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT COUNT( * ) * - - MIN( DISTINCT - col2 ) * - - 0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT COUNT ( * ) * - - MIN ( DISTINCT - col2 ) * - - 0 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 * + col2 col2, col2 AS col0 FROM tab0
----
1188
99
120
10
564
47

query I rowsort
SELECT DISTINCT + - col0 * - ( + col1 ) * + 73 AS col1 FROM tab0 AS cor0
----
133371
7081
88695

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT + 84 DIV - 99 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT + 84 / - 99 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 31 + + col2 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + + 34 + MAX( ALL 73 ) col0 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8129
SELECT ALL + + 34 + MAX ( ALL 73 ) col0 FROM tab0 AS cor0
----
107

query I rowsort
SELECT AVG ( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + col1 * + - col0 * + 34 * - col0 AS col1 FROM tab2 cor0
----
10723328
12813750
3669144

query II rowsort
SELECT + col1 * - + col2 + - col2, + col1 * + - 49 AS col0 FROM tab2 AS cor0
----
-1196
-2499
-3120
-3773
-3944
-3283

query I rowsort
SELECT - col2 * + 87 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
115
579
616

query I rowsort
SELECT DISTINCT - col2 - 70 AS col1 FROM tab2 AS cor0
----
-110
-128
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT COUNT( * ) + - 99 AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8135
SELECT COUNT ( * ) + - 99 AS col1 FROM tab2 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col2 - 12 AS col1 FROM tab1
----
59
47
68
56
96
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8137
SELECT DISTINCT + COUNT( * ) * - ( + COUNT( * ) ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT + COUNT ( * ) * - ( + COUNT ( * ) ) + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col2 * col1 + - - col1 + + col2 AS col0 FROM tab1
----
1454
3311
359

query II rowsort
SELECT DISTINCT + 59 AS col1, col2 AS col2 FROM tab1
----
59
59
59
68
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT + MAX( ALL + 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-8140
SELECT + MAX ( ALL + 37 ) FROM tab2
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 col1, + 0 AS col0 FROM tab0
----
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8142
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8142
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS REAL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT MAX( + 10 ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8143
SELECT MAX ( + 10 ) AS col2 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL + ( - - COUNT( * ) ) + + 34 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + ( - - COUNT ( * ) ) + + 34 FROM tab0 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT ALL + - 83 - + 26 DIV - + col0 + - col2 col1 FROM tab2 cor0
----
-106
-123
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8145
SELECT ALL + - 83 - + 26 / - + col0 + - col2 col1 FROM tab2 cor0
----
-106
-123
-141

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT - CAST( 45 AS SIGNED ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8147
SELECT - CAST ( 45 AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT ALL + + col2 DIV + 64 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + + col2 / + 64 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT SUM( col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT SUM ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT DISTINCT + MIN( DISTINCT - col1 ) col2, - 54 AS col2 FROM tab2 AS cor0
----
-77
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8151
SELECT DISTINCT + MIN ( DISTINCT - col1 ) col2, - 54 AS col2 FROM tab2 AS cor0
----
-77
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT MAX( 98 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8152
SELECT MAX ( 98 ) FROM tab2 AS cor0
----
98

query I rowsort
SELECT - + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 16 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8155
SELECT DISTINCT + CAST( + col2 AS SIGNED ), col0 * + col0 AS col2 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

skipif mysql # not compatible
query II rowsort label-8155
SELECT DISTINCT + CAST ( + col2 AS INTEGER ), col0 * + col0 AS col2 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

query I rowsort
SELECT - 21 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
-21
-21

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + - 27 = + ( - col2 ) * - + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8158
SELECT DISTINCT * FROM tab2 WHERE + 66 / col1 / + + CAST( NULL AS SIGNED ) / - - col1 + ( - + 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8158
SELECT DISTINCT * FROM tab2 WHERE + 66 / col1 / + + CAST ( NULL AS INTEGER ) / - - col1 + ( - + 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV - 24 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / - 24 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + COUNT( * ) col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8160
SELECT + COUNT ( * ) col1 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT - + CAST( NULL AS SIGNED ) * 18 * + col1 + + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT - + CAST ( NULL AS INTEGER ) * 18 * + col1 + + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / col1 * - col0 * 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 * - - 66 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - + col2 * + col2 * + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT - + ( + MAX( - + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - + ( + MAX ( - + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - col0 AS col1, + col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL - - col0 AS col0, - 39 AS col0 FROM tab1 AS cor0
----
51
-39
85
-39
91
-39

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - 22 ) AND NULL
----

query I rowsort
SELECT DISTINCT 10 + + col1 FROM tab1 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT - MIN( ALL - col2 ) * - COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8169
SELECT - MIN ( ALL - col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT - MIN( - 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - MIN ( - 64 ) FROM tab1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8171
SELECT MAX( ALL col2 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT MAX ( ALL col2 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 27 AS col1 FROM tab2
----
1080
1566
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT DISTINCT - col0 * + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - col0 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT ALL - CAST( col2 AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( 9 + 61 ) < + 41 * + col2
----

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( 9 + 61 ) < + 41 * + col2
----

query I rowsort
SELECT 20 / col1 - 72 AS col2 FROM tab0 WHERE NOT col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT - col2 FROM tab0 WHERE NOT - 2 * CAST( NULL AS SIGNED ) <> col2 * col0
----

skipif mysql # not compatible
query I rowsort label-8177
SELECT - col2 FROM tab0 WHERE NOT - 2 * CAST ( NULL AS INTEGER ) <> col2 * col0
----

query I rowsort
SELECT + ( ( col2 ) ) + col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8179
SELECT col2 * - CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT col2 * - CAST ( NULL AS REAL ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 / col0 col2 FROM tab2 WHERE NOT col2 NOT IN ( ( ( col1 ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 / col0 col2 FROM tab2 WHERE NOT col2 NOT IN ( ( ( col1 ) ) )
----

query I rowsort
SELECT 78 + 68 FROM tab1
----
146
146
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL SUM( ALL - ( 98 ) ) * + COUNT( * ) FROM tab2
----
-882

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL SUM ( ALL - ( 98 ) ) * + COUNT ( * ) FROM tab2
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT SUM( DISTINCT 60 ) AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8183
SELECT SUM ( DISTINCT 60 ) AS col0 FROM tab2
----
60

query I rowsort
SELECT - ( col1 ) FROM tab0 WHERE col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT ALL + COUNT( * ) DIV ( 1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + COUNT ( * ) / ( 1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col2 * + col0 + + col0 AS col1 FROM tab0
----
720
957
9700

query I rowsort
SELECT - ( - col0 ) * - col2 FROM tab0 WHERE NULL IS NULL
----
-705
-870
-9603

query I rowsort
SELECT ALL + col1 + col0 * - col2 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT ALL col2 + 78 AS col0 FROM tab2
----
101
118
136

query I rowsort
SELECT - 12 * col0 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT ALL - col1 * + 48 AS col0 FROM tab0
----
-1008
-3888
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT - COUNT( DISTINCT + col1 ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) * COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 14 - - 33 FROM tab2 WHERE col1 >= ( + col2 )
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 38 - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 63 col1 FROM tab0
----
-5481
-6111
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8198
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8199
SELECT DISTINCT * FROM tab2 WHERE - 14 / + CAST( NULL AS SIGNED ) > ( 15 - 0 )
----

skipif mysql # not compatible
query III rowsort label-8199
SELECT DISTINCT * FROM tab2 WHERE - 14 / + CAST ( NULL AS INTEGER ) > ( 15 - 0 )
----

query I rowsort
SELECT - 7 * - 25 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to df1e0ae2b82e246cd0e229a92da26b08

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT ALL + 34 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL + 34 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT - CAST( col1 AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col0 * + col1 <= - col0
----

skipif mysql # not compatible
query I rowsort label-8203
SELECT - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col0 * + col1 <= - col0
----

query I rowsort
SELECT + 27 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( 47 * + col0 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * col0 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 + col2 * ( - col0 * col2 + col1 * col0 ) ) BETWEEN + col2 AND - col2
----
-4882
-5010
-6141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 76 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT col2 + col1 * - ( + 35 * + col1 + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( CAST( col1 AS SIGNED ) ) ) IS NULL
----
-1111
-80443
-8108

skipif mysql # not compatible
query I rowsort label-8208
SELECT col2 + col1 * - ( + 35 * + col1 + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( CAST ( col1 AS INTEGER ) ) ) IS NULL
----
-1111
-80443
-8108

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT ALL + col0 DIV 77 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + col0 / 77 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL ( + SUM( + col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL ( + SUM ( + col0 ) ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) > ( col0 )
----
87
21
10

query I rowsort
SELECT ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - COUNT( * ) * + 7 AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8216
SELECT - COUNT ( * ) * + 7 AS col1 FROM tab0 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col2 FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + ( - 82 ) * COUNT( * ) FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + ( - 82 ) * COUNT ( * ) FROM tab1 AS cor0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT MAX( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT MAX ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 55 NOT IN ( + 8 * + 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT + COUNT( - 59 ) * - MAX( 35 + 14 * col2 ) AS col2 FROM tab0
----
-4263

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT + COUNT ( - 59 ) * - MAX ( 35 + 14 * col2 ) AS col2 FROM tab0
----
-4263

query I rowsort
SELECT DISTINCT 4 * + 12 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE ( - 32 ) <= ( - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE ( - 32 ) <= ( - 53 )
----
0

query I rowsort
SELECT - col1 + + - col2 AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + SUM( ALL col0 ) + 96 AS col2 FROM tab1
----
323

skipif mysql # not compatible
query I rowsort label-8225
SELECT + SUM ( ALL col0 ) + 96 AS col2 FROM tab1
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - SUM( ALL col2 ) col2 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8226
SELECT - SUM ( ALL col2 ) col2 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( - 30 ) AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-30
-30
-30

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN - ( 36 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ( - 17 ) * COUNT( * ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8229
SELECT ( - 17 ) * COUNT ( * ) FROM tab2 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col0 FROM tab1 AS cor0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8231
SELECT - CAST( NULL AS SIGNED ) * COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT IN ( col2 + - 45 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8234
SELECT ALL 11 * - + SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL 11 * - + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT ( 89 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL + MAX( + 36 ) + COUNT( * ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + MAX ( + 36 ) + COUNT ( * ) AS col1 FROM tab2
----
39

query I rowsort
SELECT ALL ( + + col0 ) + - col2 * 51 AS col1 FROM tab1 AS cor0
----
-2924
-3377
-4845

query I rowsort
SELECT + 73 * col0 + - 72 FROM tab0 AS cor0
----
1023
6279
7009

query I rowsort
SELECT ALL - col1 + - + col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - + ( - 46 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - - AVG ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT col0 DIV + 49 + col2 - - ( - col1 - 99 * col0 ) FROM tab1 AS cor0
----
-4966
-8360
-8987

skipif mysql # not compatible
query I rowsort label-8242
SELECT col0 / + 49 + col2 - - ( - col1 - 99 * col0 ) FROM tab1 AS cor0
----
-4966
-8360
-8987

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col1
----

query II rowsort
SELECT - + col1, - 34 AS col0 FROM tab1 AS cor0
----
-14
-34
-47
-34
-5
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8245
SELECT ALL + SUM( - col1 ) - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + SUM ( - col1 ) - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT MAX( - - col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8246
SELECT MAX ( - - col2 ) AS col2 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE - 78 NOT IN ( 78 + - col1 )
----
-23
-40
-58

query I rowsort
SELECT ( 42 ) AS col1 FROM tab1
----
42
42
42

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * ( col2 + col2 ) FROM tab2 WHERE - 40 IS NOT NULL
----
2116
5120
8700

query III rowsort
SELECT * FROM tab1 WHERE NOT + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8253
SELECT CAST( - 43 AS SIGNED ) DIV + 83 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT CAST ( - 43 AS INTEGER ) / + 83 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT - CAST( - 74 AS SIGNED ) FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-8254
SELECT - CAST ( - 74 AS INTEGER ) FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT + MIN( - 54 ) AS col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT + MIN ( - 54 ) AS col1 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 * + + col0 + 97 - col1 * - col2 ) IS NULL
----

query I rowsort
SELECT + col0 * - col0 * - + col1 AS col2 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT col2 * 35 AS col0 FROM tab1 AS cor0
----
2065
2380
3360

query I rowsort
SELECT - 47 * - col0 * - + col1 FROM tab1 AS cor0
----
-19975
-201019
-33558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8261
SELECT ALL + + COUNT( * ), - COUNT( * ) * CAST( + SUM( + - col2 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8261
SELECT ALL + + COUNT ( * ), - COUNT ( * ) * CAST ( + SUM ( + - col2 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3
669

query I rowsort
SELECT DISTINCT 38 * - - col0 AS col2 FROM tab2 AS cor0
----
1748
2432
2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 col1 FROM tab0 WHERE NULL <> + - 39
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 * + + col0 )
----

query II rowsort
SELECT col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8266
SELECT - CAST( NULL AS SIGNED ), 72 AS col1 FROM tab2
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
query II rowsort label-8266
SELECT - CAST ( NULL AS INTEGER ), 72 AS col1 FROM tab2
----
NULL
72
NULL
72
NULL
72

query I rowsort
SELECT ALL 21 + - col1 FROM tab2
----
-30
-46
-56

query III rowsort
SELECT * FROM tab1 WHERE 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 4 + - 50 AS col0 FROM tab2
----
-46
-46
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + + 2 * - + col2 * + col0 OR col2 <> col2
----

query I rowsort
SELECT + 53 * - - col2 + + - col0 * - ( col1 ) FROM tab0 AS cor0
----
2357
3706
5344

query I rowsort
SELECT DISTINCT col1 - + + col1 AS col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT 60 + - + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT 60 + - + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT ALL col1 DIV + - col0 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL col1 / + - col0 AS col1 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - ( - col1 ) col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + 65
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN ( 69 ) AND ( + col0 )
----

query I rowsort
SELECT DISTINCT + col0 + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT ALL 64 col0 FROM tab2 AS cor0 WHERE NOT 16 * + 21 = - col2 / - 92 + 32 + CAST( NULL AS SIGNED ) - + 31 * col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8279
SELECT ALL 64 col0 FROM tab2 AS cor0 WHERE NOT 16 * + 21 = - col2 / - 92 + 32 + CAST ( NULL AS INTEGER ) - + 31 * col1
----

query I rowsort
SELECT ALL col1 - - - col2 - col1 * + col2 + - col0 AS col2 FROM tab0 cor0
----
-286
-294
-3788

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, col2, + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + 61 * + COUNT( * ) col0 FROM tab1
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT + 61 * + COUNT ( * ) col0 FROM tab1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT ALL col1 DIV - ( - ( - - col0 ) ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL col1 / - ( - ( - - col0 ) ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8285
SELECT DISTINCT + COUNT( - col0 ) DIV - - COUNT( * ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8285
SELECT DISTINCT + COUNT ( - col0 ) / - - COUNT ( * ) col2 FROM tab0
----
1

query I rowsort
SELECT DISTINCT ( + - 13 ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT 77 DIV COUNT( * ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-8287
SELECT 77 / COUNT ( * ) AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - COUNT( * ) * + 12 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8288
SELECT - COUNT ( * ) * + 12 FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8289
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IS NULL OR - col1 * CAST( 78 AS SIGNED ) + col1 IN ( col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8289
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IS NULL OR - col1 * CAST ( 78 AS INTEGER ) + col1 IN ( col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) BETWEEN col2 / + - col2 AND ( col2 )
----
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 * - 82 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 41 ) col0 FROM tab0 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + 69, col1, + ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8295
SELECT col2, CAST( 30 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
30
68
30
96
30

skipif mysql # not compatible
query II rowsort label-8295
SELECT col2, CAST ( 30 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
30
68
30
96
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 46 <= NULL
----

query I rowsort
SELECT + col0 + - 57 FROM tab1 AS cor0
----
-6
28
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL MAX( DISTINCT + 40 ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL MAX ( DISTINCT + 40 ) AS col0 FROM tab0
----
40

query I rowsort
SELECT + col1 * + col1 + + 89 FROM tab1
----
114
2298
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT col1 + - + 83 FROM tab1
----
-36
-69
-78

query I rowsort
SELECT ALL - 28 + + col2 + - + 6 FROM tab1
----
25
34
62

query I rowsort
SELECT ALL - 79 + col2 + - - col1 FROM tab0
----
-48
21
49

query I rowsort
SELECT DISTINCT + col2 * + col2 * 54 FROM tab0 WHERE NULL > ( + col2 + ( + ( ( + + 73 ) ) ) - - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT ALL - 45 - - col1 DIV col1 + ( - ( col0 ) ) + + - col1 * + 84 + - 71 AS col1 FROM tab0 AS cor0
----
-1966
-296
-6934

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - 45 - - col1 / col1 + ( - ( col0 ) ) + + - col1 * + 84 + - 71 AS col1 FROM tab0 AS cor0
----
-1966
-296
-6934

query II rowsort
SELECT ALL col2, + 88 AS col0 FROM tab0
----
10
88
47
88
99
88

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + col1 < col1 - - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + ( ( col0 ) ) * + col0 * + ( + col1 ) + col0 AS col1 FROM tab1 cor0 WHERE NOT 14 IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, + 38 AS col0 FROM tab0 AS cor0
----
15
38
87
38
97
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 93 AS col0 FROM tab2 AS cor0
----
-51
93
-67
93
-77
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 53 + - - 6 + + col0 + + - col1 ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + MAX( - + 75 ) AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8312
SELECT + MAX ( - + 75 ) AS col0 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT + + 65 * - 86 FROM tab1 cor0
----
-5590
-5590
-5590

query II rowsort
SELECT col1 AS col2, - 15 * + - col2 FROM tab2 AS cor0
----
51
345
67
870
77
600

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT + 57 AS col1, + MAX( + col1 ) * + - 50 AS col2 FROM tab1 AS cor0
----
57
-2350

skipif mysql # not compatible
query II rowsort label-8315
SELECT + 57 AS col1, + MAX ( + col1 ) * + - 50 AS col2 FROM tab1 AS cor0
----
57
-2350

query I rowsort
SELECT DISTINCT + col0 * 82 AS col0 FROM tab0 AS cor0
----
1230
7134
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL + COUNT( ALL + ( 45 ) ) col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8317
SELECT ALL + COUNT ( ALL + ( 45 ) ) col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT ALL - 68 AS col1, COUNT( * ) FROM tab0, tab2 AS cor0
----
-68
9

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL - 68 AS col1, COUNT ( * ) FROM tab0, tab2 AS cor0
----
-68
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 < - + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + + 29 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8321
SELECT + + 29 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
87

query II rowsort
SELECT + + col0 * + 7 * + col1, 81 AS col2 FROM tab2 AS cor0
----
16422
81
34496
81
35175
81

query I rowsort
SELECT ALL - + 47 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - 60 AS col1 FROM tab2 cor0
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 * - - 89 + - col1 AS col1 FROM tab0
----
1432
1492
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT - - MIN( + CAST( NULL AS SIGNED ) ) - + ( + 22 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT - - MIN ( + CAST ( NULL AS INTEGER ) ) - + ( + 22 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query II rowsort
SELECT + col1, - col1 * - col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT - col1 / 23 FROM tab0 AS cor0 WHERE 89 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 27 AS col1 FROM tab0 AS cor0
----
2187
27
567

query I rowsort
SELECT + 92 * + col2 AS col1 FROM tab1 cor0
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT ALL + 35 AS col1, COUNT( * ) FROM tab2 AS cor0
----
35
3

skipif mysql # not compatible
query II rowsort label-8333
SELECT ALL + 35 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + MAX( col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8334
SELECT + MAX ( col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT ALL ( + 57 ) + 39 FROM tab2
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 65 * - - col1 * + + col1 * + 64 + - col1 + + - col0 + + 64 * + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 11 * + - ( + - 94 ) + - col2 col0, - col0 * + 19 FROM tab2
----
1011
-874
976
-1425
994
-1216

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 7 ) < NULL
----

query I rowsort
SELECT ALL + 98 AS col2 FROM tab0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 78 * - col2 col1 FROM tab2
----
-199680
-339300
-82524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 92 col0 FROM tab2 AS cor0
----
-4692
-6164
-7084

query I rowsort
SELECT DISTINCT col0 * - ( + + col0 ) AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 + - 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - col1 * - - col0 * + + col1 + 97 FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + SUM( DISTINCT - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8348
SELECT + SUM ( DISTINCT - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + COUNT( * ) * + ( + + COUNT( * ) ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8349
SELECT + COUNT ( * ) * + ( + + COUNT ( * ) ) col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT COUNT( - - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8350
SELECT COUNT ( - - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col0 * - 87 AS col1 FROM tab2
----
4002
5568
6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT ALL + 19 DIV + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL + 19 / + COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT ALL 0 AS col2 FROM tab2 WHERE NOT + col2 = + - col1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT - MIN( 85 ) col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8355
SELECT DISTINCT - MIN ( 85 ) col1 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT - col2 * + 8 + 1 FROM tab2 AS cor0
----
-183
-319
-463

query I rowsort
SELECT + ( + + ( + 58 ) ) AS col1 FROM tab0
----
58
58
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + - 12 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8360
SELECT CAST( 0 AS SIGNED ) + SUM( DISTINCT + 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8360
SELECT CAST ( 0 AS INTEGER ) + SUM ( DISTINCT + 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT + col2 + - + 84 + col0 FROM tab2 AS cor0
----
-15
20
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT + + ( + - col1 ) DIV - col0 + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-8362
SELECT + + ( + - col1 ) / - col0 + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-76

query I rowsort
SELECT + ( - col1 ) * + col0 + + 0 + + + col2 + + + 78 * 50 FROM tab0 AS cor0
----
2083
2732
3902

onlyif mysql # DIV for integer division: 
query II rowsort label-8364
SELECT col1 DIV - col2 + col1, - col1 - - 38 AS col1 FROM tab0
----
1
37
19
17
80
-43

skipif mysql # not compatible
query II rowsort label-8364
SELECT col1 / - col2 + col1, - col1 - - 38 AS col1 FROM tab0
----
1
37
19
17
80
-43

query III rowsort
SELECT * FROM tab0 WHERE ( - - 45 ) = - 63
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN - col1 * col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8367
SELECT - CAST( NULL AS DECIMAL ) * - - 38 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - CAST ( NULL AS REAL ) * - - 38 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col2 + + 92 * + 20 FROM tab2
----
1914
1957
1965

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL - - 14 + + - COUNT( DISTINCT + - col1 ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - - 14 + + - COUNT ( DISTINCT + - col1 ) FROM tab2 cor0
----
11

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE 87 - - col2 - + 78 / 11 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT col1 - - 9 + - - 32 + - - col2 AS col1 FROM tab2 AS cor0
----
115
158
166

query II rowsort
SELECT DISTINCT + - col0 AS col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT 20 FROM tab0 WHERE NOT + - col1 <> NULL
----

query I rowsort
SELECT DISTINCT 37 * + col2 FROM tab1
----
2183
2516
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT - - col0 DIV - 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8375
SELECT - - col0 / - 99 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT + + COUNT( ALL + col1 ) AS col2 FROM tab1 WHERE + col1 * + + col1 > + - col0
----
3

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT + + COUNT ( ALL + col1 ) AS col2 FROM tab1 WHERE + col1 * + + col1 > + - col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8377
SELECT DISTINCT 32, - col2 DIV col0 + + col2 AS col1 FROM tab2
----
32
23
32
40
32
58

skipif mysql # not compatible
query II rowsort label-8377
SELECT DISTINCT 32, - col2 / col0 + + col2 AS col1 FROM tab2
----
32
23
32
40
32
58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col0 + - - 86
----

query I rowsort
SELECT ALL col0 * - 26 FROM tab1
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query II rowsort label-8380
SELECT 74 AS col1, + COUNT( * ) * + COUNT( * ) * - 27 AS col2 FROM tab0
----
74
-243

skipif mysql # not compatible
query II rowsort label-8380
SELECT 74 AS col1, + COUNT ( * ) * + COUNT ( * ) * - 27 AS col2 FROM tab0
----
74
-243

query I rowsort
SELECT ALL col0 * 64 FROM tab2
----
2944
4096
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT + COUNT( ALL - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8382
SELECT + COUNT ( ALL - col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT 38 * + + COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-8383
SELECT 38 * + + COUNT ( * ) FROM tab0
----
114

query I rowsort
SELECT ALL ( - + 73 ) AS col1 FROM tab1
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - col2 col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT CAST( NULL AS SIGNED ) / + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT CAST ( NULL AS INTEGER ) / + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT CAST( - AVG ( ALL - + ( 28 ) ) AS SIGNED ) + - 51 AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8388
SELECT CAST ( - AVG ( ALL - + ( 28 ) ) AS INTEGER ) + - 51 AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + 44 * - ( 29 ) * + - col2 + + col2 + col2 AS col0 FROM tab2
----
29394
51120
74124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8390
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + + 64 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT ALL - col2 * - + col0 + col0 * - 33 FROM tab2 AS cor0
----
-460
1875
448

query I rowsort
SELECT + - 8 AS col2 FROM tab0 cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT + MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8394
SELECT + MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT - - col1 AS col0, + 85 * 50 AS col0 FROM tab2 AS cor0
----
51
4250
67
4250
77
4250

query I rowsort
SELECT + col1 - 97 * col2 FROM tab0
----
-4478
-949
-9602

query I rowsort
SELECT - 2 + - 74 FROM tab0
----
-76
-76
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT + COUNT( * ) * - 60 + CAST( - 32 AS SIGNED ) FROM tab0
----
-212

skipif mysql # not compatible
query I rowsort label-8398
SELECT + COUNT ( * ) * - 60 + CAST ( - 32 AS INTEGER ) FROM tab0
----
-212

query I rowsort
SELECT ALL 16 * + col1 + 89 * + col0 FROM tab1
----
4763
7645
8851

query II rowsort
SELECT + col2 + + 70 AS col2, 22 AS col0 FROM tab2
----
110
22
128
22
93
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL MIN( + + col1 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL MIN ( + + col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + 94 + + - col1 AS col0, - 84 AS col0 FROM tab1 AS cor0
----
47
-84
80
-84
89
-84

query I rowsort
SELECT - 20 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-8404
SELECT - 16 * - COUNT( + - col2 ), - 96 AS col2, + + COUNT( DISTINCT - - col0 ) AS col1 FROM tab0
----
48
-96
3

skipif mysql # not compatible
query III rowsort label-8404
SELECT - 16 * - COUNT ( + - col2 ), - 96 AS col2, + + COUNT ( DISTINCT - - col0 ) AS col1 FROM tab0
----
48
-96
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT ALL + + CAST( - 30 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT + col2 * - + 44 * + col1 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + + CAST ( - 30 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT + col2 * - + 44 * + col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT 34 * + COUNT( * ) * 9 + COUNT( - 26 ) col2 FROM tab0 cor0
----
921

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8407
SELECT 34 * + COUNT ( * ) * 9 + COUNT ( - 26 ) col2 FROM tab0 cor0
----
921

query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - col2 / + 10 * - col0 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT COUNT( DISTINCT + 55 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT COUNT ( DISTINCT + 55 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ( 98 ) AS col1 FROM tab2
----
98
98
98

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - - col2 + - 15 + - - col1 IS NULL ) )
----

query I rowsort
SELECT + - 81 + - + col0 + + ( + + col0 ) * - col2 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col0 * + 33 AS col1, - 95 + - 65 AS col2 FROM tab1
----
1683
-160
2805
-160
3003
-160

query I rowsort
SELECT - col1 + + 98 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
77
97

query I rowsort
SELECT - col2 * + + col0 FROM tab0 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8416
SELECT + - col0 / CAST( NULL AS SIGNED ) + + 51 * + + col0, 69 AS col0 FROM tab1 AS cor0
----
NULL
69
NULL
69
NULL
69

skipif mysql # not compatible
query II rowsort label-8416
SELECT + - col0 / CAST ( NULL AS INTEGER ) + + 51 * + + col0, 69 AS col0 FROM tab1 AS cor0
----
NULL
69
NULL
69
NULL
69

query I rowsort
SELECT 11 * ( - col1 ) FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT DISTINCT col0 DIV + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT col0 / + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT COUNT( - col1 ) + - + MIN( DISTINCT - col1 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT COUNT ( - col1 ) + - + MIN ( DISTINCT - col1 ) FROM tab2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8420
SELECT - - COUNT( * ) + 22 * 7, - COUNT( - col2 ) DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
157
1

skipif mysql # not compatible
query II rowsort label-8420
SELECT - - COUNT ( * ) + 22 * 7, - COUNT ( - col2 ) / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
157
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - col1 * + col0 + + col0
----

query I rowsort
SELECT DISTINCT + col0 - 3 - - col2 AS col0 FROM tab1 AS cor0
----
141
144
156

query I rowsort
SELECT + + ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL col2 - - + col1 - - col1 + + + 47 AS col0 FROM tab0 AS cor0
----
148
256
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT DISTINCT + + 80 DIV 4 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + + 80 / 4 FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL + COUNT( * ) - - 69 AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + COUNT ( * ) - - 69 AS col2 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 6 ) * - 37 + col1 col0, + col2 + + col0 col2 FROM tab0
----
-141
62
-201
97
-221
196

query I rowsort
SELECT - col1 * - col2 * + + 62 * col1 FROM tab0
----
19118754
273420
6138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8430
SELECT DISTINCT COUNT( * ) DIV - 9 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT COUNT ( * ) / - 9 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT ALL col1 DIV + 6 + + col0 DIV - col1 col1 FROM tab2
----
10
12
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT ALL col1 / + 6 + + col0 / - col1 col1 FROM tab2
----
10
12
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT - COUNT( + + col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - COUNT ( + + col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + + 68 * 72 + + 52 * col0 FROM tab1 WHERE - ( - col0 ) + - 20 IS NOT NULL
----
7548
9316
9628

query I rowsort
SELECT DISTINCT col2 + + + 20 + 13 FROM tab1 cor0
----
101
129
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT DISTINCT + col0 * col1 + col0 DIV + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + col0 * col1 + col0 / + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
2347
4929
5026

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT - - col1 DIV + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - - col1 / + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT - col1 * col1 DIV + + col0 AS col1 FROM tab2
----
-56
-59
-92

skipif mysql # not compatible
query I rowsort label-8440
SELECT - col1 * col1 / + + col0 AS col1 FROM tab2
----
-56
-59
-92

query I rowsort
SELECT + + col2 * + + col1 + - ( - 23 ) FROM tab0 AS cor0
----
122
233
3830

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT + - 26 * - + 28, + COUNT( * ) + - 80 AS col0 FROM tab1 AS cor0
----
728
-77

skipif mysql # not compatible
query II rowsort label-8442
SELECT + - 26 * - + 28, + COUNT ( * ) + - 80 AS col0 FROM tab1 AS cor0
----
728
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT COUNT( * ) * 63 + - 66 FROM tab2 cor0
----
123

skipif mysql # not compatible
query I rowsort label-8443
SELECT COUNT ( * ) * 63 + - 66 FROM tab2 cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8444
SELECT + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT 97 * + COUNT( 27 ) AS col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT 97 * + COUNT ( 27 ) AS col2 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - MIN( ALL + 90 ) AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8446
SELECT - MIN ( ALL + 90 ) AS col0 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT SUM( - 62 ) AS col2 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-8447
SELECT SUM ( - 62 ) AS col2 FROM tab0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 48 col1, - col2 AS col1 FROM tab1
----
-48
-59
-48
-68
-48
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - + 47 IS NOT NULL
----

query II rowsort
SELECT + 33 AS col1, col1 AS col2 FROM tab1
----
33
14
33
47
33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - 13 + - + COUNT( * ) AS col1 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - 13 + - + COUNT ( * ) AS col1 FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT DISTINCT - COUNT( * ), - MIN( DISTINCT col2 ) AS col0 FROM tab0
----
-3
-10

skipif mysql # not compatible
query II rowsort label-8454
SELECT DISTINCT - COUNT ( * ), - MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
-3
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 > NULL
----

query I rowsort
SELECT 65 + + col0 FROM tab0 AS cor0
----
152
162
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT col1 + + col0 * + col2 * - + col0 DIV + + col0 + - 53 FROM tab1 AS cor0
----
-4935
-5063
-6194

skipif mysql # not compatible
query I rowsort label-8457
SELECT col1 + + col0 * + col2 * - + col0 / + + col0 + - 53 FROM tab1 AS cor0
----
-4935
-5063
-6194

query II rowsort
SELECT ALL - - 67, 85 AS col1 FROM tab1 AS cor0
----
67
85
67
85
67
85

query I rowsort
SELECT - 38 + + + 38 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8461
SELECT ALL + col2 * + 2 AS col1, col0 * CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
198
9603
20
870
94
705

skipif mysql # not compatible
query II rowsort label-8461
SELECT ALL + col2 * + 2 AS col1, col0 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
198
9603
20
870
94
705

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 AS col1 FROM tab2
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 4 + + col2 <> col2
----

query I rowsort
SELECT ALL - 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + SUM( ALL + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8465
SELECT + SUM ( ALL + col1 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT ALL + 67 + + col1 + + 54 * + 45 * + col2, 55 - - 77 * - ( - + 43 ) AS col1 FROM tab1 AS cor0
----
143442
3366
165354
3366
233361
3366

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = + 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT DISTINCT - col0 - - 34 DIV + + col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - col0 - - 34 / + + col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT + ( COUNT( * ) ) + + 24 AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + ( COUNT ( * ) ) + + 24 AS col1 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + + 33 - - + COUNT( * ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8470
SELECT + + 33 - - + COUNT ( * ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT DISTINCT 99 - - col1 + col1 FROM tab1 AS cor0
----
109
127
193

query III rowsort
SELECT * FROM tab1 WHERE + - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT DISTINCT 6, COUNT( * ) AS col2 FROM tab0
----
6
3

skipif mysql # not compatible
query II rowsort label-8473
SELECT DISTINCT 6, COUNT ( * ) AS col2 FROM tab0
----
6
3

query III rowsort
SELECT * FROM tab1 WHERE ( 84 ) NOT IN ( + 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col2 + - - col1 - - col0 - 22 * + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN ( NULL ) AND + 49 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL + SUM( + + 15 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + SUM ( + + 15 ) FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8478
SELECT DISTINCT - 80 * - - col0 * 71 AS col1, col1 - col0 * + - CAST( col2 AS SIGNED ) + - + col1 AS col1 FROM tab0
----
-494160
870
-550960
9603
-85200
705

skipif mysql # not compatible
query II rowsort label-8478
SELECT DISTINCT - 80 * - - col0 * 71 AS col1, col1 - col0 * + - CAST ( col2 AS INTEGER ) + - + col1 AS col1 FROM tab0
----
-494160
870
-550960
9603
-85200
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) * - 60 * col2 col0 FROM tab1
----
-17700
-191760
-80640

query I rowsort
SELECT ALL ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL - MIN( DISTINCT - 8 ) * - MAX( col2 ) FROM tab2 AS cor0
----
-464

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - MIN ( DISTINCT - 8 ) * - MAX ( col2 ) FROM tab2 AS cor0
----
-464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8482
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT - + MIN( DISTINCT 28 ) AS col2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT - + MIN ( DISTINCT 28 ) AS col2 FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8484
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL + + COUNT( - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + + COUNT ( - - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT DISTINCT col0 DIV - 27 AS col1 FROM tab1 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT col0 / - 27 AS col1 FROM tab1 AS cor0
----
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT ALL + col0 DIV col2 * - col0 * - col2 - - 99 FROM tab0 AS cor0
----
7059
99
99

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + col0 / col2 * - col0 * - col2 - - 99 FROM tab0 AS cor0
----
7059
99
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * 38 IS NOT NULL
----

query I rowsort
SELECT col2 + + 30 FROM tab1
----
126
89
98

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col0 + + ( + + 83 ) FROM tab2
----
129
147
158

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8492
SELECT DISTINCT * FROM tab1 WHERE - 10 * - col0 - + CAST( NULL AS DECIMAL ) NOT IN ( 93 - + 42 )
----

skipif mysql # not compatible
query III rowsort label-8492
SELECT DISTINCT * FROM tab1 WHERE - 10 * - col0 - + CAST ( NULL AS REAL ) NOT IN ( 93 - + 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL + - col1 * + + col2 + - CAST( + 58 AS SIGNED ) * + col1 FROM tab0 cor0
----
-1428
-157
-8505

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + - col1 * + + col2 + - CAST ( + 58 AS INTEGER ) * + col1 FROM tab0 cor0
----
-1428
-157
-8505

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT - 22 DIV - col1 FROM tab0 AS cor0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-8494
SELECT - 22 / - col1 FROM tab0 AS cor0
----
0
1
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT col0 DIV col0 - + ( + + col2 ) FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8495
SELECT col0 / col0 - + ( + + col2 ) FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-8496
SELECT - col1 * + 13 - - 45 - ( + col0 ) DIV col2 AS col2, col2 FROM tab1
----
-137
96
-21
59
-567
68

skipif mysql # not compatible
query II rowsort label-8496
SELECT - col1 * + 13 - - 45 - ( + col0 ) / col2 AS col2, col2 FROM tab1
----
-137
96
-21
59
-567
68

query I rowsort
SELECT - 41 * + col1 - 42 AS col2 FROM tab2
----
-2133
-2789
-3199

query I rowsort
SELECT - + 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL - 69 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( * ) + 82 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( * ) + 82 FROM tab1
----
79

query I rowsort
SELECT DISTINCT ( - col1 ) - + col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - 82 + 15 FROM tab2 AS cor0
----
-67
-67
-67

query II rowsort
SELECT col0, - col2 FROM tab1 cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT - + ( - col1 ) * - + 17 - - + 13 FROM tab0 AS cor0
----
-1364
-344
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT - - CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8505
SELECT - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 42 * - col2 * - 48 - + 96 FROM tab2 AS cor0
----
116832
46272
80544

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT - col0 DIV 91 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT - col0 / 91 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 20 * - col0 AS col0 FROM tab0
----
1740
1940
300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8510
SELECT - col2 DIV + - 33, col0 FROM tab0 AS cor0
----
0
87
1
15
3
97

skipif mysql # not compatible
query II rowsort label-8510
SELECT - col2 / + - 33, col0 FROM tab0 AS cor0
----
0
87
1
15
3
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 < + ( + ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + + MAX( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + + MAX ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT 92 * + - col2 * col1 * + - col0 AS col2 FROM tab1
----
2306900
26756912
6306048

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT col0 DIV - - col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT col0 / - - col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 73 col2 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ( - 5 ) AS col1 FROM tab2 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 90, + col1, col2 * - - col0, + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 95 ) * + col2 * - 5 col0 FROM tab1 AS cor0
----
28025
32300
45600

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - 49 * - + COUNT( * ) FROM tab0 cor0
----
147

skipif mysql # not compatible
query I rowsort label-8519
SELECT - 49 * - + COUNT ( * ) FROM tab0 cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - MAX( ALL + 91 ) AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - MAX ( ALL + 91 ) AS col1 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT col1 * + 62 AS col2 FROM tab0 AS cor0
----
1302
5022
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 col2 FROM tab1 AS cor0
----
51
51
51

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab0 AS cor0 WHERE col0 * - 3 + col1 < + - col2
----
-10
10
-99
99

query III rowsort
SELECT * FROM tab2 WHERE 1 NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col1 AND + col1 - col2 + + col0 * + - ( - - 43 ) * + 23 + + col1 + + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT ALL + col0 DIV 79 + 21 AS col2 FROM tab1
----
21
22
22

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + col0 / 79 + 21 AS col2 FROM tab1
----
21
22
22

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 IS NULL )
----

query I rowsort
SELECT - 12 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT - col0 + - + col2 * - + 65 * - col1 - CAST( NULL AS SIGNED ) / col2 * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT - col0 + - + col2 * - + 65 * - col1 - CAST ( NULL AS INTEGER ) / col2 * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 + + ( + col1 ) col0 FROM tab2 AS cor0
----
125
192
194

query I rowsort
SELECT + 23 + - 22 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 64 + + - 9 AS col0 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + + 99 * - col2 AS col1 FROM tab1 AS cor0
----
-5841
-6732
-9504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8536
SELECT COUNT( * ) DIV - 21 * - + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT COUNT ( * ) / - 21 * - + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 89 + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 14 ) * + 67 - col1 FROM tab2
----
-1005
-1015
-989

query I rowsort
SELECT col2 * - - ( + col0 ) - - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT + COUNT( * ) + - MAX( ALL - - col1 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + COUNT ( * ) + - MAX ( ALL - - col1 ) FROM tab2 AS cor0
----
-74

query I rowsort
SELECT col1 - - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL - MAX( - ( - ( - 59 ) ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - MAX ( - ( - ( - 59 ) ) ) FROM tab1 cor0
----
59

query I rowsort
SELECT + 64 * + 32 FROM tab1
----
2048
2048
2048

query I rowsort
SELECT DISTINCT - 54 * 61 FROM tab1
----
-3294

query I rowsort
SELECT - 30 * - col1 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT + 48 * - ( + COUNT( * ) ) AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-8546
SELECT + 48 * - ( + COUNT ( * ) ) AS col0 FROM tab1
----
-144

query I rowsort
SELECT ( + + 80 ) AS col0 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - COUNT( * ) * - 45 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-8548
SELECT - COUNT ( * ) * - 45 FROM tab1
----
135

query II rowsort
SELECT col0 * 55 * - - col2 AS col1, + 82 AS col2 FROM tab0
----
38775
82
47850
82
528165
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT ALL + COUNT( * ) AS col2, 18 AS col2 FROM tab1 cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-8550
SELECT ALL + COUNT ( * ) AS col2, 18 AS col2 FROM tab1 cor0
----
3
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT + + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT + + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 + + ( - 61 ) FROM tab2
----
-10
16
6

query I rowsort
SELECT ALL - col1 + - 62 + col2 AS col0 FROM tab2 AS cor0
----
-71
-90
-99

query I rowsort
SELECT ALL - ( - + 84 ) AS col0 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT + col1 * - 75 + + 78 + + - col1 FROM tab1 AS cor0
----
-302
-3494
-986

query I rowsort
SELECT ALL 54 * + col2 + + 84 + + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1275
2167
3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT DISTINCT 8 DIV col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT 8 / col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT ALL + ( + + col1 ) FROM tab2 cor0 WHERE NOT ( + col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND + - col2 + 15
----

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + ( + + col1 ) FROM tab2 cor0 WHERE NOT ( + col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND + - col2 + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8560
SELECT * FROM tab1 WHERE - + col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8560
SELECT * FROM tab1 WHERE - + col2 > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 + 82 - col1 * col1 AS col2 FROM tab2
----
-2565
-4482
-5911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8562
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 41 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 41 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT MAX( ALL + 9 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8563
SELECT MAX ( ALL + 9 ) AS col0 FROM tab2
----
9

query I rowsort
SELECT ALL 7 + col1 AS col0 FROM tab1
----
12
21
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 + - + col2 + 9 col0 FROM tab0 AS cor0
----
-15
37
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8566
SELECT + 75, MIN( ALL - col1 ) * + 84 AS col1 FROM tab0 AS cor0
----
75
-6804

skipif mysql # not compatible
query II rowsort label-8566
SELECT + 75, MIN ( ALL - col1 ) * + 84 AS col1 FROM tab0 AS cor0
----
75
-6804

query I rowsort
SELECT 92 - + - col2 FROM tab1 AS cor0
----
151
160
188

query I rowsort
SELECT DISTINCT - 28 * + 72 * 40 + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-80595
-80663
-80666

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT DISTINCT + - col0 DIV + col1 + - col2 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + - col0 / + col1 + - col2 FROM tab2 AS cor0
----
-23
-40
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + 63 - - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + 63 - - COUNT ( * ) FROM tab0 AS cor0
----
66

query II rowsort
SELECT DISTINCT - col1 AS col1, 74 FROM tab2
----
-51
74
-67
74
-77
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 87 FROM tab0 AS cor0
----
-10
87
-47
87
-99
87

query II rowsort
SELECT + 35, - 51 AS col0 FROM tab2 AS cor0
----
35
-51
35
-51
35
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT + ( + SUM( + + 12 ) ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8575
SELECT + ( + SUM ( + + 12 ) ) AS col1 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT - + COUNT( - 60 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT - + COUNT ( - 60 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT + MAX( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8577
SELECT + MAX ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL - + ( - col1 ) * 97 FROM tab0 AS cor0
----
2037
7857
97

query I rowsort
SELECT - 44 AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - SUM( DISTINCT - 50 ) * - 80 col1 FROM tab2
----
-4000

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8581
SELECT - SUM ( DISTINCT - 50 ) * - 80 col1 FROM tab2
----
-4000

query I rowsort
SELECT + 34 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + COUNT( DISTINCT - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + COUNT ( DISTINCT - + col0 ) FROM tab1
----
3

query II rowsort
SELECT + ( - - col0 ), 88 AS col2 FROM tab2
----
46
88
64
88
75
88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - + col0 NOT BETWEEN + col1 AND - 65
----

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT - 64 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT 24 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT 24 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 31 * - col2 FROM tab2
----
1240
1798
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT ALL col2 * - col1 - col0 + + CAST( NULL AS SIGNED ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL col2 * - col1 - col0 + + CAST ( NULL AS INTEGER ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8592
SELECT + - 94 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-94
3

skipif mysql # not compatible
query II rowsort label-8592
SELECT + - 94 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-94
3

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT + - col0 AS col2, 32 + 8 * 62 AS col2 FROM tab1 AS cor0
----
-51
528
-85
528
-91
528

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8595
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) * - 40 - 4 col0, - 74 AS col0 FROM tab0 AS cor0
----
NULL
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8595
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) * - 40 - 4 col0, - 74 AS col0 FROM tab0 AS cor0
----
NULL
-74

query II rowsort
SELECT - + ( 63 ) * - + 28 AS col0, - col1 * - - col0 AS col0 FROM tab0 AS cor0
----
1764
-1215
1764
-1827
1764
-97

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 59 / + + col1 IS NULL )
----

query II rowsort
SELECT - 4, col1 FROM tab2 cor0
----
-4
51
-4
67
-4
77

query I rowsort
SELECT 31 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2, col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT 17 * - col0 AS col2 FROM tab2
----
-1088
-1275
-782

query I rowsort
SELECT ALL + 24 * + 58 * + col2 FROM tab2
----
32016
55680
80736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT col2 + - CAST( NULL AS SIGNED ) / + col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT col2 + - CAST ( NULL AS INTEGER ) / + col2 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT MIN( + - col2 ) + CAST( + 33 AS SIGNED ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-8604
SELECT MIN ( + - col2 ) + CAST ( + 33 AS INTEGER ) FROM tab0
----
-66

query I rowsort
SELECT ALL - 17 AS col0 FROM tab0 cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - - col2 / - col0 + - col0 IS NULL
----

query I rowsort
SELECT - 90 * col2 AS col1 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8609
SELECT - CAST( NULL AS SIGNED ) / + col2 * + + 49 AS col2, - col0 AS col1 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-8609
SELECT - CAST ( NULL AS INTEGER ) / + col2 * + + 49 AS col2, - col0 AS col1 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 40 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT - col2 / col2 / - - col1 - + col1 - - col0 / + CAST( NULL AS SIGNED ) * + 34 + - + col0 * + + 52 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - col2 / col2 / - - col1 - + col1 - - col0 / + CAST ( NULL AS INTEGER ) * + 34 + - + col0 * + + 52 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT DISTINCT + 91 DIV 81 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + 91 / 81 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - ( + col0 ) * + col2 + + col2 FROM tab0
----
-658
-860
-9504

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT ALL 8 DIV col0 * + + 16 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL 8 / col0 * + + 16 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - ( + - COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8615
SELECT - ( + - COUNT ( * ) ) col1 FROM tab2
----
3

query II rowsort
SELECT - col0 AS col1, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL - col2 AS col2, - col0 * - 87 FROM tab0
----
-10
7569
-47
1305
-99
8439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 44 AS col1, col1 col1 FROM tab2
----
-44
51
-44
67
-44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + COUNT( + col1 ) * + - 95 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-8619
SELECT + COUNT ( + col1 ) * + - 95 FROM tab0
----
-285

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) - + - col0 - col0 * + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT MIN( 10 ) AS col2, 47 col2 FROM tab0 AS cor0
----
10
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8621
SELECT MIN ( 10 ) AS col2, 47 col2 FROM tab0 AS cor0
----
10
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL + AVG ( + col1 ) * + AVG ( col1 ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + AVG ( + col1 ) * + AVG ( col1 ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8623
SELECT MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT ALL - 53 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT ALL + col0 DIV + 70 + - col0 AS col0 FROM tab0
----
-15
-86
-96

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + col0 / + 70 + - col0 AS col0 FROM tab0
----
-15
-86
-96

query II rowsort
SELECT DISTINCT col2 * - col2 * - col2 + + - col2 + - 52, + 72 * + col1 AS col1 FROM tab2 cor0
----
12092
3672
195002
4824
63908
5544

query II rowsort
SELECT col2, - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - + 41 + - COUNT( * ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8629
SELECT - + 41 + - COUNT ( * ) FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + MIN( DISTINCT - 50 ) + - - MAX( + 90 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8630
SELECT + MIN ( DISTINCT - 50 ) + - - MAX ( + 90 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT - + 97 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT COUNT( * ) + - 33 AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8632
SELECT COUNT ( * ) + - 33 AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col0 - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + col1 * 52 FROM tab2
----
-46
2652
-64
4004
-75
3484

onlyif mysql # aggregate syntax: 
query II rowsort label-8635
SELECT ALL - + COUNT( * ), - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8635
SELECT ALL - + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0
0

query I rowsort
SELECT - - col2 + 23 FROM tab2 cor0
----
46
63
81

query II rowsort
SELECT - col0, col2 AS col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT DISTINCT - 68 DIV + 25 col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8638
SELECT DISTINCT - 68 / + 25 col0 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT COUNT( ALL 27 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8639
SELECT COUNT ( ALL 27 ) FROM tab1
----
3

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 4 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 82 AS col1 FROM tab0 WHERE NOT - col2 >= + col1
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT 91 + COUNT( * ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-8643
SELECT 91 + COUNT ( * ) AS col2 FROM tab0
----
94

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > - 89
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8645
SELECT ALL - COUNT( * ) DIV COUNT( * ) - + 17 col1 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8645
SELECT ALL - COUNT ( * ) / COUNT ( * ) - + 17 col1 FROM tab0
----
-18

query I rowsort
SELECT DISTINCT 95 - + col2 AS col2 FROM tab0
----
-4
48
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + 0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT ALL col1 DIV 45 + col1 AS col1 FROM tab1
----
14
48
5

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL col1 / 45 + col1 AS col1 FROM tab1
----
14
48
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8650
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN + col1 * - CAST( NULL AS SIGNED ) - 57 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8650
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN + col1 * - CAST ( NULL AS INTEGER ) - 57 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT + 98 + COUNT( * ) AS col1 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT + 98 + COUNT ( * ) AS col1 FROM tab1
----
101

query I rowsort
SELECT + col0 + col1 FROM tab0 WHERE ( NULL ) <> ( 96 )
----

query I rowsort
SELECT - 59 FROM tab1 WHERE col2 * + 88 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT COUNT( * ) + + 50 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT COUNT ( * ) + + 50 FROM tab2
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + 30 col1 FROM tab2
----
118

query I rowsort
SELECT col1 - col2 * 40 FROM tab2 WHERE NOT col2 NOT IN ( + col2 )
----
-1523
-2253
-869

query I rowsort
SELECT DISTINCT 68 * 93 AS col1 FROM tab1 WHERE NOT - col2 / 82 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT - COUNT( * ) + 10 * + 16 col2 FROM tab2
----
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8658
SELECT - COUNT ( * ) + 10 * + 16 col2 FROM tab2
----
157

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IN ( - 16 - + col1 * - 37 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( + 50 ) BETWEEN 8 + col1 AND - col2
----
-46
-64
-75

query I rowsort
SELECT ALL 61 * 87 FROM tab0
----
5307
5307
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT 11 + COUNT( * ) AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-8662
SELECT 11 + COUNT ( * ) AS col1 FROM tab0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col0 / ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT - 33 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT - 33 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 18 + 13 AS col1 FROM tab0 AS cor0
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8666
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0 WHERE NOT 97 + col2 <= + ( - 73 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 WHERE NOT 97 + col2 <= + ( - 73 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT SUM( ALL col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8667
SELECT SUM ( ALL col0 ) col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8668
SELECT + 39 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8668
SELECT + 39 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ( col2 ) - ( 82 + + 42 ) FROM tab1 AS cor0
----
-28
-56
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ( SUM( + 63 ) ) FROM tab1 cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT ( SUM ( + 63 ) ) FROM tab1 cor0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT ALL ( + col2 ) + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL ( + col2 ) + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 71 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 - col2 FROM tab2 AS cor0
----
2093
4056
5567

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT + 91 DIV col2 - - col2 AS col1 FROM tab0 AS cor0
----
19
48
99

skipif mysql # not compatible
query I rowsort label-8674
SELECT + 91 / col2 - - col2 AS col1 FROM tab0 AS cor0
----
19
48
99

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8676
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + + 72 * - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8676
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + + 72 * - col0 <= NULL
----

query I rowsort
SELECT - 92 * + + 3 + + col1 * + col1 AS col0 FROM tab2
----
2325
4213
5653

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT 94 + - COUNT( * ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8678
SELECT 94 + - COUNT ( * ) AS col0 FROM tab1
----
91

query I rowsort
SELECT ALL - 46 + col0 * col0 AS col1 FROM tab2
----
2070
4050
5579

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col0 + 49 AND - 43 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + 0 * + 89 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT + 0 * + 89 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + 91 AS col1 FROM tab0 AS cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 44 BETWEEN ( col1 ) AND 98
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL COUNT( DISTINCT - + 70 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL COUNT ( DISTINCT - + 70 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT CAST( + 35 AS SIGNED ) FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8685
SELECT CAST ( + 35 AS INTEGER ) FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT DISTINCT + - col0 * + col0 * - col1 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
107870
315328
376800

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + - col0 * + col0 * - col1 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
107870
315328
376800

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - - col0 )
----

query I rowsort
SELECT + 78 / + 23 FROM tab1 AS cor0 WHERE NOT 32 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 21 AS col1 FROM tab1 cor0
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT - + MAX( col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - + MAX ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8691
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8691
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT 96 DIV + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8692
SELECT 96 / + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> 22 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab2 cor0
----
-53

query II rowsort
SELECT - col0, ( col2 ) FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT - 37 DIV + col1 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT - 37 / + col1 FROM tab1 AS cor0
----
-2
-7
0

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT - 37 * + MAX( + + 19 ) + 18 FROM tab1 AS cor0
----
-685

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - 37 * + MAX ( + + 19 ) + 18 FROM tab1 AS cor0
----
-685

query I rowsort
SELECT - + col2 + + col2 + + - col2 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col2 + - + 50 FROM tab1
----
18
46
9

query I rowsort
SELECT col0 + - 10 FROM tab0
----
5
77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 49 + + col1, - col0 col1 FROM tab1
----
54
-85
63
-51
96
-91

query I rowsort
SELECT DISTINCT ( + col0 ) + + col2 FROM tab2
----
104
133
69

query I rowsort
SELECT 0 * - - col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT MIN( - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT MIN ( - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - 22 ) * - ( + + 35 ) + col1 FROM tab2
----
821
837
847

query I rowsort
SELECT ALL col0 + - + ( - - col2 ) * ( 43 ) FROM tab1
----
-2452
-2833
-4077

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 - + - col2 )
----

query I rowsort
SELECT + - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - SUM( col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8711
SELECT - SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( + col0 + - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + col2 FROM tab2 cor0 WHERE NOT col1 / - + col2 * - col2 <> - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8714
SELECT ALL CAST( MAX( DISTINCT col1 ) AS DECIMAL ) col2 FROM tab1 WHERE + 72 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8714
SELECT ALL CAST ( MAX ( DISTINCT col1 ) AS REAL ) col2 FROM tab1 WHERE + 72 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT - MAX( 45 ) + - COUNT( * ) + - 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-121

skipif mysql # not compatible
query I rowsort label-8715
SELECT - MAX ( 45 ) + - COUNT ( * ) + - 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-121

query I rowsort
SELECT ALL + col2 + - + col0 AS col1 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL col2 - - + 56 AS col0 FROM tab2 cor0
----
114
79
96

query I rowsort
SELECT DISTINCT 18 + - col1 AS col2 FROM tab0 AS cor0
----
-3
-63
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 * - 27 FROM tab2 AS cor0 WHERE ( + + col1 ) * - 18 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 * - 27 FROM tab2 AS cor0 WHERE ( + + col1 ) * - 18 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - + 42 * col2 FROM tab2 AS cor0 WHERE - col2 / col2 * + + 37 IS NULL
----

query I rowsort
SELECT DISTINCT - 32 - 50 FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT - + CAST( + 57 AS SIGNED ) FROM tab0 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-8722
SELECT - + CAST ( + 57 AS INTEGER ) FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL = - col0 * - col1 * 17 + col1 * col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 >= + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8725
SELECT * FROM tab1 AS cor0 WHERE NULL > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8725
SELECT * FROM tab1 AS cor0 WHERE NULL > + CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( col1 + - - 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 96 col0 FROM tab2
----
-2208
-3840
-5568

query I rowsort
SELECT col2 - - - 58 AS col1 FROM tab1
----
1
10
38

query II rowsort
SELECT ALL col0, 89 FROM tab1
----
51
89
85
89
91
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8730
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN - col0 AND NULL
----
0

query II rowsort
SELECT + 27 AS col2, - col0 * + col0 FROM tab0
----
27
-225
27
-7569
27
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE - ( - - 52 ) < 75
----
3

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE - ( - - 52 ) < 75
----
3

query II rowsort
SELECT ALL + ( - col2 ) / - col1, col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT ALL 62 AS col1, + MIN( col1 ) FROM tab0 AS cor0
----
62
1

skipif mysql # not compatible
query II rowsort label-8734
SELECT ALL 62 AS col1, + MIN ( col1 ) FROM tab0 AS cor0
----
62
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL - MIN( DISTINCT - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - MIN ( DISTINCT - col1 ) FROM tab1
----
47

query I rowsort
SELECT + 27 * + + col0 AS col1 FROM tab1
----
1377
2295
2457

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT 86 * COUNT( * ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8739
SELECT 86 * COUNT ( * ) FROM tab2 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT SUM( ALL - 63 ) FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT SUM ( ALL - 63 ) FROM tab0 AS cor0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT CAST( + 56 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8741
SELECT CAST ( + 56 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT + 13 * + + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-2587

skipif mysql # not compatible
query I rowsort label-8742
SELECT + 13 * + + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-2587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT 37 * - col0 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-3198
-3588
-474

skipif mysql # not compatible
query I rowsort label-8743
SELECT 37 * - col0 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-3198
-3588
-474

onlyif mysql # DIV for integer division: 
query II rowsort label-8744
SELECT - ( + col2 ) DIV 25, + 11 AS col0 FROM tab2 AS cor0
----
-1
11
-2
11
0
11

skipif mysql # not compatible
query II rowsort label-8744
SELECT - ( + col2 ) / 25, + 11 AS col0 FROM tab2 AS cor0
----
-1
11
-2
11
0
11

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 16 ) = - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 3 * 9 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT DISTINCT - col0 + - 26 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL - MIN( ALL 99 ) * + COUNT( * ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - MIN ( ALL 99 ) * + COUNT ( * ) FROM tab1
----
-297

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( - col2 + + - 65, - col2 - + col1 * + 24 * col0 + 27 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 53 * + col1 AS col2 FROM tab1
----
-2491
-265
-742

query I rowsort
SELECT 72 * 68 * - + 26 FROM tab0
----
-127296
-127296
-127296

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT ALL + col0 * + - col2 * - + col1 + + - col1 * + + col1 * + col0 DIV col0 col0 FROM tab0
----
17829
50544
9602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8753
SELECT ALL + col0 * + - col2 * - + col1 + + - col1 * + + col1 * + col0 / col0 col0 FROM tab0
----
17829
50544
9602

query III rowsort
SELECT * FROM tab1 WHERE + 98 * 95 IS NULL
----

query I rowsort
SELECT DISTINCT 40 + - 37 AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT 79 + - col2 + - - col0 AS col1, 31 FROM tab2
----
102
31
103
31
96
31

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8758
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN + + col2 * col0 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8758
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN + + col2 * col0 * CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col0 * - col2 + + col1 * + - col2 AS col1 FROM tab1 cor0
----
-5310
-6240
-9384

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= ( 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT + COUNT( * ) * + MAX( ALL + - ( - 76 ) ) FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL + - ( - 76 ) ) FROM tab1 AS cor0
----
228

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - col2
----

query I rowsort
SELECT ALL + 16 - - col2 AS col2 FROM tab1 AS cor0
----
112
75
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN - col0 / + col2 * + col0 AND + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL col0 + - CAST( - + col2 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL col0 + - CAST ( - + col2 AS INTEGER ) FROM tab2
----
104
133
69

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NULL NOT IN ( + + col1 * + 45 + + 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8767
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1, + CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-8767
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1, + CAST ( NULL AS INTEGER ), - col0 )
----

query II rowsort
SELECT ALL col2 + - col2 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL - + 27 - - COUNT( * ) + COUNT( * ) + COUNT( * ) * + 87 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL - + 27 - - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) * + 87 FROM tab0 AS cor0
----
240

query I rowsort
SELECT 0 + + col1 * + + col1 + + + col2 FROM tab2 AS cor0
----
2624
4547
5969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT DISTINCT 31 * + - 57 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT 31 * + - 57 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - 63, - 14 AS col1 FROM tab0
----
-63
-14

query I rowsort
SELECT col0 * + 13 AS col0 FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT SUM( 4 ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8774
SELECT SUM ( 4 ) AS col1 FROM tab0
----
12

query I rowsort
SELECT 94 * - col2 AS col1 FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT ALL + + 77 * 90 FROM tab1 WHERE NOT + col1 IS NULL
----
6930
6930
6930

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( ( ( NOT NULL BETWEEN + col1 AND NULL ) ) ) )
----

query II rowsort
SELECT ALL - - 66, - col2 AS col2 FROM tab2 AS cor0
----
66
-23
66
-40
66
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * + col2 * - 97 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0 AS col1, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT DISTINCT + 21 AS col1, col1 AS col1 FROM tab1
----
21
14
21
47
21
5

query I rowsort
SELECT DISTINCT - 95 FROM tab0 AS cor0 WHERE NOT 26 IN ( - col2, + ( + + col2 ), col0 )
----
-95

query I rowsort
SELECT + col2 + - + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT DISTINCT COUNT( * ) AS col1, 79 * + - ( - SUM( DISTINCT - col0 ) ) col2 FROM tab1 AS cor0
----
3
-17933

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8784
SELECT DISTINCT COUNT ( * ) AS col1, 79 * + - ( - SUM ( DISTINCT - col0 ) ) col2 FROM tab1 AS cor0
----
3
-17933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT + 22 * + + col0 * col2 + 62 * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT + 22 * + + col0 * col2 + 62 * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * 74 + + + col0 FROM tab0
----
3493
7423
827

query I rowsort
SELECT ALL - 44 * col2 + - col0 FROM tab2
----
-1058
-1824
-2627

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + + + col0 NOT IN ( col1 )
----

query I rowsort
SELECT + col2 * - - col2 * 76 * - + col0 FROM tab0 AS cor0
----
-2518260
-661200
-72252972

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL + MIN( DISTINCT 22 ) - - - ( 51 ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + MIN ( DISTINCT 22 ) - - - ( 51 ) FROM tab0 AS cor0
----
-29

query I rowsort
SELECT - + col0 - - 93 - - + col1 FROM tab0 AS cor0
----
-3
159
27

query I rowsort
SELECT - + col1 - - 4 + - + 84 * - col0 AS col2 FROM tab1 AS cor0
----
4274
7139
7601

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6

query II rowsort
SELECT ALL + col1, - col2 * + col2 - + - 2 + + - col2 AS col2 FROM tab1
----
14
-9310
47
-4690
5
-3538

query I rowsort
SELECT DISTINCT ( + 92 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
92

query I rowsort
SELECT ALL - + col1 + col0 + + + col2 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT DISTINCT 13 + + + col2 AS col2 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8800
SELECT COUNT( * ) AS col1, - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-8800
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
-9

query I rowsort
SELECT + ( + ( + + 38 ) ) AS col1 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + - 5 * + 78 FROM tab0 AS cor0
----
-390

query I rowsort
SELECT ALL - + 8 * + col2 AS col2 FROM tab1 AS cor0
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8804
SELECT + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT - - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT ALL 80 DIV - col0 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8806
SELECT ALL 80 / - col0 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + ( 68 ) FROM tab1 WHERE NOT ( - col0 / col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT 55 * + COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-8809
SELECT 55 * + COUNT ( * ) FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT MAX( ALL 96 ) FROM tab0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT MAX ( ALL 96 ) FROM tab0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT ALL - 22 * + - col2 AS col1 FROM tab1 AS cor0
----
1298
1496
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * + + col0 + 70 + + 83 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - MIN( ALL col1 ) col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT - MIN ( ALL col1 ) col2 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT + COUNT( DISTINCT - + 7 ) AS col0 FROM tab0 AS cor0 WHERE ( + 86 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + COUNT ( DISTINCT - + 7 ) AS col0 FROM tab0 AS cor0 WHERE ( + 86 ) IS NULL
----
0

query II rowsort
SELECT 3, + 11 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT - 74 AS col0, - col0 FROM tab0 AS cor0
----
-74
-15
-74
-87
-74
-97

query I rowsort
SELECT ALL - col1 + - col0 + col1 * + col1 FROM tab2 AS cor0
----
2504
4347
5788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT CAST( - ( + 98 ) AS SIGNED ) FROM tab1 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-8819
SELECT CAST ( - ( + 98 ) AS INTEGER ) FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT - 94 AS col2 FROM tab2 cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT ALL + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col0 NOT BETWEEN 74 AND + col1 + - + 33
----
0

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col0 NOT BETWEEN 74 AND + col1 + - + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL - MAX( DISTINCT 5 ) col1 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT ALL - MAX ( DISTINCT 5 ) col1 FROM tab2 AS cor0
----
-5

query II rowsort
SELECT - col1 AS col2, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col0 FROM tab2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8825
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL CAST ( NULL AS REAL ) + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + + col0 * - col2 * - 35 FROM tab0
----
24756
30471
336106

query I rowsort
SELECT DISTINCT + + 61 + - col2 FROM tab0 AS cor0
----
-38
14
51

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 45 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = + + col2
----

query I rowsort
SELECT ALL - col1 - 91 FROM tab0 AS cor0
----
-112
-172
-92

query II rowsort
SELECT + col2 * + - col1 AS col1, col0 AS col2 FROM tab2
----
-1173
46
-3080
64
-3886
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT - MAX( DISTINCT - 28 ) - - - ( + 67 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-8832
SELECT - MAX ( DISTINCT - 28 ) - - - ( + 67 ) FROM tab1
----
-39

query II rowsort
SELECT + 86 * + - 14, 63 AS col1 FROM tab0
----
-1204
63
-1204
63
-1204
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col0 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT + 46 * + col1 AS col0 FROM tab2 AS cor0
----
2346
3082
3542

query I rowsort
SELECT DISTINCT col2 * - 11 * - col1 * - 98 AS col0 FROM tab0 cor0
----
-106722
-226380
-4103946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT - 63 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col2 + + - col0 * - col0 * - col1 + ( - 43 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8837
SELECT - 63 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col2 + + - col0 * - col0 * - col1 + ( - 43 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - COUNT( * ) * + 12 AS col2 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8839
SELECT - COUNT ( * ) * + 12 AS col2 FROM tab0
----
-36

query II rowsort
SELECT ALL 24, col2 FROM tab1
----
24
59
24
68
24
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND + - 69
----

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 WHERE 12 IS NOT NULL
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 + - + 59 col0 FROM tab2 WHERE NOT ( + 74 IS NULL )
----
-22
-31
-50

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + CAST( NULL AS SIGNED ) * - 57 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT + CAST ( NULL AS INTEGER ) * - 57 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + + col0 * 95 AS col1 FROM tab0 AS cor0
----
66975
82650
912285

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + - col2 IS NULL
----

query I rowsort
SELECT + - 83 AS col1 FROM tab2 AS cor0 WHERE ( - ( + - col1 ) * - col0 - + - col0 + + col1 IS NULL )
----

query I rowsort
SELECT ALL - - 57 AS col2 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - - col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col2 / + col0 * - col0 * + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + + col1 + col0 col2 FROM tab0 AS cor0
----
134
136
146

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + - - 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT + ( + 0 ) DIV - 70 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8856
SELECT + ( + 0 ) / - 70 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8857
SELECT + 24, + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-8857
SELECT + 24, + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
24
NULL
24
NULL
24
NULL

query I rowsort
SELECT 16 * col0 AS col1 FROM tab0
----
1392
1552
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT + - SUM( + ( + 31 ) ) * - CAST( ( - 5 ) AS SIGNED ) - + - COUNT( col0 ) AS col0 FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT + - SUM ( + ( + 31 ) ) * - CAST ( ( - 5 ) AS INTEGER ) - + - COUNT ( col0 ) AS col0 FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8860
SELECT * FROM tab1 WHERE col0 / + col0 * - ( - 73 ) NOT BETWEEN col1 * + + CAST( NULL AS SIGNED ) + - 84 AND - - col0 + col2
----

skipif mysql # not compatible
query III rowsort label-8860
SELECT * FROM tab1 WHERE col0 / + col0 * - ( - 73 ) NOT BETWEEN col1 * + + CAST ( NULL AS INTEGER ) + - 84 AND - - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT + COUNT( * ) + - 28 col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8861
SELECT DISTINCT + COUNT ( * ) + - 28 col0 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT + + 18 + + 33 AS col2 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - SUM( + + col0 ) * - COUNT( - + col1 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-8863
SELECT - SUM ( + + col0 ) * - COUNT ( - + col1 ) FROM tab0
----
597

query I rowsort
SELECT - ( + + col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + 28 * col2 FROM tab2 cor0
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT - COUNT( * ), - COUNT( * ) * 67 AS col0 FROM tab1 AS cor0
----
-3
-201

skipif mysql # not compatible
query II rowsort label-8866
SELECT - COUNT ( * ), - COUNT ( * ) * 67 AS col0 FROM tab1 AS cor0
----
-3
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + COUNT( * ) * - 25 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8867
SELECT + COUNT ( * ) * - 25 FROM tab0 AS cor0
----
-75

query II rowsort
SELECT + col0, + col0 * - + col0 FROM tab2 AS cor0
----
46
-2116
64
-4096
75
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT + - col0 * + + CAST( NULL AS SIGNED ) + + + 57 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + - col0 * + + CAST ( NULL AS INTEGER ) + + + 57 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8870
SELECT + - CAST( NULL AS SIGNED ), col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8870
SELECT + - CAST ( NULL AS INTEGER ), col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL + ( 0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8872
SELECT - CAST( NULL AS SIGNED ) col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8872
SELECT - CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8873
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 3 FROM tab2 AS cor0
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
query II rowsort label-8873
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 3 FROM tab2 AS cor0
----
NULL
3
NULL
3
NULL
3

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT - + col2 / + - col1 < NULL
----

query I rowsort
SELECT ALL ( + col2 ) * - 76 AS col0 FROM tab0
----
-3572
-7524
-760

query I rowsort
SELECT DISTINCT col0 * + 87 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT - 93 * col0 * + col1 * - col0 AS col2 FROM tab2 cor0
----
10036188
29331456
35049375

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + SUM( + - 52 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-8878
SELECT + SUM ( + - 52 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-468

query I rowsort
SELECT col0 * - col1 FROM tab2 AS cor0 WHERE NULL >= 8
----

query I rowsort
SELECT ALL 75 * - 42 AS col1 FROM tab2
----
-3150
-3150
-3150

query I rowsort
SELECT ALL - col0 * + + col2 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT MIN( - - 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8882
SELECT MIN ( - - 97 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT DISTINCT - COUNT( * ), 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9
78

skipif mysql # not compatible
query II rowsort label-8883
SELECT DISTINCT - COUNT ( * ), 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9
78

query I rowsort
SELECT DISTINCT col0 + 11 FROM tab1 AS cor0
----
102
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + ( SUM( DISTINCT - + col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8885
SELECT + ( SUM ( DISTINCT - + col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + ( - - col2 ) * + - col0 * - col0 * - col0 AND NULL
----

query II rowsort
SELECT DISTINCT 31 AS col0, 54 + + - col0 FROM tab2 AS cor0
----
31
-10
31
-21
31
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL - SUM( CAST( col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - SUM ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT col0 + ( ( + 11 ) ) FROM tab0
----
108
26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COUNT( * ) AS col1 FROM tab1 WHERE ( + 38 * + 62 * - - 84 + 39 + - col2 / - + col2 * + + col1 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8890
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE ( + 38 * + 62 * - - 84 + 39 + - col2 / - + col2 * + + col1 IS NOT NULL )
----
3

query I rowsort
SELECT col2 + + col1 * + 73 FROM tab0
----
1543
172
5960

query I rowsort
SELECT + col1 + + 2 AS col1 FROM tab2
----
53
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + 6 + - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8893
SELECT + 6 + - COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT ALL 39 * + col1 + 51 AS col1 FROM tab2
----
2040
2664
3054

query I rowsort
SELECT col1 + 20 - 27 FROM tab1
----
-2
40
7

query I rowsort
SELECT ALL - col0 * + + col1 + col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT - col1 + + + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - ( + ( - ( - 19 ) ) ) FROM tab2 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL COUNT( DISTINCT - 49 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL COUNT ( DISTINCT - 49 ) AS col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL - col1 AS col2, - 5 FROM tab2
----
-51
-5
-67
-5
-77
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - SUM( ALL - col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8901
SELECT ALL - SUM ( ALL - col1 ) col0 FROM tab0
----
103

query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 22 IN ( 14 * + + 55, ( + - 55 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1, 31 FROM tab0 AS cor0
----
1
31
21
31
81
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - MIN( + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8906
SELECT - MIN ( + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col2 + + 52 AS col2 FROM tab1
----
111
120
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8909
SELECT DISTINCT - 86 AS col1, CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-8909
SELECT DISTINCT - 86 AS col1, CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
-86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT MIN( - 24 ) AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8910
SELECT MIN ( - 24 ) AS col1 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT COUNT( * ) AS col1, - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
3
-9

skipif mysql # not compatible
query II rowsort label-8911
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
3
-9

query II rowsort
SELECT ALL + 1, - col1 AS col2 FROM tab0
----
1
-1
1
-21
1
-81

query II rowsort
SELECT DISTINCT col0 AS col2, - 84 * - col1 AS col2 FROM tab2
----
46
4284
64
6468
75
5628

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL 84 + + COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 84 + + COUNT ( * ) AS col1 FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT ALL + CAST( NULL AS SIGNED ) + + + AVG ( - col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + CAST ( NULL AS INTEGER ) + + + AVG ( - col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT DISTINCT + 95 AS col0, + COUNT( * ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
95
0

skipif mysql # not compatible
query II rowsort label-8917
SELECT DISTINCT + 95 AS col0, + COUNT ( * ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
95
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT 51 + - col2 IS NULL OR - 27 / + 64 <> + 47
----
14
47
5

query I rowsort
SELECT DISTINCT + + ( col0 ) + - 15 FROM tab2 AS cor0
----
31
49
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT - CAST( + col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8920
SELECT - CAST ( + col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 51, col1 * 53 col0 FROM tab2 cor0
----
-51
2703
-51
3551
-51
4081

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8922
SELECT ALL 56 * CAST( - col0 AS SIGNED ) * - + col1 * - - col1 - + + 83 DIV + + 15 FROM tab1 AS cor0
----
11257059
118995
559771

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 56 * CAST ( - col0 AS INTEGER ) * - + col1 * - - col1 - + + 83 / + + 15 FROM tab1 AS cor0
----
11257059
118995
559771

query I rowsort
SELECT col1 * + col0 + + + 97 * - col0 FROM tab0 cor0
----
-240
-6612
-9312

query I rowsort
SELECT 81 + + + 44 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2973878398e469d83385e7e06bd5af99

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL - 28 FROM tab0, tab2 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL col1 * + col1 + 26 * - 19 AS col0 FROM tab1
----
-298
-469
1715

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 73 * col0 * + - col2 + - 19 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT - 22 + MIN( col1 ) AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8929
SELECT - 22 + MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL + 23 - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-2186
-77
-9778

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT MIN( DISTINCT + + 40 ) AS col1, + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
40
6

skipif mysql # not compatible
query II rowsort label-8931
SELECT MIN ( DISTINCT + + 40 ) AS col1, + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
40
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col2 * 72 FROM tab0 cor0
----
-3384
-7128
-720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8934
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 92 col1, col1 col2 FROM tab0
----
92
1
92
21
92
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT COUNT( * ) * + - 36 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-8936
SELECT COUNT ( * ) * + - 36 FROM tab1
----
-108

query I rowsort
SELECT DISTINCT 16 * col0 FROM tab0 WHERE NOT + col0 * col2 > + + col0
----

query I rowsort
SELECT ALL + col1 + - 41 FROM tab0
----
-20
-40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT ALL - 54 DIV + - 91 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - 54 / + - 91 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8940
SELECT - 24, + col1 DIV col2 + - - 11 * - ( ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-24
1067
-24
166
-24
959

skipif mysql # not compatible
query II rowsort label-8940
SELECT - 24, + col1 / col2 + - - 11 * - ( ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-24
1067
-24
166
-24
959

query II rowsort
SELECT + col2 AS col0, 6 FROM tab0 AS cor0
----
10
6
47
6
99
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT - SUM( + 58 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8942
SELECT - SUM ( + 58 ) / - COUNT ( * ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT - col0 * - + ( 43 ) AS col2 FROM tab1 AS cor0
----
2193
3655
3913

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT + ( + col1 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT + ( + col1 ) / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT DISTINCT + + 51 DIV col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + + 51 / col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8946
SELECT ( + col1 ) AS col1, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8946
SELECT ( + col1 ) AS col1, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT 92 * + + ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT ALL 21 * ( - ( 89 ) ) AS col0 FROM tab0
----
-1869
-1869
-1869

query I rowsort
SELECT ALL col0 + - 99 FROM tab1
----
-14
-48
-8

query II rowsort
SELECT ALL + 70 AS col2, - 68 * + 65 AS col1 FROM tab0
----
70
-4420
70
-4420
70
-4420

query I rowsort
SELECT ALL + col0 * + 27 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND - - 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT - 95 + + + col0 DIV + col0 - - col2 FROM tab0
----
-47
-84
5

skipif mysql # not compatible
query I rowsort label-8952
SELECT - 95 + + + col0 / + col0 - - col2 FROM tab0
----
-47
-84
5

query I rowsort
SELECT DISTINCT - 20 * + + col0 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT DISTINCT + SUM( ALL + + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) / - 37 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) / - 37 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * + - col1 col0 FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT DISTINCT + ( - 85 ) + + col2 FROM tab2
----
-27
-45
-62

query II rowsort
SELECT 64, col2 AS col0 FROM tab2
----
64
23
64
40
64
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT ALL col0 DIV - - col2 + 77 AS col2 FROM tab1
----
77
78
78

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL col0 / - - col2 + 77 AS col2 FROM tab1
----
77
78
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + 76 BETWEEN NULL AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT - 97, - MAX( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-97
51

skipif mysql # not compatible
query II rowsort label-8960
SELECT - 97, - MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + 80 - SUM( col0 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8961
SELECT + 80 - SUM ( col0 ) FROM tab1 AS cor0
----
-147

query I rowsort
SELECT ALL - - col0 * + - 45 - + - 23 FROM tab1 AS cor0
----
-2272
-3802
-4072

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT 27 DIV - col1 + + col0 AS col2 FROM tab1
----
50
80
91

skipif mysql # not compatible
query I rowsort label-8963
SELECT 27 / - col1 + + col0 AS col2 FROM tab1
----
50
80
91

query III rowsort
SELECT * FROM tab1 WHERE + col2 - col2 IS NULL
----

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 44 - - ( - - col0 ) FROM tab2
----
108
119
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT col1 DIV col1 DIV - 38 + - 53 FROM tab1
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-8967
SELECT col1 / col1 / - 38 + - 53 FROM tab1
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab2
----
40
40
40

query I rowsort
SELECT - 98 * - - 26 AS col2 FROM tab0
----
-2548
-2548
-2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - 10 col1 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + + ( + COUNT( DISTINCT + col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT + + ( + COUNT ( DISTINCT + col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) / - + col0 NOT BETWEEN NULL AND + 80 / + 51 - - col2
----

query I rowsort
SELECT col2 * - ( + 84 ) AS col1 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT DISTINCT SUM( DISTINCT col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8975
SELECT DISTINCT SUM ( DISTINCT col0 ) col0 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8976
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + - CAST( + - col1 AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8976
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + - CAST ( + - col1 AS INTEGER ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 71 AS col1 FROM tab2 AS cor0
----
3266
4544
5325

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * ( - col0 ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT ALL - + col2 DIV + 59 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - + col2 / + 59 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 / + + col0 - + 75 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col2 FROM tab2 AS cor0
----
47
47
47

query II rowsort
SELECT DISTINCT + ( - 49 ) AS col1, col0 FROM tab1
----
-49
51
-49
85
-49
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT COUNT( * ) * + 48 + - - 91 FROM tab2
----
235

skipif mysql # not compatible
query I rowsort label-8983
SELECT COUNT ( * ) * + 48 + - - 91 FROM tab2
----
235

query I rowsort
SELECT ALL - col0 + - ( - - col1 ) AS col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL - col0 * - col1 * + col1 * - - col0 + - + col1 AS col2 FROM tab1
----
180620
18292682
509782

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8986
SELECT * FROM tab1 WHERE - col2 <= + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8986
SELECT * FROM tab1 WHERE - col2 <= + - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col2 * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 >= - + 32
----

query I rowsort
SELECT ALL ( - + col0 ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + - col0 + col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - 11 col0 FROM tab2 cor0
----
-51
-11
-67
-11
-77
-11

query I rowsort
SELECT ALL 58 * + - col1 AS col0 FROM tab0 AS cor0 WHERE - 43 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 45 - - col2 + col0 col2 FROM tab2 AS cor0
----
114
149
178

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - MIN( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - MIN ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8997
SELECT DISTINCT + - 2, COUNT( * ) DIV 76 AS col1 FROM tab0 WHERE ( + ( + col2 ) ) * - + 70 - col0 DIV + 49 IS NULL
----
-2
0

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT + - 2, COUNT ( * ) / 76 AS col1 FROM tab0 WHERE ( + ( + col2 ) ) * - + 70 - col0 / + 49 IS NULL
----
-2
0

query I rowsort
SELECT + col2 * + - ( col1 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT - CAST( + 72 AS SIGNED ) * - col2 AS col1 FROM tab1
----
4248
4896
6912

skipif mysql # not compatible
query I rowsort label-9000
SELECT - CAST ( + 72 AS INTEGER ) * - col2 AS col1 FROM tab1
----
4248
4896
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT - col2 * - col0 DIV + + ( - col0 ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9002
SELECT - col2 * - col0 / + + ( - col0 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9003
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) / - + col1 < 3
----

skipif mysql # not compatible
query III rowsort label-9003
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) / - + col1 < 3
----

query I rowsort
SELECT ALL col0 * col1 * + - 83 FROM tab0
----
-100845
-151641
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT DISTINCT + - 33 * + CAST( + ( - - MAX( + 53 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-1749

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + - 33 * + CAST ( + ( - - MAX ( + 53 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-1749

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 AS cor0 WHERE col1 < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT + MIN( ALL - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT + MIN ( ALL - + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT col1 * 26 FROM tab0
----
2106
26
546

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + col0 + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col1 + + + 48, - col2 + + col0 AS col2 FROM tab1
----
53
26
62
-45
95
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT DISTINCT - COUNT( ALL + 62 ) DIV 81 * + + MIN( DISTINCT + 97 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - COUNT ( ALL + 62 ) / 81 * + + MIN ( DISTINCT + 97 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 72 + ( col1 ) FROM tab1 AS cor0 WHERE ( 17 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT DISTINCT 87, COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
87
-9

skipif mysql # not compatible
query II rowsort label-9013
SELECT DISTINCT 87, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
87
-9

query I rowsort
SELECT DISTINCT - 76 + col1 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT ALL + col1 + + - 40 + + 14 * 59 FROM tab0
----
787
807
867

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9016
SELECT ALL col1 + CAST( col1 AS SIGNED ) DIV - col0 col0 FROM tab0
----
1
21
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9016
SELECT ALL col1 + CAST ( col1 AS INTEGER ) / - col0 col0 FROM tab0
----
1
21
76

query I rowsort
SELECT ALL col0 + col1 * - col0 + + ( - - col0 ) FROM tab2
----
-2254
-4800
-4875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT DISTINCT + 88 DIV + ( 50 ) + + 4 + - - COUNT( * ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT + 88 / + ( 50 ) + + 4 + - - COUNT ( * ) AS col1 FROM tab2
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 - - col0 col1 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT ALL - col2 + - 16 FROM tab1 AS cor0
----
-112
-75
-84

query I rowsort
SELECT - col1 - + + col1 * - - 34 FROM tab2
----
-1785
-2345
-2695

query I rowsort
SELECT DISTINCT - 21 - - - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-2367
-4949
-5046

query I rowsort
SELECT - + col0 + ( - col2 ) * - 4 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col1 * - ( - 59 ) * + col1 FROM tab2
----
153459
264851
349811

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT MAX( ALL - + 27 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-9025
SELECT MAX ( ALL - + 27 ) FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - - COUNT( + - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - - COUNT ( + - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - COUNT( - 90 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - COUNT ( - 90 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col0 * + - col1 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * - 1 col2 FROM tab0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL + 16 * + col0 FROM tab1
----
1360
1456
816

query I rowsort
SELECT col1 * + 25 AS col0 FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT MIN( DISTINCT - 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT MIN ( DISTINCT - 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT + 59 DIV MAX( - 45 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 59 / MAX ( - 45 ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT 93 AS col0, 27 FROM tab2
----
93
27
93
27
93
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT DISTINCT - col0 DIV - col0 + + col2 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - col0 / - col0 + + col2 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9038
SELECT * FROM tab2 WHERE + CAST( 2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9038
SELECT * FROM tab2 WHERE + CAST ( 2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - - col0 + + col1 NOT BETWEEN col2 AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 20 BETWEEN - col1 AND NULL
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - ( + - ( + 44 ) ) AS col0 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT COUNT( * ) + MAX( + - col0 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9042
SELECT COUNT ( * ) + MAX ( + - col0 ) FROM tab2 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - + 83 + + 37 col2 FROM tab0 AS cor0
----
3938
8254
867

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - ( - - COUNT( ALL col1 ) ) + - SUM( DISTINCT - + 27 ) * + + 63 FROM tab1 cor0
----
1698

skipif mysql # not compatible
query I rowsort label-9044
SELECT - ( - - COUNT ( ALL col1 ) ) + - SUM ( DISTINCT - + 27 ) * + + 63 FROM tab1 cor0
----
1698

query III rowsort
SELECT 27 * + + 53 AS col2, col0 AS col1, + - col1 FROM tab1
----
9 values hashing to e819ddb6f7753a5f7c3f6d13851e1a99

query I rowsort
SELECT DISTINCT 45 * + 71 AS col0 FROM tab1
----
3195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT ( + - CAST( NULL AS SIGNED ) ) / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT ( + - CAST ( NULL AS INTEGER ) ) / + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT col2 DIV + - col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9048
SELECT col2 / + - col1 AS col1 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT COUNT( * ) - + 84 FROM tab1, tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9049
SELECT COUNT ( * ) - + 84 FROM tab1, tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col1 + - ( + col2 ) + - 20 FROM tab0
----
-118
-9
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT ALL + COUNT( * ) - - - 94 DIV + - 77 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + COUNT ( * ) - - - 94 / + - 77 FROM tab2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT + - COUNT( * ) - + 40 DIV + MIN( - 49 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9052
SELECT + - COUNT ( * ) - + 40 / + MIN ( - 49 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + - 78 - + col0 * + - 2 + - col1 FROM tab1 AS cor0
----
10
57
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT + 28 + - COUNT( * ) + CAST( + 11 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9054
SELECT + 28 + - COUNT ( * ) + CAST ( + 11 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT - MIN( + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - MIN ( + col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 12 AS col0 FROM tab2 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - MIN( DISTINCT ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9058
SELECT - MIN ( DISTINCT ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
75

query II rowsort
SELECT + col0 AS col2, - 42 + - 87 * - 2 * + + 49 FROM tab1 AS cor0
----
51
8484
85
8484
91
8484

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT 80 * col2 + + col0 <= - 97 ) )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * + ( + + col2 ) IS NULL
----

query II rowsort
SELECT ALL + col0 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL MIN( DISTINCT + - 5 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL MIN ( DISTINCT + - 5 ) FROM tab2
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT ALL + 56 * + - col1 FROM tab1
----
-2632
-280
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT - COUNT( 62 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - COUNT ( 62 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT COUNT( ALL + - col2 ) + + + SUM( + col1 ) * - - 37 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3814

skipif mysql # not compatible
query I rowsort label-9067
SELECT COUNT ( ALL + - col2 ) + + + SUM ( + col1 ) * - - 37 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3814

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 83 + + col0 * - col2 + 71 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col0 + 8 FROM tab1
----
59
93
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) + - 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-18

skipif mysql # not compatible
query II rowsort label-9072
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + - 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + + MAX( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9073
SELECT + + MAX ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + + MIN( ALL 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9074
SELECT + + MIN ( ALL 78 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT - + 41 * + col1 * + + col2 FROM tab2 AS cor0
----
-126280
-159326
-48093

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL - ( - 17 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - ( - 17 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col0 * - col2 AS col2, col1 col2 FROM tab2 AS cor0
----
1007
51
2483
77
4283
67

query I rowsort
SELECT col2 * + - col2 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT - ( + - 13 ) AS col1 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT 52 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND + 95
----

query I rowsort
SELECT ALL - 82 * col2 AS col1 FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT 78 + col2 FROM tab0
----
125
177
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT + col1 + + - col1 DIV + col1 + 66 FROM tab1
----
112
70
79

skipif mysql # not compatible
query I rowsort label-9083
SELECT + col1 + + - col1 / + col1 + 66 FROM tab1
----
112
70
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + + 3 col2 FROM tab0
----
22
22
22

query I rowsort
SELECT ALL + col0 * - - 98 + - 57 + + - 74 FROM tab2
----
4377
6141
7219

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 57 <> 28 * + - col0 + 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL + - MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + - 37 AND - col2
----
1

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL + - MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + - 37 AND - col2
----
1

query I rowsort
SELECT DISTINCT - 18 - + - col2 AS col2 FROM tab1 cor0
----
41
50
78

query I rowsort
SELECT + col1 * - col1 * + - col0 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9090
SELECT ALL col0 FROM tab1 WHERE NOT - 23 + - CAST( - col2 AS SIGNED ) > 84 + - - col0 + - col2 * CAST( - + 64 AS DECIMAL )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL col0 FROM tab1 WHERE NOT - 23 + - CAST ( - col2 AS INTEGER ) > 84 + - - col0 + - col2 * CAST ( - + 64 AS REAL )
----
51
85
91

query I rowsort
SELECT DISTINCT - ( - - 95 ) * + - 45 * + col2 FROM tab0 cor0
----
200925
423225
42750

query I rowsort
SELECT DISTINCT - - col1 * 76 FROM tab0 AS cor0
----
1596
6156
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 90 * + 93 AND - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col1 * + - 19 <> 69
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) * - COUNT( * ) FROM tab2
----
-3
-9

skipif mysql # not compatible
query II rowsort label-9095
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-3
-9

query II rowsort
SELECT - 84 AS col1, col2 AS col1 FROM tab0
----
-84
10
-84
47
-84
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - COUNT( * ) * - 44 AS col0 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-9097
SELECT - COUNT ( * ) * - 44 AS col0 FROM tab2
----
132

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE - col0 * - - col1 + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL 61 * + col1 FROM tab1
----
2867
305
854

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT DISTINCT col0 DIV - ( + 76 ) + + 70 FROM tab1
----
69
70

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT col0 / - ( + 76 ) + + 70 FROM tab1
----
69
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT ALL col2 DIV + 23 + col1 - col2 AS col2 FROM tab1
----
-19
-52
-78

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL col2 / + 23 + col1 - col2 AS col2 FROM tab1
----
-19
-52
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT ALL 64 AS col2, - COUNT( * ) FROM tab0
----
64
-3

skipif mysql # not compatible
query II rowsort label-9102
SELECT ALL 64 AS col2, - COUNT ( * ) FROM tab0
----
64
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT DISTINCT - - COUNT( * ), COUNT( DISTINCT col1 ) * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
3
27

skipif mysql # not compatible
query II rowsort label-9103
SELECT DISTINCT - - COUNT ( * ), COUNT ( DISTINCT col1 ) * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
3
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + COUNT( ALL - 90 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9104
SELECT + COUNT ( ALL - 90 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT - SUM( ALL + 4 ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9105
SELECT - SUM ( ALL + 4 ) AS col0 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2 WHERE NOT ( + 29 * + 54 ) > col0 + - col2
----

query I rowsort
SELECT DISTINCT 73 * - col2 FROM tab1 WHERE NOT col0 * + col0 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col2 NOT BETWEEN ( - col1 + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - 20 * 30 NOT BETWEEN + 47 + 97 AND NULL
----

query I rowsort
SELECT 63 * + col0 + - 18 FROM tab1
----
3195
5337
5715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT DISTINCT - CAST( ( - 1 ) AS SIGNED ) + + 8 * col0 AS col0 FROM tab0
----
121
697
777

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT - CAST ( ( - 1 ) AS INTEGER ) + + 8 * col0 AS col0 FROM tab0
----
121
697
777

query I rowsort
SELECT ALL 59 * - 90 - - col0 FROM tab2
----
-5235
-5246
-5264

query I rowsort
SELECT - 47 + col0 AS col0 FROM tab0
----
-32
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT - MIN( col1 ) + MIN( ALL - 18 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-9114
SELECT - MIN ( col1 ) + MIN ( ALL - 18 ) FROM tab1
----
-23

query I rowsort
SELECT ALL 21 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT - 71 * - 68 FROM tab1
----
4828
4828
4828

query I rowsort
SELECT ALL col1 * - col1 FROM tab0 WHERE col2 * + 24 + col0 * + col0 BETWEEN NULL AND + 52 + + ( - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN - 31 AND + 74 * - col0
----

query I rowsort
SELECT DISTINCT col2 * 55 FROM tab1 WHERE NULL BETWEEN - 86 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL + MIN( DISTINCT 88 ) * + MIN( ALL + col1 ) AS col2 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + MIN ( DISTINCT 88 ) * + MIN ( ALL + col1 ) AS col2 FROM tab0
----
88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT 63 * - COUNT( * ) AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-9123
SELECT 63 * - COUNT ( * ) AS col1 FROM tab0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT MIN( + 52 ) * COUNT( ALL col0 ) + + 31 * 74 AS col0 FROM tab2
----
2450

skipif mysql # not compatible
query I rowsort label-9124
SELECT MIN ( + 52 ) * COUNT ( ALL col0 ) + + 31 * 74 AS col0 FROM tab2
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9125
SELECT ALL COUNT( DISTINCT CAST( - CAST( + col0 AS DECIMAL ) AS SIGNED ) ) * 75 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + - col2 < ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL COUNT ( DISTINCT CAST ( - CAST ( + col0 AS REAL ) AS INTEGER ) ) * 75 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + - col2 < ( - col2 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE 95 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL COUNT( * ) + - 33 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND + ( + col2 )
----
-33

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL COUNT ( * ) + - 33 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND + ( + col2 )
----
-33

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT - 67 = col0
----
1
21
81

query I rowsort
SELECT DISTINCT col1 * + 72 AS col0 FROM tab0
----
1512
5832
72

query I rowsort
SELECT DISTINCT 70 + col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT col2 DIV - 37 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT col2 / - 37 FROM tab2
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 15 IS NULL
----

query I rowsort
SELECT ALL 45 * - col0 - col2 AS col1 FROM tab2
----
-2093
-2920
-3433

query I rowsort
SELECT DISTINCT 91 - col1 * col2 FROM tab0 AS cor0
----
-119
-3716
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT DISTINCT - COUNT( * ) DIV - 50 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT - COUNT ( * ) / - 50 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 29 + col2 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 41 ) col2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT + CAST( COUNT( + ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT + CAST ( COUNT ( + ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9140
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( - 68 ) AND CAST( - col0 AS SIGNED ) + + col1 * 31
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9140
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( - 68 ) AND CAST ( - col0 AS INTEGER ) + + col1 * 31
----
97
1
99

query I rowsort
SELECT DISTINCT - - 82 * col1 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT 83 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9143
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - 17 * - col0 FROM tab1 AS cor0 WHERE NOT ( + 19 - + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT DISTINCT + 25 DIV + 6 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT + 25 / + 6 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT ALL SUM( ALL + 24 ) DIV + 6 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL SUM ( ALL + 24 ) / + 6 FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9147
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 52 * CAST( NULL AS DECIMAL ) - - col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9147
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 52 * CAST ( NULL AS REAL ) - - col2 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE + col1 * col1 + - 51 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * col1 IN ( col2 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + 67 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * - col1 ) BETWEEN col1 AND + 22 + - col2 * - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT MIN( 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-9152
SELECT MIN ( 74 ) FROM tab1
----
74

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE NOT 30 NOT BETWEEN + col0 AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT + - col2 + - col2 - 33 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT + - col2 + - col2 - 33 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL col2 + - CAST( - col1 AS SIGNED ) + col1 * - 32 AS col0 FROM tab2
----
-1558
-2019
-2347

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL col2 + - CAST ( - col1 AS INTEGER ) + col1 * - 32 AS col0 FROM tab2
----
-1558
-2019
-2347

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 * + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= 71
----

query I rowsort
SELECT + + ( col0 ) - + - 90 * col2 AS col1 FROM tab2 AS cor0
----
2116
3664
5295

query I rowsort
SELECT col2 * col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - MAX( ALL + 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - MAX ( ALL + 86 ) FROM tab0 AS cor0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 16 + + col1 + ( col0 ) * - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 64 < + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + col2 ) - col1 FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col1 + col2 >= NULL
----

query I rowsort
SELECT ALL + + col1 - 74 FROM tab2 cor0
----
-23
-7
3

query I rowsort
SELECT ALL ( col0 ) * col1 * + col0 + + 0 FROM tab2
----
107916
315392
376875

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9169
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - ( + 73 ) + - 74 BETWEEN NULL AND - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-9169
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( + 73 ) + - 74 BETWEEN NULL AND - ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN NULL AND + + ( 44 ) + col2
----

query I rowsort
SELECT col0 * col0 * - + 75 AS col0 FROM tab0
----
-16875
-567675
-705675

query I rowsort
SELECT ALL col2 * + col2 * 82 AS col0 FROM tab0
----
181138
803682
8200

query I rowsort
SELECT DISTINCT 93 * - col2 AS col2 FROM tab0 cor0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9174
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9174
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * 29 FROM tab0 cor0
----
2349
29
609

query I rowsort
SELECT DISTINCT - - 6 FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - + MIN( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - + MIN ( col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL - ( - - CAST( ( - COUNT( * ) ) AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - ( - - CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL - COUNT( * ) * 57 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL - COUNT ( * ) * 57 FROM tab0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9181
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - col1 * - 50 AS col2 FROM tab1 cor0
----
2350
250
700

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - - COUNT( * ) + 66 FROM tab2 AS cor0 WHERE NOT col0 = col2
----
69

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - - COUNT ( * ) + 66 FROM tab2 AS cor0 WHERE NOT col0 = col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT MIN( ALL - - col0 ) + - - MAX( 84 ) AS col2 FROM tab0 AS cor0 WHERE 19 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT MIN ( ALL - - col0 ) + - - MAX ( 84 ) AS col2 FROM tab0 AS cor0 WHERE 19 IS NOT NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - + SUM( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - + SUM ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + - col2 col0 FROM tab2
----
-17
1
18

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( col0 ) + - 15 IN ( col1 ) )
----

query I rowsort
SELECT + col0 + - col0 * + 79 AS col1 FROM tab0 WHERE NOT + col1 >= + 36
----
-6786
-7566

query I rowsort
SELECT DISTINCT col1 * col1 * 14 AS col1 FROM tab2
----
36414
62846
83006

query I rowsort
SELECT DISTINCT - ( - + 90 ) AS col2 FROM tab0
----
90

query I rowsort
SELECT ALL col0 * ( + 26 ) FROM tab1
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + COUNT( ALL - col1 ) * - + MAX( - col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9193
SELECT + COUNT ( ALL - col1 ) * - + MAX ( - col2 ) FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT - col1 FROM tab1 WHERE ( NOT + CAST( + + ( + col1 ) AS SIGNED ) + - col0 * 17 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9194
SELECT - col1 FROM tab1 WHERE ( NOT + CAST ( + + ( + col1 ) AS INTEGER ) + - col0 * 17 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL - COUNT( * ) FROM tab0, tab1 AS cor0 WHERE + 68 NOT IN ( - 77 )
----
-9

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL - COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE + 68 NOT IN ( - 77 )
----
-9

query I rowsort
SELECT - col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 + + - 30 + + 83 FROM tab2
----
111
76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT - COUNT( ALL + - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - COUNT ( ALL + - col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL col2 + - + 45 AS col0 FROM tab0 cor0
----
-35
2
54

query II rowsort
SELECT ALL - col2, + 6 AS col0 FROM tab1 cor0
----
-59
6
-68
6
-96
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + + COUNT( * ) FROM tab2 WHERE NULL IN ( - + col0, - col1 / + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT + + COUNT ( * ) FROM tab2 WHERE NULL IN ( - + col0, - col1 / + + col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN + - col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT - MIN( - col2 ) + - 84 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT - MIN ( - col2 ) + - 84 FROM tab0
----
15

query I rowsort
SELECT DISTINCT 76 * + 46 + - + 3 AS col1 FROM tab2 AS cor0
----
3493

query II rowsort
SELECT DISTINCT + col0, - col0 + - 17 FROM tab1
----
51
-68
85
-102
91
-108

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab1 WHERE + col1 + - col1 * - 91 + + + 16 * + 21 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + + COUNT( - ( - 98 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9209
SELECT + + COUNT ( - ( - 98 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL SUM( col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT DISTINCT col1, 97 AS col1 FROM tab1 AS cor0
----
14
97
47
97
5
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9212
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9212
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT COUNT( * ) * + COUNT( * ) - - + COUNT( * ) col0, 15 FROM tab2 AS cor0
----
12
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9213
SELECT COUNT ( * ) * + COUNT ( * ) - - + COUNT ( * ) col0, 15 FROM tab2 AS cor0
----
12
15

query I rowsort
SELECT + 29 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE ( NOT ( + col0 IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE ( NOT ( + col0 IS NULL ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT + + SUM( DISTINCT - 29 ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9217
SELECT + + SUM ( DISTINCT - 29 ) AS col2 FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT + COUNT( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + COUNT ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT + 71 * COUNT( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + 71 * COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT + - col0 DIV 74 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9220
SELECT + - col0 / 74 col2 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 81 * + + col1 AS col1 FROM tab2 AS cor0
----
4131
5427
6237

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT + col0 DIV - 26 AS col0 FROM tab0 AS cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT + col0 / - 26 AS col0 FROM tab0 AS cor0
----
-3
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL - 96 * + ( - col2 ) FROM tab1 WHERE NULL NOT IN ( - - CAST( col0 AS SIGNED ) + - col1 * - 57 )
----

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - 96 * + ( - col2 ) FROM tab1 WHERE NULL NOT IN ( - - CAST ( col0 AS INTEGER ) + - col1 * - 57 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - ( + col0 ) <= NULL
----

query I rowsort
SELECT ALL col2 * + col2 * + 89 FROM tab0
----
196601
872289
8900

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( + + 4 * + 17 * + + 23 + - col2 * - 78 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT - MIN( col2 ) + - 45 * - + COUNT( * ) FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - MIN ( col2 ) + - 45 * - + COUNT ( * ) FROM tab2
----
112

query I rowsort
SELECT + - 64 AS col2 FROM tab2 WHERE NULL IS NULL
----
-64
-64
-64

query I rowsort
SELECT DISTINCT 49 + - ( - col1 ) AS col0 FROM tab1
----
54
63
96

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN NULL AND 48
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT SUM( - 42 ) + COUNT( * ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-9232
SELECT SUM ( - 42 ) + COUNT ( * ) FROM tab1
----
-123

query I rowsort
SELECT DISTINCT col1 * 88 + + 71 AS col2 FROM tab1
----
1303
4207
511

query I rowsort
SELECT - 88 * col2 + + ( + col2 ) + + col0 AS col2 FROM tab2 cor0
----
-1955
-3416
-4971

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT - 97 AS col2, MAX( - col1 ) FROM tab1 WHERE - col2 * - 70 - 79 + + 23 NOT BETWEEN + col0 AND 21
----
-97
-5

skipif mysql # not compatible
query II rowsort label-9235
SELECT - 97 AS col2, MAX ( - col1 ) FROM tab1 WHERE - col2 * - 70 - 79 + + 23 NOT BETWEEN + col0 AND 21
----
-97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT COUNT( * ) + + 78 + - 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-9236
SELECT COUNT ( * ) + + 78 + - 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

query I rowsort
SELECT DISTINCT + 32 * - col1 AS col1 FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 * + - ( col0 ) - 58 + col0 AS col0 FROM tab1 AS cor0
----
4889
5042
6221

query I rowsort
SELECT ALL + 73 - col1 FROM tab2 AS cor0
----
-4
22
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( + CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 WHERE NOT - + col1 * + col1 NOT IN ( ( + - col2 ) + + 94 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9242
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 WHERE NOT - + col1 * + col1 NOT IN ( ( + - col2 ) + + 94 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 * 86 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 27 * - 6 FROM tab1
----
-162
-162
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - 36 * + MAX( - + 55 ) FROM tab0
----
1980

skipif mysql # not compatible
query I rowsort label-9245
SELECT - 36 * + MAX ( - + 55 ) FROM tab0
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT col0 DIV 81 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9246
SELECT col0 / 81 AS col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9247
SELECT CAST( NULL AS SIGNED ) * - + ( + col1 ), - 65 AS col1 FROM tab2
----
NULL
-65
NULL
-65
NULL
-65

skipif mysql # not compatible
query II rowsort label-9247
SELECT CAST ( NULL AS INTEGER ) * - + ( + col1 ), - 65 AS col1 FROM tab2
----
NULL
-65
NULL
-65
NULL
-65

query I rowsort
SELECT + col1 * + - 96 AS col1 FROM tab0 AS cor0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT SUM( ALL 54 ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9249
SELECT SUM ( ALL 54 ) AS col0 FROM tab0
----
162

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND 80 / - 93 * - col0
----

query I rowsort
SELECT ALL + + col1 * - - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL + + col1 * + ( + + ( + + 68 ) ) + CAST( + col1 AS SIGNED ) + - 34 - - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL + + col1 * + ( + + ( + + 68 ) ) + CAST ( + col1 AS INTEGER ) + - 34 - - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT COUNT( * ) * - + ( - + MIN( - - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT COUNT ( * ) * - + ( - + MIN ( - - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 AS col2 FROM tab2 cor0
----
23
51
40
77
58
67

query II rowsort
SELECT DISTINCT col1 AS col0, ( 30 ) AS col0 FROM tab1 AS cor0
----
14
30
47
30
5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT - COUNT( * ) * 43 FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT - COUNT ( * ) * 43 FROM tab0 cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9257
SELECT DISTINCT + + col0 AS col1, 51 * - CAST( - ( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
-4131
87
-1071
97
-51

skipif mysql # not compatible
query II rowsort label-9257
SELECT DISTINCT + + col0 AS col1, 51 * - CAST ( - ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
-4131
87
-1071
97
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 + - - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL 30 * - COUNT( * ) + + SUM( DISTINCT - + 18 ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL 30 * - COUNT ( * ) + + SUM ( DISTINCT - + 18 ) FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT 22 * 67 + + + COUNT( * ) col1 FROM tab0
----
1477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9260
SELECT 22 * 67 + + + COUNT ( * ) col1 FROM tab0
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT + SUM( + 86 ) + + 21 AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + SUM ( + 86 ) + + 21 AS col2 FROM tab1
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT - CAST( ( ( - 77 ) ) AS SIGNED ) FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9262
SELECT - CAST ( ( ( - 77 ) ) AS INTEGER ) FROM tab2
----
77
77
77

query I rowsort
SELECT ALL 26 * - col1 AS col1 FROM tab2
----
-1326
-1742
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT - col0 DIV 83 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT - col0 / 83 AS col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT NULL > 91 OR NOT + + col1 + - + 41 / col2 IS NOT NULL
----

query I rowsort
SELECT ALL 15 * ( + 96 ) AS col2 FROM tab1
----
1440
1440
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT + 93 + - + 17 + - COUNT( * ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + 93 + - + 17 + - COUNT ( * ) FROM tab2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT - col2 + + col0 DIV 53 FROM tab0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - col2 + + col0 / 53 FROM tab0
----
-47
-9
-98

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE + 55 + - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9270
SELECT ALL COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 88 - - col0 + - col1 + + + col2 AS col0 FROM tab2
----
157
192
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 85 * - - 59 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9272
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 85 * - - 59 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT ALL - col0 DIV col1 - + col0 + + + col2 AS col1 FROM tab1 AS cor0
----
-24
-43
42

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - col0 / col1 - + col0 + + + col2 AS col1 FROM tab1 AS cor0
----
-24
-43
42

query I rowsort
SELECT - 29 + - - col0 FROM tab0 AS cor0
----
-14
58
68

query II rowsort
SELECT + col1 AS col1, col2 + - 28 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
71
21
-18
81
19

query I rowsort
SELECT ALL 98 AS col1 FROM tab2 cor0 WHERE NOT ( col2 ) = col1 + + col1
----
98
98
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 * + 42 - + - col1 ) > - 93 + - col1 * col2 + - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT COUNT( col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9278
SELECT COUNT ( col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9279
SELECT SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + ( + 8 ) FROM tab0 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9281
SELECT ALL COUNT( * ) DIV + 3 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL COUNT ( * ) / + 3 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9282
SELECT - SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - 67 * + + col0 AS col0 FROM tab0 WHERE NOT ( - col2 * - 31 + 38 ) > NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, - 91 * col0 * col2 FROM tab0
----
15
-64155
87
-79170
97
-873873

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 45 * + col1 * + col2 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT 39 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT 39 / - col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col1, - col2 * 67 * - + col2 * + col0 AS col1 FROM tab1
----
14
31491072
47
28192528
5
19824295

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT - SUM( DISTINCT - + ( + - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - SUM ( DISTINCT - + ( + - col2 ) ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + + col1 <> - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 15 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT + CAST( NULL AS SIGNED ) + - ( + 28 ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT + CAST ( NULL AS INTEGER ) + - ( + 28 ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE col2 + - - 58 IN ( 80 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - 4 >= - col2 * - - 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 28 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + + + 27 + col1 * + col2 col2 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT ALL 13 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= col1 - 42
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 4 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9298
SELECT ALL + CAST( NULL AS SIGNED ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9298
SELECT ALL + CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9299
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + 81 + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9299
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + 81 + + col2 IS NULL
----

query I rowsort
SELECT 79 + - - col0 AS col0 FROM tab0
----
166
176
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9301
SELECT ALL 6 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL 6 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9302
SELECT ALL - - 78, - ( + col1 ) DIV - 48 col1 FROM tab0 AS cor0
----
78
0
78
0
78
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9302
SELECT ALL - - 78, - ( + col1 ) / - 48 col1 FROM tab0 AS cor0
----
78
0
78
0
78
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col2 FROM tab2
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col0 FROM tab1
----
90

query I rowsort
SELECT ALL 46 * + col1 + + + col1 FROM tab0 AS cor0
----
3807
47
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT - COUNT( * ) * - 42 FROM tab0 cor0
----
126

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT - COUNT ( * ) * - 42 FROM tab0 cor0
----
126

query I rowsort
SELECT ALL ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT ALL col0, + 97 AS col0 FROM tab2
----
46
97
64
97
75
97

query II rowsort
SELECT - 78, 59 AS col2 FROM tab1
----
-78
59
-78
59
-78
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT CAST( NULL AS SIGNED ) + + col0 + + 60 * + - col2 FROM tab1 WHERE NOT - - 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9310
SELECT CAST ( NULL AS INTEGER ) + + col0 + + 60 * + - col2 FROM tab1 WHERE NOT - - 68 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col0 FROM tab1
----
-68
-68
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 * + 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL + - CAST( - col2 AS SIGNED ) * + + col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + - CAST ( - col2 AS INTEGER ) * + + col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT + MAX( + - col0 ) col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9315
SELECT DISTINCT + MAX ( + - col0 ) col2 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col2 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT ALL + + col1 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + + col1 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT col0 + - - col1 + ( - col2 ) AS col1, + col2 * 4 * + 42 FROM tab2
----
101
6720
74
3864
84
9744

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL - COUNT( * ) + COUNT( DISTINCT - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - COUNT ( * ) + COUNT ( DISTINCT - col0 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < col2
----

query I rowsort
SELECT 12 + - - 33 FROM tab0 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 10 + 44 col0 FROM tab0 cor0
----
254
54
854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT - CAST( NULL AS SIGNED ) * col1 + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT - CAST ( NULL AS INTEGER ) * col1 + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT DISTINCT - - CAST( + 87 AS SIGNED ) + + col1 - 0 * - col0 FROM tab1 cor0
----
101
134
92

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT - - CAST ( + 87 AS INTEGER ) + + col1 - 0 * - col0 FROM tab1 cor0
----
101
134
92

query I rowsort
SELECT ALL - ( 70 ) AS col1 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - - 86 * + - COUNT( * ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9327
SELECT - - 86 * + - COUNT ( * ) FROM tab0 AS cor0
----
-258

query I rowsort
SELECT ALL ( - - 91 ) FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT - col0 * + - col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT - CAST( NULL AS SIGNED ) * 67 / COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - CAST ( NULL AS INTEGER ) * 67 / COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT SUM( DISTINCT + 97 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-9331
SELECT SUM ( DISTINCT + 97 ) AS col1 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL - COUNT( + ( col1 ) ) + - COUNT( col0 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - COUNT ( + ( col1 ) ) + - COUNT ( col0 ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT 3 * col1 + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL + 12 + - ( CAST( NULL AS SIGNED ) ) + col1 + 63 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + 12 + - ( CAST ( NULL AS INTEGER ) ) + col1 + 63 * + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + 27 * - + 19 + - 86 + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-602

skipif mysql # not compatible
query I rowsort label-9336
SELECT + 27 * - + 19 + - 86 + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-602

query I rowsort
SELECT + col2 - - - 65 FROM tab1 AS cor0
----
-6
3
31

query I rowsort
SELECT + col2 * + col0 * col1 + - col1 + + col0 + - + 99 FROM tab2 AS cor0
----
197008
291359
53854

query I rowsort
SELECT ALL + ( 16 ) - - col0 FROM tab0 AS cor0
----
103
113
31

query I rowsort
SELECT - 59 + - 39 AS col0 FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + COUNT( * ) + - 22 AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9341
SELECT + COUNT ( * ) + - 22 AS col1 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL - SUM( + - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - SUM ( + - col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT col0 * 40 FROM tab2 AS cor0
----
1840
2560
3000

query I rowsort
SELECT ALL - - col0 * + + col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - 51 * - COUNT( * ) col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9345
SELECT ALL - 51 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
153

query I rowsort
SELECT ALL - ( - + col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT 6 * - + COUNT( * ) AS col2 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9347
SELECT 6 * - + COUNT ( * ) AS col2 FROM tab2 cor0
----
-18

query II rowsort
SELECT - - 73 AS col1, col2 FROM tab1 AS cor0
----
73
59
73
68
73
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9349
SELECT - CAST( NULL AS SIGNED ) AS col0, 94 DIV + - col1 + col1 FROM tab0 AS cor0
----
NULL
-93
NULL
17
NULL
80

skipif mysql # not compatible
query II rowsort label-9349
SELECT - CAST ( NULL AS INTEGER ) AS col0, 94 / + - col1 + col1 FROM tab0 AS cor0
----
NULL
-93
NULL
17
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT - + CAST( MAX( + - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9350
SELECT - + CAST ( MAX ( + - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL > - 31 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL > - 31 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9352
SELECT + + CAST( NULL AS SIGNED ) * - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + - col1 + + + col0, 83, + col0, + - 20 * + col2, + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + - col1 + + + col0, 83, + col0, + - 20 * + col2, + col1 )
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - MIN( DISTINCT col1 ) AS col0 FROM tab1 WHERE NULL BETWEEN - col1 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - MIN ( DISTINCT col1 ) AS col0 FROM tab1 WHERE NULL BETWEEN - col1 AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + 78 * + COUNT( * ) AS col2 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 78 * + COUNT ( * ) AS col2 FROM tab2
----
234

query I rowsort
SELECT DISTINCT - 93 * - + col1 + 83 FROM tab2 AS cor0
----
4826
6314
7244

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + ( ( + col0 ) ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT - - 75 DIV - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-54
-68
-78

skipif mysql # not compatible
query I rowsort label-9358
SELECT - - 75 / - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-54
-68
-78

query II rowsort
SELECT + 20 AS col2, 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 94e6c52d76d1daa5e5a4d120fcbede3e

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query II rowsort
SELECT ALL - 96 AS col0, - col0 FROM tab0 AS cor0
----
-96
-15
-96
-87
-96
-97

query I rowsort
SELECT + + col0 + 36 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL MAX( + ( - 76 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-76

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL MAX ( + ( - 76 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 17 * - 8 / col1 * ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 17 * - 8 / col1 * ( col1 ) IS NOT NULL
----
0

query II rowsort
SELECT + - col1, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT - + MIN( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9366
SELECT - + MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 91 - 40 FROM tab1 AS cor0
----
-131
-131
-131

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 46 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 + + 57 col1 FROM tab1 AS cor0
----
151
67
85

query I rowsort
SELECT DISTINCT ( ( 18 ) ) * + col0 FROM tab0 AS cor0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + - COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + - COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 5 * + - col1 * 22 + - col2 FROM tab0
----
-209
-2320
-8957

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NULL BETWEEN + - col0 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + + col2 AND - - 48
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * - col1 IS NULL
----

query I rowsort
SELECT 94 + col1 * + - 67 FROM tab0
----
-1313
-5333
27

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE - 16 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9382
SELECT ALL + - COUNT( * ), ( - COUNT( ALL col0 ) ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL + - COUNT ( * ), ( - COUNT ( ALL col0 ) ) FROM tab2 AS cor0
----
-3
-3

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE 2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * 74 * - 76 col0 FROM tab1
----
101232
101232
101232

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - MAX( ALL - - ( - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - MAX ( ALL - - ( - col1 ) ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT 55 AS col1, 45 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col2 * 56, + col0 FROM tab0 AS cor0
----
-2632
15
-5544
97
-560
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col1 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT - + 66 * - 82 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
5412
-3

skipif mysql # not compatible
query II rowsort label-9389
SELECT - + 66 * - 82 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
5412
-3

query II rowsort
SELECT ALL + col2, + col0 + + 95 + col1 + + 27 * + - col2 FROM tab2
----
23
-429
40
-844
58
-1329

query I rowsort
SELECT ALL col0 + 56 FROM tab0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT MIN( DISTINCT - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9392
SELECT MIN ( DISTINCT - col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT ALL col2 AS col0, - col2 * + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 AS col1, + col0 * + col1 * - - col0 AS col2 FROM tab0
----
1
9409
21
158949
81
18225

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT MAX( + + col0 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9396
SELECT MAX ( + + col0 ) col0 FROM tab2
----
75

query II rowsort
SELECT ALL col1 AS col0, + col1 * - - col1 AS col2 FROM tab1
----
14
196
47
2209
5
25

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT 69 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT DISTINCT col0 * - col0 + 31 + + 88 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT col0 * - col0 + 31 + + 88 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 91 * + col1 AS col0 FROM tab0 AS cor0
----
-1911
-7371
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + 33 ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT 50 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-9402
SELECT 50 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
41

query III rowsort
SELECT * FROM tab0 WHERE + col1 + 74 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 38 ) + 52 NOT BETWEEN col2 AND NULL
----
51
14
96

query I rowsort
SELECT ALL + col0 * + col1 - + - col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT - + SUM( + CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9406
SELECT - + SUM ( + CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - COUNT( - 89 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT - COUNT ( - 89 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT + + 46 * + 70 * - col0 * + col0 DIV - col0 FROM tab1 AS cor0
----
164220
273700
293020

skipif mysql # not compatible
query I rowsort label-9408
SELECT + + 46 * + 70 * - col0 * + col0 / - col0 FROM tab1 AS cor0
----
164220
273700
293020

query I rowsort
SELECT DISTINCT + 93 FROM tab2 AS cor0 WHERE + col1 + col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT - col2 * + 49 + col1 FROM tab2 AS cor0
----
-1076
-1883
-2775

query I rowsort
SELECT + 93 - + col0 AS col2 FROM tab2
----
18
29
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT DISTINCT + col0 + ( + - CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9412
SELECT DISTINCT + col0 + ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT ALL + col0 DIV - + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + col0 / - + col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT 58 FROM tab1, tab1 cor0
----
58

query I rowsort
SELECT ALL ( + + 70 ) FROM tab0
----
70
70
70

query I rowsort
SELECT DISTINCT - 95 * - col2 AS col0 FROM tab2 AS cor0
----
2185
3800
5510

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9417
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + CAST( - col1 AS SIGNED ) * - col2 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9417
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + CAST ( - col1 AS INTEGER ) * - col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT 86 AS col2 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( - - col0 + - col0 ) NOT BETWEEN NULL AND NULL OR - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL + - COUNT( - 56 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + - COUNT ( - 56 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL - 35 AS col1, + col0 * + col2 * + + col0 FROM tab1 AS cor0
----
-35
249696
-35
426275
-35
563108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( - 62 ) AS col0 FROM tab2 AS cor0
----
-62

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 + + col2 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL - col1 * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + 79 + - - 41 + 95 / - - 46 + - - 52 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - col1 * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 79 + - - 41 + 95 / - - 46 + - - 52 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 + - - ( 40 ) + + + 98 )
----

query I rowsort
SELECT 24 FROM tab0 WHERE NULL IS NULL
----
24
24
24

query I rowsort
SELECT + col2 * - + col0 + - 37 FROM tab2
----
-1095
-2597
-4387

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col0 >= - - col2 - col0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT + ( + - CAST( - col2 AS SIGNED ) ) + 49 col2 FROM tab1 cor0
----
108
117
145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT + ( + - CAST ( - col2 AS INTEGER ) ) + 49 col2 FROM tab1 cor0
----
108
117
145

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 64 / - + col1 IS NULL
----
1
21
81

query I rowsort
SELECT - 5 + + col1 FROM tab2 cor0
----
46
62
72

query I rowsort
SELECT DISTINCT ( - col0 ) * + - col2 + - 63 FROM tab2 AS cor0
----
2497
4287
995

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9436
SELECT * FROM tab0 WHERE CAST( 63 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9436
SELECT * FROM tab0 WHERE CAST ( 63 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 15 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT 31 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT 31 / col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + - col1, 12 * + - 73 AS col1 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND - col1 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT COUNT( * ) - - MIN( DISTINCT + col0 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9440
SELECT COUNT ( * ) - - MIN ( DISTINCT + col0 ) FROM tab2
----
49

query I rowsort
SELECT ALL - 5 + col0 FROM tab0
----
10
82
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( ( + + col2 ) * - col2 + - col2 + - - col2, + 12 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT + COUNT( * ) - - COUNT( * ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9443
SELECT + COUNT ( * ) - - COUNT ( * ) col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col2 + + 10 FROM tab0 AS cor0
----
-37
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - - COUNT( * ) - - COUNT( * ) * + - 25 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9445
SELECT - - COUNT ( * ) - - COUNT ( * ) * + - 25 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - 76 AND + + 48
----
97
1
99

query I rowsort
SELECT col1 + + ( + col2 ) FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT - col2 * + CAST( - col2 AS SIGNED ) + - col2 AS col0 FROM tab2
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-9448
SELECT - col2 * + CAST ( - col2 AS INTEGER ) + - col2 AS col0 FROM tab2
----
1560
3306
506

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 NOT BETWEEN + - col0 + + - col0 AND - - 34 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + COUNT( - - 16 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + COUNT ( - - 16 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9451
SELECT ALL + 95 * - - CAST( NULL AS SIGNED ), col1 + + col2 AS col0 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL + 95 * - - CAST ( NULL AS INTEGER ), col1 + + col2 AS col0 FROM tab2
----
NULL
117
NULL
125
NULL
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT + col1, col2 AS col0 FROM tab1 AS cor0 WHERE NOT - ( col0 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - col1 < NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9455
SELECT ALL 92 DIV MAX( + 86 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL 92 / MAX ( + 86 ) AS col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9457
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - col0 + + 19 * - + col1 * - col1 >= ( + CAST( - 0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9457
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - col0 + + 19 * - + col1 * - col1 >= ( + CAST ( - 0 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT ALL + 14 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + 14 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 23 + col2 * - ( - 94 ) col1 FROM tab2 AS cor0
----
2162
3743
5417

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE NOT 50 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT DISTINCT MAX( DISTINCT + + col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT MAX ( DISTINCT + + col1 ) AS col2 FROM tab0 cor0
----
81

query I rowsort
SELECT ALL ( + 92 ) AS col0 FROM tab1
----
92
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT 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-9463
SELECT col1 / - col0 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9464
SELECT + col1 AS col2, 95 DIV + - col0 AS col1 FROM tab0
----
1
0
21
-1
81
-6

skipif mysql # not compatible
query II rowsort label-9464
SELECT + col1 AS col2, 95 / + - col0 AS col1 FROM tab0
----
1
0
21
-1
81
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL 96 + - + MAX( DISTINCT col2 ) AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL 96 + - + MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT - COUNT( * ), - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9466
SELECT - COUNT ( * ), - COUNT ( * ) FROM tab1
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT ALL + 74 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + 74 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT + col0 * + + col2 + + + col2 + col1 DIV ( - 7 ) * - - col1 AS col0 FROM tab2 AS cor0
----
1753
3805
724

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + col0 * + + col2 + + + col2 + col1 / ( - 7 ) * - - col1 AS col0 FROM tab2 AS cor0
----
1753
3805
724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 + - - 34 col2 FROM tab2 cor0
----
30

query I rowsort
SELECT - + 84 * + - 30 + - col2 FROM tab2 AS cor0
----
2462
2480
2497

query II rowsort
SELECT + col2 + - + 22 AS col1, - 20 FROM tab1
----
37
-20
46
-20
74
-20

query I rowsort
SELECT - 67 AS col2 FROM tab2 cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL - 63 AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - 63 AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 BETWEEN NULL AND 11 + col2 - + + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9475
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE 45 NOT IN ( - 0, - CAST( + 4 AS SIGNED ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE 45 NOT IN ( - 0, - CAST ( + 4 AS INTEGER ), CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9478
SELECT ALL col2 AS col1, - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
23
-46
40
-64
58
-75

skipif mysql # not compatible
query II rowsort label-9478
SELECT ALL col2 AS col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT + col2 * + + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL 87 * COUNT( * ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL 87 * COUNT ( * ) AS col2 FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT DISTINCT col2 AS col0, - 95 DIV - 74 + + - ( - 69 ) FROM tab1
----
59
70
68
70
96
70

skipif mysql # not compatible
query II rowsort label-9481
SELECT DISTINCT col2 AS col0, - 95 / - 74 + + - ( - 69 ) FROM tab1
----
59
70
68
70
96
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT DISTINCT COUNT( * ) * - - ( COUNT( * ) ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT COUNT ( * ) * - - ( COUNT ( * ) ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT - 7 * + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - 7 * + COUNT ( * ) FROM tab0
----
-21

query I rowsort
SELECT ALL + ( + 4 ) AS col0 FROM tab0 AS cor0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 88 FROM tab1, tab1 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT col0 * + 14 FROM tab2
----
1050
644
896

query II rowsort
SELECT 88 * col0 AS col0, col1 + - 72 AS col0 FROM tab0 cor0
----
1320
9
7656
-51
8536
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT + ( 65 ) DIV - 49 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9489
SELECT + ( 65 ) / - 49 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 27 FROM tab2 AS cor0 WHERE NOT 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9491
SELECT DISTINCT 45 DIV + + 68, COUNT( * ) col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9491
SELECT DISTINCT 45 / + + 68, COUNT ( * ) col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + 12 * + 60 AS col0 FROM tab2 AS cor0
----
720
720
720

query I rowsort
SELECT ALL + ( col1 ) + - - col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 21 * - + col2 + col0 FROM tab0 AS cor0
----
-123
-1982
-972

query I rowsort
SELECT col1 * + + 86 AS col0 FROM tab1 AS cor0
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT + MAX( DISTINCT - - ( 76 ) ) * + - COUNT( * ) + MIN( ALL col2 ) FROM tab0
----
-218

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + MAX ( DISTINCT - - ( 76 ) ) * + - COUNT ( * ) + MIN ( ALL col2 ) FROM tab0
----
-218

query I rowsort
SELECT ALL col0 + + 99 FROM tab0
----
114
186
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT 44 + - + 95 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT 44 + - + 95 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 45 + + 82 FROM tab0
----
-2033
-368
-4373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT + CAST( NULL AS SIGNED ) + - + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT + CAST ( NULL AS INTEGER ) + - + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col2, - col1 AS col1 FROM tab0 AS cor0 WHERE - 53 IS NOT NULL
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT - col1 - 78 FROM tab2 AS cor0
----
-129
-145
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL SUM( DISTINCT col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL SUM ( DISTINCT col1 ) AS col2 FROM tab0 cor0
----
103

query II rowsort
SELECT ALL + col1 - - + ( - col0 ), col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

query I rowsort
SELECT col2 - - + 67 AS col0 FROM tab0
----
114
166
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9506
SELECT + - 39 AS col1, + COUNT( * ) * + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-39
-9

skipif mysql # not compatible
query II rowsort label-9506
SELECT + - 39 AS col1, + COUNT ( * ) * + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-39
-9

query I rowsort
SELECT DISTINCT + ( 50 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT + ( 47 ) FROM tab2 cor0
----
47

query II rowsort
SELECT - + col0 AS col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT - col2 * - - col0 DIV - col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9510
SELECT - col2 * - - col0 / - col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9511
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9511
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab0, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - col1 + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT - col2 < 67 * - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - COUNT( * ) * + 40 AS col1 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9515
SELECT - COUNT ( * ) * + 40 AS col1 FROM tab1
----
-120

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 66 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9517
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9517
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + + 14 AS col0 FROM tab2 AS cor0
----
322
560
812

query I rowsort
SELECT ALL ( - ( ( - col0 ) ) ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL + ( - col2 ), col1 AS col0 FROM tab1 cor0
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-9521
SELECT + col1 DIV - col0 * + 67 AS col0, 41 FROM tab1 cor0
----
0
41
0
41
0
41

skipif mysql # not compatible
query II rowsort label-9521
SELECT + col1 / - col0 * + 67 AS col0, 41 FROM tab1 cor0
----
0
41
0
41
0
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT + + ( + + 17 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, + col0 col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 31 <= ( - + ( - ( - 18 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 + + + 85 - - + col1 AND - + col2 * - col0 * - - col0 + col0
----

query I rowsort
SELECT - col2 + col2 * - col0 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + + MIN( ALL - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9529
SELECT + + MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 80 * + col2 FROM tab0 AS cor0
----
3760
7920
800

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT - 3 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT - 3 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9532
SELECT MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
51

query II rowsort
SELECT DISTINCT col0 + + - 91, col0 FROM tab1
----
-40
51
-6
85
0
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9534
SELECT CAST( + - 54 AS SIGNED ), + MAX( DISTINCT col2 ) AS col1 FROM tab0
----
-54
99

skipif mysql # not compatible
query II rowsort label-9534
SELECT CAST ( + - 54 AS INTEGER ), + MAX ( DISTINCT col2 ) AS col1 FROM tab0
----
-54
99

query I rowsort
SELECT ALL 88 + + 98 + - - 43 AS col0 FROM tab1
----
229
229
229

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT col1 - + + col2 DIV 70 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
13
47
5

skipif mysql # not compatible
query I rowsort label-9536
SELECT col1 - + + col2 / 70 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
13
47
5

query II rowsort
SELECT - col2 + - col0 AS col2, + 79 FROM tab0 cor0
----
-196
79
-62
79
-97
79

query I rowsort
SELECT + 8 * + + col0 + 35 FROM tab2 AS cor0
----
403
547
635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 13 + - 81 + + col2 AS col2 FROM tab1 WHERE ( ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - - 52 AS col1 FROM tab2 WHERE NOT ( NOT ( NOT col0 = NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT DISTINCT + col0 * 83 DIV - 62 FROM tab1 AS cor0
----
-113
-121
-68

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + col0 * 83 / - 62 FROM tab1 AS cor0
----
-113
-121
-68

query I rowsort
SELECT ALL - ( - + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + ( + 0 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT 59 AS col1, ( - + col1 ) * + col2 * + ( col2 ) FROM tab2 cor0
----
59
-123200
59
-225388
59
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT + COUNT( + - 55 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9547
SELECT + COUNT ( + - 55 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 13 + col2 + - - 66 AND NULL
----

query I rowsort
SELECT - col1 * ( ( + col1 ) ) FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 / + col1 + - - ( + + col2 ) - + col2, + 66 - + + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 38 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT + - CAST( + - 75 AS SIGNED ) FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 + + 7 * + col0 - + col1 AND + col1
----

skipif mysql # not compatible
query I rowsort label-9552
SELECT + - CAST ( + - 75 AS INTEGER ) FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 + + 7 * + col0 - + col1 AND + col1
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT + 15 * + - ( + 41 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 * + col1 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, - col1 AS col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT + col0 * 92 AS col0 FROM tab0 AS cor0
----
1380
8004
8924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 44 AS col0 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT 28 * ( - + COUNT( * ) ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT 28 * ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-84

query III rowsort
SELECT * FROM tab1 WHERE + - 79 + + - 68 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE + col0 / + col2 NOT IN ( col1, - col2, + + col2 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9561
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE + col0 / + col2 NOT IN ( col1, - col2, + + col2 )
----
3

query I rowsort
SELECT DISTINCT 0 + - 97 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + + MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9563
SELECT + + MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL + + 68 + - 14 AS col1, + col2 FROM tab1 AS cor0
----
54
59
54
68
54
96

query I rowsort
SELECT DISTINCT + col1 + + + 26 * - + 34 AS col1 FROM tab1 AS cor0
----
-837
-870
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT COUNT( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE - col0 / - col2 IS NOT NULL AND NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE - col0 / - col2 IS NOT NULL AND NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL ( - - col0 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL ( - - col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9568
SELECT DISTINCT - col2 DIV + - 41 AS col2, col1 FROM tab1 AS cor0
----
1
47
1
5
2
14

skipif mysql # not compatible
query II rowsort label-9568
SELECT DISTINCT - col2 / + - 41 AS col2, col1 FROM tab1 AS cor0
----
1
47
1
5
2
14

query I rowsort
SELECT - col2 + 56 AS col2 FROM tab1
----
-12
-3
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 * col1 = + col0
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE + - 99 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * + col1 + + col0 AS col2 FROM tab0
----
528
6576
98

query I rowsort
SELECT ALL + 56 + - - col1 AS col0 FROM tab2
----
107
123
133

query I rowsort
SELECT ALL col0 - 0 * + 54 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT - col1 DIV - - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9575
SELECT - col1 / - - col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT ALL - col2 - - + CAST( + col2 AS SIGNED ) + + 43 AS col0, - col0 + - col0 FROM tab2 AS cor0
----
43
-128
43
-150
43
-92

skipif mysql # not compatible
query II rowsort label-9576
SELECT ALL - col2 - - + CAST ( + col2 AS INTEGER ) + + 43 AS col0, - col0 + - col0 FROM tab2 AS cor0
----
43
-128
43
-150
43
-92

query I rowsort
SELECT DISTINCT col1 - col1 * + col1 AS col0 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT ALL ( 74 ) AS col2 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT MAX( ALL col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9579
SELECT MAX ( ALL col1 ) AS col2 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 45 + - ( ( - col1 ) + col1 ) FROM tab1
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 3 ) <= - ( 98 ) * - ( - col1 )
----

query I rowsort
SELECT + 34 + col0 AS col2 FROM tab1
----
119
125
85

query I rowsort
SELECT ALL + col1 + + col1 AS col2 FROM tab0 WHERE + 61 BETWEEN + 85 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT 75 + - COUNT( * ) AS col2 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-9586
SELECT 75 + - COUNT ( * ) AS col2 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT + CAST( 67 AS SIGNED ) FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-9587
SELECT + CAST ( 67 AS INTEGER ) FROM tab1
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL - 48 + COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL - 48 + COUNT ( * ) FROM tab2
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( col1 * + 27 + col1 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab2
----
85
85
85

query I rowsort
SELECT ALL 2 + - 81 AS col2 FROM tab1
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + col0 NOT IN ( col2 + col0 )
----

query I rowsort
SELECT DISTINCT 90 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 43 + col2 AS col2 FROM tab1
----
102
111
139

query I rowsort
SELECT - 66 * + col1 + - 1 FROM tab2
----
-3367
-4423
-5083

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 16 * 69 BETWEEN + col1 + - col0 * + ( col0 + col2 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 66 AS col1 FROM tab1 WHERE NULL IS NULL
----
66
66
66

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab1 WHERE - col0 >= ( 84 )
----

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0 WHERE NOT ( col2 ) NOT IN ( + 74 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND col1 / - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + COUNT( - col2 ) * - 93 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + COUNT ( - col2 ) * - 93 FROM tab1 AS cor0
----
-279

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9605
SELECT - 23 + - 5 DIV COUNT( * ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9605
SELECT - 23 + - 5 / COUNT ( * ) AS col0 FROM tab1
----
-24

query I rowsort
SELECT ALL + 67 + + 72 * col2 FROM tab0
----
3451
7195
787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT DISTINCT CAST( - MIN( DISTINCT col2 ) AS SIGNED ) + 7 FROM tab0 AS cor0 WHERE + 35 + col1 <> col0 + col0 / - 82
----
-3

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) + 7 FROM tab0 AS cor0 WHERE + 35 + col1 <> col0 + col0 / - 82
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 + - 61 ) AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT - + ( - CAST( NULL AS SIGNED ) ) + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT - + ( - CAST ( NULL AS INTEGER ) ) + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL + COUNT( * ) * + 57 AS col1 FROM tab1 cor0
----
171

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + COUNT ( * ) * + 57 AS col1 FROM tab1 cor0
----
171

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 40 * col1 AS col0 FROM tab1 AS cor0
----
-1880
-200
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9614
SELECT COUNT( col1 ) DIV - 78 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT COUNT ( col1 ) / - 78 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT - col1 DIV 69 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - col1 / 69 AS col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL + 78 * ( col1 ) * 19 AS col0 FROM tab0
----
120042
1482
31122

query I rowsort
SELECT 48 * col1 - - col0 AS col0 FROM tab2
----
2494
3291
3760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9618
SELECT DISTINCT col0 * - 42 + + 15 col0 FROM tab1 WHERE NOT + col2 + + col1 IN ( + CAST( - 94 AS DECIMAL ) )
----
-2127
-3555
-3807

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT DISTINCT col0 * - 42 + + 15 col0 FROM tab1 WHERE NOT + col2 + + col1 IN ( + CAST ( - 94 AS REAL ) )
----
-2127
-3555
-3807

query I rowsort
SELECT ( col0 ) AS col2 FROM tab2 WHERE NULL = ( col2 )
----

query I rowsort
SELECT DISTINCT ( - + 92 ) * col1 + + col0 FROM tab2
----
-4646
-6089
-7020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL - col2 * - + CAST( NULL AS SIGNED ) + - 70 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - col2 * - + CAST ( NULL AS INTEGER ) + - 70 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - MIN( - col2 ) + - 59 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9622
SELECT - MIN ( - col2 ) + - 59 AS col0 FROM tab2 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 3 > ( + col1 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0 WHERE NOT + col0 IN ( ( col2 ) * 87 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0 WHERE NOT + col0 IN ( ( col2 ) * 87 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + + 47 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + + 47 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL - MIN( + col0 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9626
SELECT ALL - MIN ( + col0 ) col1 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN - col2 * - col0 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT DISTINCT - CAST( + ( CAST( COUNT( * ) AS SIGNED ) ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT - CAST ( + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT + - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9629
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 28 * + + col1 FROM tab2
----
1428
1876
2156

query I rowsort
SELECT - + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 48 + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col1 ) <= col2 + col1
----
48

skipif mysql # not compatible
query I rowsort label-9632
SELECT 48 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col1 ) <= col2 + col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT + col1 DIV + 51 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9633
SELECT + col1 / + 51 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT MIN( ALL 38 ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9635
SELECT MIN ( ALL 38 ) FROM tab1 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT ALL col0 DIV 59 * + - col0 AS col1 FROM tab1 AS cor0
----
-85
-91
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL col0 / 59 * + - col0 AS col1 FROM tab1 AS cor0
----
-85
-91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT - ( + - col2 ) DIV col2 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9637
SELECT - ( + - col2 ) / col2 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col1 * + 54 AS col2 FROM tab2 AS cor0
----
2754
3618
4158

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9639
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - CAST( NULL AS DECIMAL ) ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9639
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - CAST ( NULL AS REAL ) ) * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 88 * + 22 AS col1 FROM tab2 cor0
----
1936

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT DISTINCT + - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + - col1 / + col1 AS col1 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - 30 * - 40 * col0 FROM tab1 AS cor0
----
102000
109200
61200

query II rowsort
SELECT + + 66 AS col0, 91 FROM tab2 cor0
----
66
91
66
91
66
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - + MIN( ALL col1 ) * COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9645
SELECT - + MIN ( ALL col1 ) * COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL MAX( 6 ) FROM tab0 AS cor0 WHERE NOT + col1 / 78 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL MAX ( 6 ) FROM tab0 AS cor0 WHERE NOT + col1 / 78 IS NULL
----
6

query II rowsort
SELECT ALL + - col2, - 26 AS col0 FROM tab0 AS cor0
----
-10
-26
-47
-26
-99
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 2, col0 + + col1 col2 FROM tab1 AS cor0
----
2
138
2
65
2
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + SUM( + 38 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + SUM ( + 38 ) FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT - + COUNT( - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT - + COUNT ( - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( + - 35 * CAST( + col2 AS SIGNED ) + CAST( NULL AS SIGNED ) ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( + - 35 * CAST ( + col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) ) IS NULL
----
-3

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT + - ( + col2 ) IS NULL
----
51
67
77

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( + + ( col0 ) ) < NULL
----

query I rowsort
SELECT ALL col0 + + + col1 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT COUNT( * ) - COUNT( DISTINCT col1 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-9657
SELECT COUNT ( * ) - COUNT ( DISTINCT col1 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - + col0 > + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT + COUNT( * ) DIV - - 88 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9659
SELECT + COUNT ( * ) / - - 88 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL - COUNT( 81 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - COUNT ( 81 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + 40 * + 43 FROM tab0
----
1720
1720
1720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 90 col2 FROM tab2
----
141
157
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ) - col0, 2 col2 FROM tab1 AS cor0
----
0
2
0
2
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - - COUNT( * ) - 53 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9664
SELECT - - COUNT ( * ) - 53 FROM tab1 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL 30 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE - 64 + + 50 - + col1 IS NOT NULL AND NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL 30 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE - 64 + + 50 - + col1 IS NOT NULL AND NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 + - 45 + + col2 FROM tab2 AS cor0
----
-62
-68
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 71 col1 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT 30 + - - col0 + + col0 AS col1 FROM tab1 AS cor0
----
132
200
212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9670
SELECT - 47 * + 60 DIV + - ( ( - 6 ) ) + - - COUNT( * ) AS col1 FROM tab1
----
-467

skipif mysql # not compatible
query I rowsort label-9670
SELECT - 47 * + 60 / + - ( ( - 6 ) ) + - - COUNT ( * ) AS col1 FROM tab1
----
-467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 - 69 col1 FROM tab0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 45 FROM tab2
----
51
45
67
45
77
45

query I rowsort
SELECT ALL + 17 FROM tab1 WHERE NOT NULL IS NOT NULL
----
17
17
17

query I rowsort
SELECT ALL + col1 * 58 FROM tab0
----
1218
4698
58

query I rowsort
SELECT ALL col0 * + col0 + - + ( 58 ) * 83 * + - col0 FROM tab2 AS cor0
----
223560
312192
366675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 76 * + col0 col1 FROM tab1 AS cor0
----
3876
6460
6916

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT ALL 82, - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
82
121

skipif mysql # not compatible
query II rowsort label-9677
SELECT ALL 82, - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
82
121

query I rowsort
SELECT ALL col1 * + + col1 AS col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 <> NULL
----

query I rowsort
SELECT 17 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 + + 88 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + MAX( 79 ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + MAX ( 79 ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT DISTINCT + + ( + COUNT( * ) ) AS col1, - 51 FROM tab0 AS cor0
----
3
-51

skipif mysql # not compatible
query II rowsort label-9682
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col1, - 51 FROM tab0 AS cor0
----
3
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - col2
----

query II rowsort
SELECT ALL - col0 AS col0, - 87 FROM tab2
----
-46
-87
-64
-87
-75
-87

query II rowsort
SELECT DISTINCT ( - + col2 ) * - + col1 AS col2, - col0 AS col2 FROM tab2
----
1173
-46
3080
-64
3886
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 72 IN ( + col1 + - + 90 * + col0 * - 51 * - col2 / + 18 )
----

query I rowsort
SELECT ALL + col1 + + + 56 FROM tab1
----
103
61
70

query I rowsort
SELECT ALL col1 + - 50 + col1 * - col1 AS col2 FROM tab0
----
-470
-50
-6530

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL BETWEEN + 1 AND NULL
----

query I rowsort
SELECT DISTINCT 30 + - 82 * - + ( + 88 ) AS col1 FROM tab0
----
7246

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + - + 66 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT - ( + CAST( ( col1 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE col1 + - ( col2 ) NOT IN ( - col0 )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9692
SELECT - ( + CAST ( ( col1 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE col1 + - ( col2 ) NOT IN ( - col0 )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 61, col0 - + 5 + + col0 col2 FROM tab2 cor0
----
-61
123
-61
145
-61
87

query I rowsort
SELECT - col1 * - col1 + 46 AS col1 FROM tab2 AS cor0
----
2647
4535
5975

query I rowsort
SELECT ALL + col0 + - - ( - 73 ) + ( + + 78 ) FROM tab0
----
102
20
92

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 33 - col2 + + ( + col2 ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL - col1 - 6 AS col0 FROM tab2 AS cor0
----
-57
-73
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT - col0 * + col2 - - col2 DIV + 41 FROM tab0 AS cor0
----
-704
-870
-9601

skipif mysql # not compatible
query I rowsort label-9699
SELECT - col0 * + col2 - - col2 / + 41 FROM tab0 AS cor0
----
-704
-870
-9601

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT + - MAX( + col2 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT + - MAX ( + col2 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + SUM( DISTINCT - 83 ) AS col0 FROM tab0 cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + SUM ( DISTINCT - 83 ) AS col0 FROM tab0 cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT ALL + COUNT( * ), 58 col2 FROM tab1
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9702
SELECT ALL + COUNT ( * ), 58 col2 FROM tab1
----
3
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT COUNT( * ), + 26 + + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( - ( + - col0 ) / + + 22 )
----
0
26

skipif mysql # not compatible
query II rowsort label-9703
SELECT COUNT ( * ), + 26 + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( - ( + - col0 ) / + + 22 )
----
0
26

query II rowsort
SELECT DISTINCT ( + 45 ) * 99 AS col1, - 15 * ( - col2 ) * 10 AS col2 FROM tab0
----
4455
14850
4455
1500
4455
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL 50 * + - COUNT( ALL + col2 ) * + - COUNT( * ) col2 FROM tab2
----
450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT ALL 50 * + - COUNT ( ALL + col2 ) * + - COUNT ( * ) col2 FROM tab2
----
450

query I rowsort
SELECT DISTINCT 89 * 4 AS col2 FROM tab0
----
356

query I rowsort
SELECT - 22 * - 76 AS col2 FROM tab1
----
1672
1672
1672

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT ( NOT NULL <= + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( col0 ) AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 92 + + col1 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, + 25 - + col1 + col2 FROM tab2
----
51
-3
67
16
77
-12

query II rowsort
SELECT col1 AS col1, - col2 * - + col1 FROM tab0
----
1
99
21
210
81
3807

query II rowsort
SELECT ALL 83, col0 AS col0 FROM tab2
----
83
46
83
64
83
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - + COUNT( * ) * - 35 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9715
SELECT - + COUNT ( * ) * - 35 FROM tab2 AS cor0
----
105

query I rowsort
SELECT ALL - ( - 30 ) FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + - col1 * + 73 AS col0 FROM tab0 AS cor0
----
-1533
-5913
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col1 FROM tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col2 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL - ( - 99 ) FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT - col2 * - col1 + + 97 * - 33 AS col1 FROM tab1 AS cor0
----
-1857
-2906
-5

query I rowsort
SELECT DISTINCT - - col2 + + - 34 AS col2 FROM tab1 AS cor0 WHERE NOT ( + - 59 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - COUNT( * ) + + SUM( DISTINCT + - col2 ) FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-9723
SELECT - COUNT ( * ) + + SUM ( DISTINCT + - col2 ) FROM tab1
----
-226

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + - 82 BETWEEN - + 23 AND + + col1
----

query I rowsort
SELECT + ( + col1 ) + - - 6 FROM tab1
----
11
20
53

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 21 IS NULL
----

query I rowsort
SELECT - ( 52 ) * + + col0 - - 88 AS col2 FROM tab2
----
-2304
-3240
-3812

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - SUM( DISTINCT + 37 ) AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - SUM ( DISTINCT + 37 ) AS col2 FROM tab2
----
-37

query I rowsort
SELECT ALL - col2 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT DISTINCT col0 - + 16 FROM tab0 AS cor0
----
-1
71
81

query I rowsort
SELECT ALL + - 14 + col1 AS col0 FROM tab0 AS cor0
----
-13
67
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + - 2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT COUNT( ALL + 20 ) + - - MIN( ALL - + 73 ) FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9734
SELECT COUNT ( ALL + 20 ) + - - MIN ( ALL - + 73 ) FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT 59 + + + COUNT( * ) FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT 59 + + + COUNT ( * ) FROM tab2 cor0
----
62

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-9737
SELECT DISTINCT + 34 DIV + col1, col0 col2 FROM tab1
----
0
91
2
51
6
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9737
SELECT DISTINCT + 34 / + col1, col0 col2 FROM tab1
----
0
91
2
51
6
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT - 99 + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-9738
SELECT - 99 + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT 84 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT COUNT( DISTINCT + col1 ) * + + 58 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-9740
SELECT COUNT ( DISTINCT + col1 ) * + + 58 FROM tab1
----
174

query I rowsort
SELECT col2 * - - 84 FROM tab2
----
1932
3360
4872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT DISTINCT + ( - - COUNT( * ) ) DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + ( - - COUNT ( * ) ) / + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT ALL + 70 * ( + col0 ) FROM tab2
----
3220
4480
5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) * + col2 + + + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9744
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) * + col2 + + + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9745
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) <> CAST( 24 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9745
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) <> CAST ( 24 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT + + col1 * - + col1 + 67 DIV 44 AS col1 FROM tab0 AS cor0
----
-440
-6560
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT + + col1 * - + col1 + 67 / 44 AS col1 FROM tab0 AS cor0
----
-440
-6560
0

query I rowsort
SELECT - + col0 + - 30 AS col2 FROM tab1 AS cor0
----
-115
-121
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT - MIN( ALL CAST( 12 AS SIGNED ) ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9748
SELECT - MIN ( ALL CAST ( 12 AS INTEGER ) ) AS col0 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT + col1 * - 13 AS col0 FROM tab0
----
-1053
-13
-273

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col2 * 52 - + 1 AND NULL
----

query I rowsort
SELECT col0 - + col2 + + - 66 * 33 AS col1 FROM tab1 cor0
----
-2152
-2155
-2223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - MAX( 20 ) + - 5 AS col2 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9753
SELECT - MAX ( 20 ) + - 5 AS col2 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT col0 - + - 46 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * 98 AND NULL
----

query I rowsort
SELECT ALL - + 46 - + col2 FROM tab1 AS cor0
----
-105
-114
-142

query I rowsort
SELECT col1 + 91 AS col0 FROM tab2 AS cor0
----
142
158
168

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT ALL 91 DIV 43 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL 91 / 43 AS col0 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT DISTINCT + 38 * COUNT( * ) DIV - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + 38 * COUNT ( * ) / - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

query I rowsort
SELECT ALL - + 7 + - 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9760
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + ( 49 ) * - + col2 + ( col0 ) FROM tab1 AS cor0
----
-2806
-3241
-4653

query I rowsort
SELECT + 51 * + col0 FROM tab2 AS cor0
----
2346
3264
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT COUNT( * ) * - MIN( ALL - - col2 ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT COUNT ( * ) * - MIN ( ALL - - col2 ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-180

query I rowsort
SELECT DISTINCT - - col2 + + 93 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + 58 * 8 AS col2 FROM tab0 AS cor0
----
464
464
464

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 2 NOT BETWEEN - col0 * + + col0 AND NULL
----

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9768
SELECT ALL - 78 AS col2, 63 DIV - + SUM( - col0 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
-78
0

skipif mysql # not compatible
query II rowsort label-9768
SELECT ALL - 78 AS col2, 63 / - + SUM ( - col0 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
-78
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT DISTINCT col2 DIV - ( col0 ) col2 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT DISTINCT col2 / - ( col0 ) col2 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - MAX( + - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9771
SELECT - MAX ( + - col0 ) AS col0 FROM tab0
----
15

query II rowsort
SELECT + col1, - 74 FROM tab1
----
14
-74
47
-74
5
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT + + COUNT( + 76 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + + COUNT ( + 76 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col2
----

query I rowsort
SELECT DISTINCT - col1 * - 18 FROM tab2 AS cor0
----
1206
1386
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col2 FROM tab1 cor0 WHERE + col1 * - col1 + + 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - COUNT( * ) + + SUM( DISTINCT col0 ) * + SUM( DISTINCT col2 ) + 71 FROM tab2 cor0
----
22453

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COUNT ( * ) + + SUM ( DISTINCT col0 ) * + SUM ( DISTINCT col2 ) + 71 FROM tab2 cor0
----
22453

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT ALL 51 AS col0, + COUNT( DISTINCT - ( - + col2 ) ) * - + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
51
-6

skipif mysql # not compatible
query II rowsort label-9778
SELECT ALL 51 AS col0, + COUNT ( DISTINCT - ( - + col2 ) ) * - + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
51
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT MAX( ALL - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT MAX ( ALL - col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - - 41 FROM tab1 cor0
----
41

query I rowsort
SELECT ( - ( + 79 ) ) FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + COUNT( * ) * + - ( - 49 ) + + + 80 AS col0 FROM tab2 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9782
SELECT + COUNT ( * ) * + - ( - 49 ) + + + 80 AS col0 FROM tab2 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query II rowsort label-9783
SELECT + + col2 DIV - 61 AS col2, 96 FROM tab1 AS cor0
----
-1
96
-1
96
0
96

skipif mysql # not compatible
query II rowsort label-9783
SELECT + + col2 / - 61 AS col2, 96 FROM tab1 AS cor0
----
-1
96
-1
96
0
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 72 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 + + 5 col2 FROM tab0 cor0
----
-61
-61
-61

query II rowsort
SELECT + col1 * 3 + - 28, col2 FROM tab2
----
125
23
173
58
203
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL 0 + CAST( NULL AS SIGNED ) * - ( + 16 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL 0 + CAST ( NULL AS INTEGER ) * - ( + 16 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + SUM( ALL col2 ) + 90 AS col0 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-9788
SELECT + SUM ( ALL col2 ) + 90 AS col0 FROM tab0
----
246

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9789
SELECT ALL - CAST( CAST( + 2 AS SIGNED ) AS SIGNED ) DIV + - col2 * + - col2 + - 76 AS col0 FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - CAST ( CAST ( + 2 AS INTEGER ) AS INTEGER ) / + - col2 * + - col2 + - 76 AS col0 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT ALL 68 + - ( + col0 ) FROM tab1 AS cor0
----
-17
-23
17

query I rowsort
SELECT DISTINCT + col0 + - ( + 45 ) FROM tab0 AS cor0
----
-30
42
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 37 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT - 88 DIV ( - col0 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9795
SELECT - 88 / ( - col0 ) AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT + 54 FROM tab0 WHERE NOT - 27 < - col2
----
54
54

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT - col0 + - - 39 IS NULL
----
51
85
91

query I rowsort
SELECT + 88 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT - COUNT( * ), 1 AS col2 FROM tab2 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-9799
SELECT - COUNT ( * ), 1 AS col2 FROM tab2 AS cor0
----
-3
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / 62 * + - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL + + COUNT( DISTINCT 83 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + + COUNT ( DISTINCT 83 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT SUM( DISTINCT 36 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT SUM ( DISTINCT 36 ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT - 51 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - 51 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT + 85 * COUNT( DISTINCT 25 ) DIV + 43 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 85 * COUNT ( DISTINCT 25 ) / + 43 FROM tab0
----
1

query I rowsort
SELECT - - col2 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2 - - 62 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT DISTINCT - MAX( ALL + - 44 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT - MAX ( ALL + - 44 ) FROM tab1 AS cor0
----
44

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - 44 ) BETWEEN - + col1 + - col1 * 62 AND ( + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - COUNT( * ) + - 78 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-9811
SELECT - COUNT ( * ) + - 78 FROM tab1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + + col2 col0 FROM tab2
----
112
130
95

query I rowsort
SELECT DISTINCT - 67 + + - col0 AS col2 FROM tab1 cor0
----
-118
-152
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL COUNT( ALL col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL COUNT ( ALL col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL CAST( + - 45 AS SIGNED ) FROM tab1 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL CAST ( + - 45 AS INTEGER ) FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - ( ( - + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9817
SELECT - ( ( - + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + MAX( ALL - + 78 ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-9818
SELECT + MAX ( ALL - + 78 ) AS col0 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ( + 75 ) - + MAX( - col0 ) AS col1 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9819
SELECT ( + 75 ) - + MAX ( - col0 ) AS col1 FROM tab1
----
126

query I rowsort
SELECT DISTINCT 4 * + col1 + 79 FROM tab1
----
135
267
99

query I rowsort
SELECT ALL - 9 FROM tab1 WHERE NOT ( - col2 * - - 46 + + + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 - - col1 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - - COUNT( * ) + SUM( DISTINCT - - 54 ) * - 30 AS col0 FROM tab2 AS cor0
----
-1617

skipif mysql # not compatible
query I rowsort label-9824
SELECT - - COUNT ( * ) + SUM ( DISTINCT - - 54 ) * - 30 AS col0 FROM tab2 AS cor0
----
-1617

query I rowsort
SELECT col1 * + col2 + 92 AS col1 FROM tab0 AS cor0
----
191
302
3899

query I rowsort
SELECT - ( + 49 ) + - - col0 + + col1 - col0 * + + 58 * + col2 FROM tab0 AS cor0
----
-40843
-50401
-556925

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9827
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + col1 * + 59 AS col2 FROM tab2
----
3009
3953
4543

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9829
SELECT CAST( + col0 AS SIGNED ) * 23 DIV 55 AS col0 FROM tab2
----
19
26
31

skipif mysql # not compatible
query I rowsort label-9829
SELECT CAST ( + col0 AS INTEGER ) * 23 / 55 AS col0 FROM tab2
----
19
26
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL col0 * + CAST( + 80 AS SIGNED ) FROM tab1 AS cor0
----
4080
6800
7280

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL col0 * + CAST ( + 80 AS INTEGER ) FROM tab1 AS cor0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL - - COUNT( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9831
SELECT ALL - - COUNT ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE ( + 28 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT DISTINCT + - col2 DIV + 71 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + - col2 / + 71 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT ALL - col0 DIV + + col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - col0 / + + col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT + - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT + - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL + COUNT( * ) * ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + COUNT ( * ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + ( - + 69 ) AS col1 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 49 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col0, 3 FROM tab2
----
-46
3
-64
3
-75
3

query I rowsort
SELECT + col1 + + col1 FROM tab2 WHERE NOT + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT 4 * - - COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT 4 * - - COUNT ( * ) FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, - 32 col2 FROM tab0 WHERE NOT - + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT - COUNT( * ) * 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - COUNT ( * ) * 90 FROM tab0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + COUNT( * ) + 81 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COUNT ( * ) + 81 FROM tab1 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT DISTINCT col1 DIV + 7 + + col0 AS col2 FROM tab1 AS cor0
----
53
85
97

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT col1 / + 7 + + col0 AS col2 FROM tab1 AS cor0
----
53
85
97

query III rowsort
SELECT ALL - - col0 / col2 - + + col1 + - - col0, col1, + col1 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = - + ( + + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9849
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 38 + + + ( 63 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT - COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9851
SELECT - COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 - + + col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9853
SELECT DISTINCT - CAST( - - col2 AS DECIMAL ) FROM tab1 cor0 WHERE NOT + col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - CAST ( - - col2 AS REAL ) FROM tab1 cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT DISTINCT col0 + + 74 AS col1 FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT - + col1 * - + col1 + - 23 FROM tab2 AS cor0
----
2578
4466
5906

query I rowsort
SELECT ALL + 96 - - - col1 + 25 + col1 AS col2 FROM tab1 AS cor0
----
121
121
121

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9857
SELECT ALL col0 AS col2, - CAST( + 79 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL col0 AS col2, - CAST ( + 79 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT - col1 + + col2 FROM tab1 WHERE - 35 <= - + CAST( col1 AS SIGNED ) * col2 * + + col2 + 43
----

skipif mysql # not compatible
query I rowsort label-9859
SELECT - col1 + + col2 FROM tab1 WHERE - 35 <= - + CAST ( col1 AS INTEGER ) * col2 * + + col2 + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - SUM( DISTINCT 13 ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - SUM ( DISTINCT 13 ) AS col0 FROM tab2
----
-13

query I rowsort
SELECT col1 * - 79 AS col2 FROM tab0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL COUNT( - + col0 ) + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9862
SELECT ALL COUNT ( - + col0 ) + COUNT ( * ) col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + MIN( + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9863
SELECT + MIN ( + - col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT COUNT( * ) + - ( + 96 ) + + COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT COUNT ( * ) + - ( + 96 ) + + COUNT ( * ) FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9865
SELECT * FROM tab1 WHERE - 50 NOT BETWEEN NULL AND CAST( - + col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9865
SELECT * FROM tab1 WHERE - 50 NOT BETWEEN NULL AND CAST ( - + col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9866
SELECT + ( - ( - - CAST( MAX( col0 ) AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9866
SELECT + ( - ( - - CAST ( MAX ( col0 ) AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT DISTINCT + + MAX( ALL 26 ), MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
26
-5

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT + + MAX ( ALL 26 ), MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
26
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT - - SUM( DISTINCT + col1 ), - 21 + + 22 AS col0 FROM tab1 AS cor0
----
66
1

skipif mysql # not compatible
query II rowsort label-9870
SELECT - - SUM ( DISTINCT + col1 ), - 21 + + 22 AS col0 FROM tab1 AS cor0
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9871
SELECT + ( MIN( + - CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT + ( MIN ( + - CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL MIN( 41 ) * - - COUNT( DISTINCT - - col0 ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL MIN ( 41 ) * - - COUNT ( DISTINCT - - col0 ) FROM tab1
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 12 col1 FROM tab2
----
552
768
900

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL NOT BETWEEN ( + col0 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT SUM( 15 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9875
SELECT SUM ( 15 ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - MIN( + col0 ) + + 47 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - MIN ( + col0 ) + + 47 AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT MAX( - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9877
SELECT MAX ( - col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + 29 * COUNT( * ) + COUNT( ALL 11 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 29 * COUNT ( * ) + COUNT ( ALL 11 ) FROM tab1
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9881
SELECT ALL + + 16 + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + + 16 + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - + ( + col0 ) + + 4 AS col1 FROM tab1 AS cor0
----
-2597
-7221
-8277

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 74 * + - col0
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE - ( - col0 ) * - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE - 11 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - + 9 * col0 FROM tab0 AS cor0
----
-135
-783
-873

query I rowsort
SELECT DISTINCT + ( - 65 ) - 73 FROM tab2 AS cor0
----
-138

query II rowsort
SELECT - col0, ( + col0 ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT SUM( 28 ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9889
SELECT SUM ( 28 ) AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT + 51 - + + COUNT( * ) + + MAX( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
139

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 51 - + + COUNT ( * ) + + MAX ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
139

query I rowsort
SELECT DISTINCT - - col1 + + 87 * - + 89 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-7666
-7676
-7692

query I rowsort
SELECT DISTINCT - - col1 * 19 FROM tab1 WHERE NOT NULL IS NOT NULL
----
266
893
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL + MAX( DISTINCT + + 0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + MAX ( DISTINCT + + 0 ) AS col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col1 * + col0 AS col1, - 18 AS col2 FROM tab1 WHERE NOT ( + col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 BETWEEN - col1 AND + - col0 - col0 * + 95 * 72 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT - + COUNT( + ( + - col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9896
SELECT - + COUNT ( + ( + - col2 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9897
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - + 43 / - ( + ( 80 ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + 43 / - ( + ( 80 ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + 44
----

query I rowsort
SELECT + col2 * - 63 AS col1 FROM tab1 AS cor0
----
-3717
-4284
-6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT col1 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT col1 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 * + col2 + 80, col2 FROM tab2 AS cor0
----
1680
40
3444
58
609
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9904
SELECT ALL + 46 col0, 60 DIV - 98 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9904
SELECT ALL + 46 col0, 60 / - 98 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
46
3

query I rowsort
SELECT + col2 * - col1 / - col1 - - col2 FROM tab2 cor0 WHERE NOT 5 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + 86 AS col1 FROM tab2
----
28
46
63

query I rowsort
SELECT 47 * + col0 + + 45 AS col0 FROM tab2
----
2207
3053
3570

query I rowsort
SELECT DISTINCT 23 + + col2 FROM tab0
----
122
33
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL + COUNT( - 68 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + COUNT ( - 68 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT COUNT( * ) FROM tab2 WHERE NULL >= ( - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT COUNT ( * ) FROM tab2 WHERE NULL >= ( - + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + COUNT( + + col2 ) col1 FROM tab1 AS cor0 WHERE NOT + 30 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9911
SELECT ALL + COUNT ( + + col2 ) col1 FROM tab1 AS cor0 WHERE NOT + 30 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 + + col0 + + ( + col2 ) + + 39 AS col0 FROM tab1 AS cor0
----
-4614
-4773
-5922

query I rowsort
SELECT col1 + - + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - ( - + 5 ) + - col2 * - - col0 * + - col1 FROM tab0 AS cor0
----
18275
57110
9608

query II rowsort
SELECT 27 AS col2, - col0 AS col0 FROM tab0
----
27
-15
27
-87
27
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL 81 DIV + 91 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 81 / + 91 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE col0 * - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 58 FROM tab0 AS cor0 WHERE - col1 / 74 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - col2 col1 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + 18 )
----

query I rowsort
SELECT ALL - - 22 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9922
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 82 * 16 FROM tab0
----
1312
1312
1312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 39 col1 FROM tab1
----
-1989
-3315
-3549

query II rowsort
SELECT + col1 AS col0, + ( + 81 ) AS col0 FROM tab1
----
14
81
47
81
5
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34, + 52 + - + 48 + + col1 col2 FROM tab2
----
34
55
34
71
34
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT 52 DIV + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT 52 / + 75 FROM tab2
----
0
0
0

query II rowsort
SELECT - 79 AS col2, - col2 FROM tab0
----
-79
-10
-79
-47
-79
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT - CAST( NULL AS SIGNED ) * - + ( 82 ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT - CAST ( NULL AS INTEGER ) * - + ( 82 ) * + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 * + col2 col1, + col0 FROM tab2 AS cor0
----
1058
46
2560
64
4350
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + SUM( - 36 ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + SUM ( - 36 ) FROM tab0 AS cor0
----
-108

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 16 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL - CAST( + col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - CAST ( + col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

query II rowsort
SELECT ALL - 66 AS col0, 10 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * + 54 AS col1 FROM tab0
----
-4698
-5238
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL - 30 * + COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - 30 * + COUNT ( * ) FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT - COUNT( * ) * 48 AS col2 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-9938
SELECT - COUNT ( * ) * 48 AS col2 FROM tab1
----
-144

query I rowsort
SELECT + 30 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - + col1 + - - col2 - - 34 - + col0 FROM tab1 AS cor0
----
-36
3
65

query II rowsort
SELECT col2 * - - ( + + col1 ) AS col2, - 22 - + + col0 AS col2 FROM tab1
----
1344
-73
295
-107
3196
-113

query I rowsort
SELECT col1 * 94 * col1 FROM tab1
----
18424
207646
2350

query II rowsort
SELECT + 34 AS col0, col1 AS col1 FROM tab0
----
34
1
34
21
34
81

query I rowsort
SELECT ALL col1 * - col2 + + - col1 AS col1 FROM tab1
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - COUNT( col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9945
SELECT - COUNT ( col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT + SUM( DISTINCT - col2 ) + - SUM( ALL 13 ) AS col2 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + SUM ( DISTINCT - col2 ) + - SUM ( ALL 13 ) AS col2 FROM tab0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 98 col0 FROM tab0
----
-2058
-7938
-98

query I rowsort
SELECT DISTINCT + 9 * col0 + - ( + + col1 ) FROM tab0
----
54
762
872

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 2 AND NULL
----

query I rowsort
SELECT ALL - col0 - - - 12 FROM tab1 AS cor0
----
-103
-63
-97

query I rowsort
SELECT 36 + + ( - + 35 ) AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL 61 - 33 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + col2 - 92 FROM tab0 cor0
----
-45
-82
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL - + MAX( + col1 ) + 45 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL - + MAX ( + col1 ) + 45 FROM tab0 cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT + ( + - ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + ( + - ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT COUNT( + 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT COUNT ( + 6 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT 14 * COUNT( * ) AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9960
SELECT 14 * COUNT ( * ) AS col0 FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9961
SELECT ALL * FROM tab1 WHERE NOT - col0 + - - col0 * col1 / - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9961
SELECT ALL * FROM tab1 WHERE NOT - col0 + - - col0 * col1 / - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT - 57 * COUNT( * ) AS col2 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-9962
SELECT - 57 * COUNT ( * ) AS col2 FROM tab1
----
-171

query I rowsort
SELECT DISTINCT + 65 * + - 26 FROM tab0
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT + - MIN( ALL + col1 ) FROM tab0 WHERE NOT - 94 NOT BETWEEN NULL AND - + ( - col0 ) * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT + - MIN ( ALL + col1 ) FROM tab0 WHERE NOT - 94 NOT BETWEEN NULL AND - + ( - col0 ) * - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT DISTINCT + - 12 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 37 * + 27, - CAST( NULL AS SIGNED ), + + col1, - col1 - col2 )
----

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT + - 12 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 37 * + 27, - CAST ( NULL AS INTEGER ), + + col1, - col1 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9966
SELECT MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= col0 * + col0 / - 6
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT DISTINCT + 41 AS col0, + MIN( - - col2 ) AS col0 FROM tab0
----
41
10

skipif mysql # not compatible
query II rowsort label-9968
SELECT DISTINCT + 41 AS col0, + MIN ( - - col2 ) AS col0 FROM tab0
----
41
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL + col0 + - + col0 DIV + + 63 AS col2 FROM tab2
----
46
63
74

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + col0 + - + col0 / + + 63 AS col2 FROM tab2
----
46
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT + COUNT( * ) + 44 AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT + COUNT ( * ) + 44 AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT + 17, col2 AS col0 FROM tab0 AS cor0
----
17
10
17
47
17
99

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 col0 FROM tab0 AS cor0
----
752
880
9702

query II rowsort
SELECT - 60 AS col1, - ( + 19 ) AS col1 FROM tab0 cor0
----
-60
-19
-60
-19
-60
-19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9977
SELECT + + 39, + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-9977
SELECT + + 39, + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
39
NULL
39
NULL
39
NULL

query II rowsort
SELECT DISTINCT + + col2, + ( + col0 ) AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 6 col2, col0 FROM tab0 AS cor0
----
-6
15
-6
87
-6
97

query I rowsort
SELECT ALL 81 * - col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 16 + + ( - 80 ) AS col1 FROM tab2
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col0 ) + + col1 + - - 9 * col0 * + - col2 col2 FROM tab1
----
-44101
-45215
-55736

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT + 64 + - 77 + + 36 + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-9983
SELECT + 64 + - 77 + + 36 + COUNT ( * ) FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - COUNT( DISTINCT + - 67 ) * + - 73 + - 60 FROM tab0, tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - COUNT ( DISTINCT + - 67 ) * + - 73 + - 60 FROM tab0, tab0 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 + col2 * - col0 - - - ( col2 ) + - + col2 * - 98 AND - 3
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 21 col1 FROM tab2 AS cor0
----
1218
483
840

query III rowsort
SELECT * FROM tab1 WHERE - 24 > - + 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 73
----

query I rowsort
SELECT ALL - - col0 * + col0 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 49 FROM tab2 AS cor0 WHERE - 88 <> - col1 + - col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT ALL CAST( + + 87 AS SIGNED ) FROM tab1 cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL CAST ( + + 87 AS INTEGER ) FROM tab1 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - - COUNT( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - - COUNT ( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT 3 * + COUNT( + 92 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9996
SELECT 3 * + COUNT ( + 92 ) FROM tab2
----
9

query I rowsort
SELECT ALL 9 * + - col1 FROM tab0
----
-189
-729
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9998
SELECT ( CAST( NULL AS SIGNED ) ) * - ( - 71 ) AS col2, ( + + 79 ) * col0 FROM tab1
----
NULL
4029
NULL
6715
NULL
7189

skipif mysql # not compatible
query II rowsort label-9998
SELECT ( CAST ( NULL AS INTEGER ) ) * - ( - 71 ) AS col2, ( + + 79 ) * col0 FROM tab1
----
NULL
4029
NULL
6715
NULL
7189

query I rowsort
SELECT DISTINCT 36 * + 67 FROM tab2
----
2412

