sqllogictest
Artifact Content
Not logged in

Artifact b9e1994a8e751cf7510e54357197aa1c0c3ebe4b:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 63 + + - col0 AS col0 FROM tab2
----
-1
-12
17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-1
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL )
----

query I rowsort
SELECT - 27 * + - ( col0 ) / + + 64 FROM tab0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT MAX( DISTINCT ( - - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3
SELECT MAX ( DISTINCT ( - - col0 ) ) FROM tab1
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT 24 - MAX( col0 ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-5
SELECT 24 - MAX ( col0 ) AS col2 FROM tab1
----
-67

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

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

query I rowsort
SELECT + + col2 * 13 - - col2 + - 49 FROM tab1 AS cor0
----
1295
777
903

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 DIV - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
8842
8919
8929

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
8842
8919
8929

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

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

query I rowsort
SELECT - - 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT DISTINCT 63 * - - COUNT( * ) col0 FROM tab1
----
189

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-13
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 41 AS col0 FROM tab1 WHERE NOT ( + 21 * + col1 * - 88 ) IS NULL
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-15
SELECT + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-16
SELECT ALL + - col0 AS col0, CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT + col0 DIV ( - 27 ) FROM tab1
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-19
SELECT + col0 / ( - 27 ) FROM tab1
----
-1
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col1 * + 7 col0 FROM tab2
----
-18207
-31423
-41503

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-21
SELECT col2 AS col0, + CAST ( NULL AS INTEGER ) + 95 * col1 col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

skipif mysql # not compatible
query I rowsort label-22
SELECT - col2 * col2 / + col2 FROM tab2
----
-23
-40
-58

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

skipif mysql # not compatible
query I rowsort label-23
SELECT + 14 * COUNT ( * ) FROM tab0
----
42

query I rowsort
SELECT DISTINCT - 34 * 46 * - ( 32 ) AS col1 FROM tab2
----
50048

query I rowsort
SELECT - col1 * + 96 AS col1 FROM tab1
----
-1344
-4512
-480

query II rowsort
SELECT - ( + col1 ) AS col1, - 21 * 39 AS col0 FROM tab1
----
-14
-819
-47
-819
-5
-819

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

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT + - col2 DIV 37 + col2 + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-28
SELECT + - col2 / 37 + col2 + col1 / + col1 AS col1 FROM tab1 AS cor0
----
59
68
95

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

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

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

query I rowsort
SELECT + 69 * - 70 FROM tab2 AS cor0
----
-4830
-4830
-4830

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-32
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + - CAST( + + 45 AS SIGNED ) * + col2 * col2 + - col2 IS NULL OR NOT - + 81 > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-32
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + - CAST ( + + 45 AS INTEGER ) * + col2 * col2 + - col2 IS NULL OR NOT - + 81 > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) <> ( 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT + + 14 - + - col1 DIV col2 DIV + - col1 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-35
SELECT + + 14 - + - col1 / col2 / + - col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT col1 - + col1 * col1 + + 48 + + col2 FROM tab0 cor0
----
-362
-6385
147

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT - - COUNT( * ) + - 66 + + 25 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - - COUNT ( * ) + - 66 + + 25 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT - + ( - + col2 ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

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

query I rowsort
SELECT DISTINCT col1 + + - 53 AS col2 FROM tab2
----
-2
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - COUNT( - col2 ) * + 60 + + MAX( ALL + 90 ) AS col2 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-41
SELECT - COUNT ( - col2 ) * + 60 + + MAX ( ALL + 90 ) AS col2 FROM tab0
----
-90

query I rowsort
SELECT + col1 + + + 89 + + + 75 FROM tab1
----
169
178
211

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT - COUNT( * ) - - 37 col2 FROM tab1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-43
SELECT DISTINCT - COUNT ( * ) - - 37 col2 FROM tab1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 73 + - - col1 DIV - col2 FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 73 + - - col1 / - col2 FROM tab1
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT DISTINCT ( + col2 ) * + 85 + col2 - - col2 DIV ( col0 ) AS col0 FROM tab0
----
4045
8515
860

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT ( + col2 ) * + 85 + col2 - - col2 / ( col0 ) AS col0 FROM tab0
----
4045
8515
860

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

query I rowsort
SELECT ALL - col2 * - - 10 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL COUNT( * ) + - 78 FROM tab2 cor0 WHERE NOT col0 NOT IN ( - - 26, - col2 )
----
-78

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL COUNT ( * ) + - 78 FROM tab2 cor0 WHERE NOT col0 NOT IN ( - - 26, - col2 )
----
-78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 55 + + 96
----

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

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

skipif mysql # not compatible
query I rowsort label-51
SELECT - - COUNT ( * ) * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT DISTINCT + - SUM( ALL col2 ) AS col2, 99 + COUNT( ALL - 28 ) AS col0 FROM tab2 AS cor0
----
-121
102

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT + - SUM ( ALL col2 ) AS col2, 99 + COUNT ( ALL - 28 ) AS col0 FROM tab2 AS cor0
----
-121
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + - col2, + col1 + + 46 + + col0 + - - col1 col2 FROM tab2 AS cor0
----
1600
264
3364
255
529
194

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT col0 * 97 DIV 10 * + + col1 * - + 93 * + col1 AS col1 FROM tab2 cor0
----
-107884278
-303505779
-341866140

skipif mysql # not compatible
query I rowsort label-54
SELECT col0 * 97 / 10 * + + col1 * - + 93 * + col1 AS col1 FROM tab2 cor0
----
-107884278
-303505779
-341866140

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

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT COUNT ( * ) * + - SUM ( + col1 ) FROM tab1 AS cor0
----
-198

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-61
SELECT MIN ( DISTINCT 81 ) FROM tab0
----
81

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

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

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

query I rowsort
SELECT DISTINCT 95 + + 69 FROM tab2 AS cor0
----
164

query I rowsort
SELECT ALL + 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + MIN( - + col1 ) * + 21 + + COUNT( * ) FROM tab2
----
-1614

skipif mysql # not compatible
query I rowsort label-66
SELECT + MIN ( - + col1 ) * + 21 + + COUNT ( * ) FROM tab2
----
-1614

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT 40 DIV + col0 + - + 78 FROM tab2 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-67
SELECT 40 / + col0 + - + 78 FROM tab2 AS cor0
----
-78
-78
-78

query II rowsort
SELECT ALL col2, col1 + col0 FROM tab2 AS cor0
----
23
97
40
141
58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT - 51 * + COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - 51 * + COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT + + col1 * + + 43 AS col2 FROM tab2 cor0
----
2193
2881
3311

query II rowsort
SELECT - 49 * - col2 AS col2, + 55 FROM tab0 AS cor0
----
2303
55
4851
55
490
55

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

query I rowsort
SELECT DISTINCT - 27 * - col2 * + col1 FROM tab2 cor0
----
104922
31671
83160

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT + COUNT( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT + COUNT ( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL >= + col1
----
0

query I rowsort
SELECT col2 - 84 AS col2 FROM tab1
----
-16
-25
12

query I rowsort
SELECT ALL - 40 + + + col0 + - + 1 - col2 AS col2 FROM tab0
----
-43
-73
36

query I rowsort
SELECT - col2 * - + col1 - - - col0 FROM tab1
----
1293
210
3105

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

query I rowsort
SELECT col2 - - 27 AS col0 FROM tab2
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - ( MIN( ALL col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-80
SELECT - ( MIN ( ALL col0 ) ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - COUNT( + - 86 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-81
SELECT - COUNT ( + - 86 ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 * - col1 + - + col1 * 99 AS col0 FROM tab0 AS cor0
----
-196
-3906
-9234

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

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

query II rowsort
SELECT DISTINCT - + col2 * - col0, - col0 - + 2 AS col0 FROM tab0 AS cor0
----
705
-17
870
-89
9603
-99

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

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

query II rowsort
SELECT ALL col2, - 59 FROM tab2
----
23
-59
40
-59
58
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-88
SELECT ALL col1 DIV + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL col1 / + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + 23 * - col0 + - 80 + col2 FROM tab0 AS cor0
----
-2071
-2212
-378

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-92
SELECT - CAST( + ( + + 67 ) AS SIGNED ), + col1 * + 78 AS col0 FROM tab0 AS cor0
----
-67
1638
-67
6318
-67
78

skipif mysql # not compatible
query II rowsort label-92
SELECT - CAST ( + ( + + 67 ) AS INTEGER ), + col1 * + 78 AS col0 FROM tab0 AS cor0
----
-67
1638
-67
6318
-67
78

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL IN ( - + col0, - col2, + col2, - - 53 + - 1, col0 )
----

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

query I rowsort
SELECT col1 * - + 57 FROM tab0
----
-1197
-4617
-57

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

query I rowsort
SELECT - 89 + + 43 * + col2 * + col1 FROM tab0 AS cor0
----
163612
4168
8941

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

query I rowsort
SELECT 32 * + col2 FROM tab2
----
1280
1856
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL - 18 - - CAST( - ( + col1 ) AS SIGNED ) + + 62 AS col2 FROM tab0 AS cor0
----
-37
23
43

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL - 18 - - CAST ( - ( + col1 ) AS INTEGER ) + + 62 AS col2 FROM tab0 AS cor0
----
-37
23
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-101
SELECT * FROM tab0 AS cor0 WHERE - col2 >= CAST( - 76 AS DECIMAL )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-101
SELECT * FROM tab0 AS cor0 WHERE - col2 >= CAST ( - 76 AS REAL )
----
15
81
47
87
21
10

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-102
SELECT ALL + MAX ( ALL 75 ) col0 FROM tab2 AS cor0
----
75

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

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

query I rowsort
SELECT - col2 + - + 25 AS col1 FROM tab0 cor0
----
-124
-35
-72

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

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

query I rowsort
SELECT - - col0 + 57 FROM tab0 AS cor0
----
144
154
72

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / 79 IS NULL
----

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

query I rowsort
SELECT ALL 94 * + 95 * - + col0 AS col2 FROM tab2
----
-410780
-571520
-669750

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT 93, MIN( ALL - - col2 ) + + + 83 col1 FROM tab0
----
93
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-112
SELECT 93, MIN ( ALL - - col2 ) + + + 83 col1 FROM tab0
----
93
93

query I rowsort
SELECT DISTINCT col2 * - 6 + 48 AS col1 FROM tab2 AS cor0
----
-192
-300
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT COUNT( DISTINCT - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-114
SELECT COUNT ( DISTINCT - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

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

query I rowsort
SELECT 27 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * col0, ( + col1 ) + + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + + 45 FROM tab1 AS cor0
----
2655
3060
4320

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

onlyif mysql # DIV for integer division: 
query II rowsort label-119
SELECT DISTINCT - + 6 DIV col2 * 93 AS col0, - 80 FROM tab0 AS cor0
----
0
-80

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT - + 6 / col2 * 93 AS col0, - 80 FROM tab0 AS cor0
----
0
-80

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

query I rowsort
SELECT ALL + col0 + - - 23 AS col2 FROM tab2
----
69
87
98

query I rowsort
SELECT DISTINCT 65 * - - 45 * - ( - col0 ) AS col2 FROM tab0
----
254475
283725
43875

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * + 46 col0 FROM tab2
----
782
782
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT DISTINCT CAST( + + 14 AS SIGNED ) * - ( + + col1 ) AS col2 FROM tab2
----
-1078
-714
-938

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT CAST ( + + 14 AS INTEGER ) * - ( + + col1 ) AS col2 FROM tab2
----
-1078
-714
-938

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 + + col1 + 79 / + 24 ) < NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * col0 * col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT ALL + 42 DIV + + col1 + 58 * col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + 42 / + + col1 + 58 * col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT DISTINCT col2 * + col1 * col1 - col1 AS col2 FROM tab0
----
308286
4389
98

query I rowsort
SELECT + - 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

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

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

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

skipif mysql # not compatible
query I rowsort label-135
SELECT - ( - - SUM ( DISTINCT + col0 ) ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - MIN( DISTINCT - 68 ) AS col2 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-136
SELECT - MIN ( DISTINCT - 68 ) AS col2 FROM tab2 cor0
----
68

query I rowsort
SELECT 36 * col1 FROM tab2 AS cor0
----
1836
2412
2772

query II rowsort
SELECT DISTINCT + ( - - col2 ) AS col0, 62 + - 20 FROM tab0 AS cor0
----
10
42
47
42
99
42

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 97 < - col1
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT - 81 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT - 81 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2, 80 FROM tab1
----
59
80
68
80
96
80

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT ( COUNT( - 30 ) ) AS col1 FROM tab0 WHERE NOT + 99 BETWEEN NULL AND + col0
----
3

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT ( COUNT ( - 30 ) ) AS col1 FROM tab0 WHERE NOT + 99 BETWEEN NULL AND + col0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-144
SELECT + 23 / + - col2 AS col1 FROM tab2
----
-1
0
0

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

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

query I rowsort
SELECT ALL + 62 * 49 AS col0 FROM tab1
----
3038
3038
3038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + 10 * + col0 * + 83 col1 FROM tab2 AS cor0
----
51
38180
67
62250
77
53120

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-149
SELECT - col1, + col1 DIV col0 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-149
SELECT - col1, + col1 / col0 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

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

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

query I rowsort
SELECT - 62 * - col0 * - col2 * - - col2 FROM tab2
----
-1508708
-15642600
-6348800

query I rowsort
SELECT ALL + + 12 * - 60 AS col2 FROM tab1 cor0
----
-720
-720
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - 28 + + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT - col0 * + col1 IS NOT NULL
----
-28

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT DISTINCT - + 86 + - - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-83

query III rowsort
SELECT * FROM tab1 WHERE col1 + + 96 * col0 >= NULL
----

query I rowsort
SELECT ALL - 61 + + col2 - - 94 FROM tab2
----
56
73
91

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

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

query I rowsort
SELECT DISTINCT col1 + - col0 + 34 AS col2 FROM tab2
----
26
39
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
14
47
5

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

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

query II rowsort
SELECT ALL col2 + + 79, - col0 AS col2 FROM tab2
----
102
-46
119
-64
137
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-163
SELECT ALL - COUNT( * ) AS col0, MIN( - 8 ) + - COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9
-17

skipif mysql # not compatible
query II rowsort label-163
SELECT ALL - COUNT ( * ) AS col0, MIN ( - 8 ) + - COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT COUNT( * ) DIV - 21 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-165
SELECT COUNT ( * ) / - 21 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col2 * 9 * - col2 FROM tab1 AS cor0
----
31329
41616
82944

query II rowsort
SELECT DISTINCT col0 AS col2, 5 * + - 69 FROM tab1
----
51
-345
85
-345
91
-345

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

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

query II rowsort
SELECT DISTINCT - 19, - col0 + + col2 + + 95 AS col1 FROM tab1 cor0
----
-19
140
-19
69
-19
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-171
SELECT + ( - CAST( col1 AS SIGNED ) ) * + col1 AS col2, - 2 FROM tab2 cor0
----
-2601
-2
-4489
-2
-5929
-2

skipif mysql # not compatible
query II rowsort label-171
SELECT + ( - CAST ( col1 AS INTEGER ) ) * + col1 AS col2, - 2 FROM tab2 cor0
----
-2601
-2
-4489
-2
-5929
-2

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

onlyif mysql # DIV for integer division: 
query II rowsort label-173
SELECT ALL + col0, - 48 + + col0 DIV + - col1 AS col2 FROM tab0 AS cor0
----
15
-48
87
-52
97
-145

skipif mysql # not compatible
query II rowsort label-173
SELECT ALL + col0, - 48 + + col0 / + - col1 AS col2 FROM tab0 AS cor0
----
15
-48
87
-52
97
-145

query I rowsort
SELECT 78 * - col2 * + col1 FROM tab1
----
-104832
-23010
-249288

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT + col2 / + + col1 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL 26 + - col0 * - 94 AS col1 FROM tab1
----
4820
8016
8580

query I rowsort
SELECT ALL - 67 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT 13 + + 77 FROM tab1
----
90
90
90

query I rowsort
SELECT + + 6 * - + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
-191
-33
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 48 col0 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT - 41 DIV - - col0 + 1 col0 FROM tab0 cor0
----
-1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT - 41 / - - col0 + 1 col0 FROM tab0 cor0
----
-1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-184
SELECT - 71 + + 59 DIV - COUNT( * ), - COUNT( * ) col1 FROM tab1 AS cor0
----
-90
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-184
SELECT - 71 + + 59 / - COUNT ( * ), - COUNT ( * ) col1 FROM tab1 AS cor0
----
-90
-3

query I rowsort
SELECT - col1 * - + col2 - + - col1 + - + 28 AS col1 FROM tab1 AS cor0
----
1330
272
3215

query I rowsort
SELECT DISTINCT 56 + + ( 47 ) FROM tab1 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT ALL col0 DIV - col1 + - + col2 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL col0 / - col1 + - + col2 FROM tab0
----
-14
-196
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT - col2 * col1 DIV 65 * col0 AS col0 FROM tab0
----
-261
-870
-97

skipif mysql # not compatible
query I rowsort label-188
SELECT - col2 * col1 / 65 * col0 AS col0 FROM tab0
----
-261
-870
-97

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

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

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

query II rowsort
SELECT ALL - 35, col1 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - 87 - + + COUNT( * ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-192
SELECT - 87 - + + COUNT ( * ) FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-193
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + 83 - - + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
170
180
98

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

skipif mysql # not compatible
query II rowsort label-195
SELECT + + ( + + 42 ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
42
3

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT ALL - 33 DIV + 61 + + ( + 36 ) * col2 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - 33 / + 61 + + ( + 36 ) * col2 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 83 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL - SUM( - col2 ) DIV COUNT( - col0 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - SUM ( - col2 ) / COUNT ( - col0 ) FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * + col1 col1 FROM tab2
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT ( MAX( col2 ) ) * COUNT( * ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT ( MAX ( col2 ) ) * COUNT ( * ) AS col1 FROM tab1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-201
SELECT COUNT( * ) / + SUM( - 30 ) + ( - COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0 WHERE + 64 + CAST( NULL AS SIGNED ) * - col0 BETWEEN ( col1 ) AND + ( - col2 ) + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-201
SELECT COUNT ( * ) / + SUM ( - 30 ) + ( - COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0 WHERE + 64 + CAST ( NULL AS INTEGER ) * - col0 BETWEEN ( col1 ) AND + ( - col2 ) + col0
----
NULL

query I rowsort
SELECT col0 * 47 + + col1 FROM tab2
----
2213
3085
3592

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

query I rowsort
SELECT ALL + col1 * - 67 FROM tab2
----
-3417
-4489
-5159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-205
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-205
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - 92 * - 68 FROM tab2
----
6256

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

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

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

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

query I rowsort
SELECT 70 + - col1 AS col0 FROM tab0
----
-11
49
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT - CAST( 30 AS SIGNED ) FROM tab1
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-211
SELECT - CAST ( 30 AS INTEGER ) FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT 16 * + ( 83 ) FROM tab1
----
1328

query III rowsort
SELECT * FROM tab1 WHERE NOT - 28 / ( 92 ) < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT 32 DIV + col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-215
SELECT 32 / + col1 FROM tab1
----
0
2
6

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

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

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

skipif mysql # not compatible
query I rowsort label-217
SELECT 37 + + CAST ( + COUNT ( DISTINCT + col2 ) AS INTEGER ) FROM tab2
----
40

query I rowsort
SELECT ALL + 12 + - 56 AS col2 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT ALL col1 + - col0 * + col0 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT + COUNT( + col2 ) AS col1 FROM tab1 WHERE 81 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT + COUNT ( + col2 ) AS col1 FROM tab1 WHERE 81 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT COUNT( * ) * 63 col1 FROM tab2
----
189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT COUNT( * ) * + 39 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-223
SELECT COUNT ( * ) * + 39 FROM tab1
----
117

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

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

query I rowsort
SELECT DISTINCT 4 * ( 55 ) FROM tab0
----
220

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

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

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 AS cor0 WHERE NOT 40 * 39 IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2 * col2 + 66 )
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT 74 DIV + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT 74 / + col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-232
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + - 8 * - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + - 8 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 75 * - 74 FROM tab0 AS cor0
----
5550
5550
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + 56 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + 56 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL + MIN( ALL col2 ) * 66 FROM tab2
----
1518

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + MIN ( ALL col2 ) * 66 FROM tab2
----
1518

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

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

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) = NULL
----

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

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

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

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

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

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

query I rowsort
SELECT - col1 * + ( + ( + col1 ) ) AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + col1 * - col1 + 73 AS col1 FROM tab0 WHERE NOT + col1 IN ( col2 )
----
-368
-6488
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT - col0 * - CAST( NULL AS SIGNED ) - col1 / col0 FROM tab1 WHERE NOT NULL > + col0
----

skipif mysql # not compatible
query I rowsort label-245
SELECT - col0 * - CAST ( NULL AS INTEGER ) - col1 / col0 FROM tab1 WHERE NOT NULL > + col0
----

query I rowsort
SELECT DISTINCT - col1 * + 89 AS col2 FROM tab0
----
-1869
-7209
-89

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 87 <> col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-249
SELECT col1 FROM tab1 WHERE NOT NULL >= CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-249
SELECT col1 FROM tab1 WHERE NOT NULL >= CAST ( - col0 AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 - + col2 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT ALL 57 + - 2 DIV + MAX( 19 * col0 ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL 57 + - 2 / + MAX ( 19 * col0 ) AS col1 FROM tab1 AS cor0
----
57

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

query I rowsort
SELECT DISTINCT + col1 * - col1 + - + col1 * - 12 FROM tab1
----
-1645
-28
35

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 2 + + COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-256
SELECT 2 + + COUNT ( * ) FROM tab2
----
5

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

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT 91 + + col0 * col2 FROM tab1 AS cor0
----
4987
5106
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col1 FROM tab1 AS cor0 WHERE NOT 61 BETWEEN ( - col1 * 10 ) AND ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-260
SELECT - + COUNT ( * ) + - COUNT ( * ) + - + 16 AS col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT - - 62 + 91 FROM tab2 AS cor0
----
153
153
153

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

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

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

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

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

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

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

query I rowsort
SELECT - col1 * - col0 + col2 + 18 AS col2 FROM tab2 AS cor0
----
2387
4986
5101

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

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) * 76 + + col0 FROM tab1 AS cor0
----
-1013
-295
-3481

query I rowsort
SELECT - 66 + + 21 FROM tab2 cor0 WHERE NULL IS NULL
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - col0 * + - col1 + + col1 + + col1 FROM tab1 AS cor0
----
435
4371
742

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

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

skipif mysql # not compatible
query I rowsort label-272
SELECT - - COUNT ( * ) AS col1 FROM tab1 WHERE + + col2 IS NULL
----
0

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

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

query I rowsort
SELECT + col0 - + 12 - 12 FROM tab1
----
27
61
67

query I rowsort
SELECT ALL 66 - + 84 * - col1 AS col2 FROM tab0
----
150
1830
6870

query I rowsort
SELECT col0 - + ( - ( col0 ) ) FROM tab1
----
102
170
182

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + col2 + 95 + - - col2 + col1 * - col1 ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT DISTINCT 52 * + CAST( + 16 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
11648
39104
4160

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 52 * + CAST ( + 16 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
11648
39104
4160

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 95 ) AND 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 * col2 AND ( - col1 * - col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT 84 * + 4 AS col0 FROM tab1
----
336

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT - - COUNT( * ) * - - MAX( DISTINCT ( - col2 ) ) * + COUNT( * ) FROM tab2 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT - - COUNT ( * ) * - - MAX ( DISTINCT ( - col2 ) ) * + COUNT ( * ) FROM tab2 cor0
----
-207

query I rowsort
SELECT - 79 * col0 AS col1 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT 64 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT - 69 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-289
SELECT 64 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT - 69 + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-290
SELECT DISTINCT col2 / - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT col2 / - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2 cor0
----
53

query I rowsort
SELECT + ( - - col2 ) * ( - 86 ) + + 91 AS col2 FROM tab1 cor0
----
-4983
-5757
-8165

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT ALL + col1 / - 96 * col1 + col2 + - col0 col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col2 * + + 41 AS col0 FROM tab0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + 91 * SUM( - + 57 ) col1 FROM tab2
----
-15561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-295
SELECT + 91 * SUM ( - + 57 ) col1 FROM tab2
----
-15561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 66 col2 FROM tab2
----
-3036
-4224
-4950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT DISTINCT SUM( + - 64 ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT SUM ( + - 64 ) FROM tab1 AS cor0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 + - col2 + - col2 + 66 * - col2 + col2 col2 FROM tab0 AS cor0
----
-3157
-6641
-678

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

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

skipif mysql # not compatible
query I rowsort label-301
SELECT + 9 + + - CAST ( NULL AS REAL ) / - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-302
SELECT ALL + 26 + + col1 * - + col2 + + col0, + col2 * + CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab0 AS cor0
----
-3766
NULL
-97
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-302
SELECT ALL + 26 + + col1 * - + col2 + + col0, + col2 * + CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab0 AS cor0
----
-3766
NULL
-97
NULL
24
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE - col2 * - - col0 > col1 * + col1 - + 42
----

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT ALL + 1 + + COUNT( * ) DIV + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + 1 + + COUNT ( * ) / + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + COUNT( + 73 ) - + 75 AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-306
SELECT + COUNT ( + 73 ) - + 75 AS col0 FROM tab0 AS cor0
----
-72

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

query I rowsort
SELECT col0 * + + 27 - - 80 AS col0 FROM tab0 AS cor0
----
2429
2699
485

query I rowsort
SELECT ALL + 85 - 95 * + - col2 - - col2 AS col0 FROM tab1 AS cor0
----
5749
6613
9301

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab2 AS cor0 WHERE NOT NULL = 58 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-312
SELECT + col2 * 79 + - 19 + + col0 + - 52 + - 34 + - + CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT + col2 * 79 + - 19 + + col0 + - 52 + - 34 + - + CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col0 + + col0 * - col0 * - col1 + + 28 + + 69 * - 77 AS col0 FROM tab2 AS cor0
----
103689
312667
375940

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

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

query I rowsort
SELECT 32 + ( - col1 ) FROM tab2 AS cor0
----
-19
-35
-45

query I rowsort
SELECT - + 62 + - col1 FROM tab1 cor0
----
-109
-67
-76

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-318
SELECT ( - 69 ) + + 78 * - CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-318
SELECT ( - 69 ) + + 78 * - CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + ( + 7 ) * - + 92 * + col2 FROM tab0
----
-30221
-63657
-6430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + - ( + 57 ) * + 99 col2, col1 FROM tab1
----
-265221
47
-28215
5
-79002
14

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

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT MAX ( - - 14 ) AS col1 FROM tab2 AS cor0
----
14

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

skipif mysql # not compatible
query I rowsort label-322
SELECT + - SUM ( ALL - - 32 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col1 * + - col2 + - - col0 FROM tab2 cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT - MIN( 62 ) col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-324
SELECT - MIN ( 62 ) col2 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT 88 * - col2 FROM tab2 AS cor0
----
-2024
-3520
-5104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-326
SELECT * FROM tab1 WHERE NOT ( + 39 + + - 25 * - CAST( NULL AS SIGNED ) * - 17 ) <> - col2 + col0
----

skipif mysql # not compatible
query III rowsort label-326
SELECT * FROM tab1 WHERE NOT ( + 39 + + - 25 * - CAST ( NULL AS INTEGER ) * - 17 ) <> - col2 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + + + MAX( DISTINCT col1 ) FROM tab2 WHERE NOT - col2 BETWEEN - col1 AND ( + + col1 / - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + + MAX ( DISTINCT col1 ) FROM tab2 WHERE NOT - col2 BETWEEN - col1 AND ( + + col1 / - + col0 )
----
NULL

query I rowsort
SELECT 86 * 33 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 04a6b349bddaf97d623420efa7c0ba8f

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

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - SUM( 84 ) AS col0 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-332
SELECT - SUM ( 84 ) AS col0 FROM tab2 AS cor0
----
-252

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-335
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-335
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col1 + - col1 > col2
----
-15
-87
-97

query I rowsort
SELECT ALL 91 FROM tab0 WHERE + col0 IN ( - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT DISTINCT + col0 DIV 63 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT + col0 / 63 AS col0 FROM tab1
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-340
SELECT + col1 DIV - CAST( + 18 AS SIGNED ) FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-340
SELECT + col1 / - CAST ( + 18 AS INTEGER ) FROM tab2
----
-2
-3
-4

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

skipif mysql # not compatible
query I rowsort label-341
SELECT col2 / - - 66 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT - ( - + SUM( ALL + 68 ) ) FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT - ( - + SUM ( ALL + 68 ) ) FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 87 + + - col0 + - ( - 44 ) + 88 AS col2 FROM tab0 AS cor0
----
-42
-52
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + 61 col1 FROM tab2
----
-15
14
3

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

skipif mysql # not compatible
query III rowsort label-345
SELECT ALL * FROM tab2 WHERE + CAST ( - 37 AS INTEGER ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * 10 <= 60 + 13 * + col2 * + col2
----

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

query I rowsort
SELECT DISTINCT 62 - + ( 94 ) + + - col0 AS col1 FROM tab0 AS cor0
----
-119
-129
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT DISTINCT - + SUM( DISTINCT - col0 ) + 51 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - col0 + - - 6 / - col1 + - col0 + + col0 + - 81 / + col1 ) = ( col0 ) )
----

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

query II rowsort
SELECT 99 * + col1, - col0 * 99 AS col0 FROM tab1
----
1386
-5049
4653
-9009
495
-8415

query I rowsort
SELECT - ( - 81 ) AS col2 FROM tab1
----
81
81
81

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

skipif mysql # not compatible
query II rowsort label-357
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0, - 21 AS col0 FROM tab2
----
1
-21

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + - SUM( ALL 56 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-359
SELECT + - SUM ( ALL 56 ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT - - 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - MAX ( - 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 cor0
----
-59

query I rowsort
SELECT DISTINCT - 20 + - col2 AS col0 FROM tab2 cor0
----
-43
-60
-78

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - - col1 * + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-25075
-290836
-68544

query I rowsort
SELECT + col0 + + 49 FROM tab1
----
100
134
140

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT + SUM( DISTINCT - 10 ) * - 96 + + ( - + 47 ) AS col0 FROM tab0 AS cor0
----
913

skipif mysql # not compatible
query I rowsort label-372
SELECT + SUM ( DISTINCT - 10 ) * - 96 + + ( - + 47 ) AS col0 FROM tab0 AS cor0
----
913

query I rowsort
SELECT DISTINCT + 80 + col2 FROM tab1 cor0
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT + COUNT( - 96 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 - + col0 AND + 50
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT + COUNT ( - 96 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 - + col0 AND + 50
----
0

query I rowsort
SELECT ALL + ( + - 26 ) + - col2 FROM tab0 AS cor0
----
-125
-36
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT ( - COUNT( * ) ) - - 49 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT ( - COUNT ( * ) ) - - 49 FROM tab2
----
46

query I rowsort
SELECT ALL 34 - + 5 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT - col0 + - 45 * + 43 AS col1 FROM tab0 cor0
----
-1950
-2022
-2032

query I rowsort
SELECT DISTINCT - 77 * - + col0 AS col1 FROM tab1 AS cor0
----
3927
6545
7007

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT + 24 DIV + + 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-382
SELECT + 24 / + + 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 7 * - 89 FROM tab1 AS cor0
----
623

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT - SUM( - col1 ) * - 5 AS col0 FROM tab0
----
-515

skipif mysql # not compatible
query I rowsort label-385
SELECT - SUM ( - col1 ) * - 5 AS col0 FROM tab0
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT MAX( + col0 ) * - COUNT( * ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT MAX ( + col0 ) * - COUNT ( * ) AS col1 FROM tab2
----
-225

query I rowsort
SELECT ALL col1 * + - 18 + + col0 - + ( + col2 ) + col1 FROM tab1 WHERE - col1 / col0 IS NOT NULL
----
-283
-59
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + - col1 col2, - col1 * + col2 AS col2 FROM tab1 WHERE NOT NULL IN ( 75 + + col0 )
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-390
SELECT + COUNT( * ) AS col2, 84 FROM tab0
----
3
84

skipif mysql # not compatible
query II rowsort label-390
SELECT + COUNT ( * ) AS col2, 84 FROM tab0
----
3
84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT + - COUNT( * ) * 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-882

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT + - COUNT ( * ) * 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-882

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 21 * 75 AND 63
----

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

query I rowsort
SELECT + col2 + - + col0 + + 46 AS col0 FROM tab1 AS cor0
----
20
23
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 86 ) <= - col0
----

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

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

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

query I rowsort
SELECT ALL - col0 + col1 * col2 + - - col2 AS col2 FROM tab2
----
1150
3056
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT - MAX( ALL - 89 ) col1 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-402
SELECT DISTINCT - MAX ( ALL - 89 ) col1 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - SUM( 60 ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-403
SELECT - SUM ( 60 ) FROM tab0
----
-180

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab1 WHERE - 30 = NULL
----

query I rowsort
SELECT + ( + 54 ) FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT col2 * 51 + + col1 AS col0 FROM tab0
----
2478
5050
531

query I rowsort
SELECT - ( 96 ) AS col1 FROM tab1
----
-96
-96
-96

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT DISTINCT + COUNT( * ) AS col1, + MIN( ALL + - 84 ) FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT DISTINCT + COUNT ( * ) AS col1, + MIN ( ALL + - 84 ) FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT DISTINCT + + 40 * + 60 * - col1 FROM tab0 AS cor0
----
-194400
-2400
-50400

query I rowsort
SELECT - 61 - + 42 FROM tab1 AS cor0
----
-103
-103
-103

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

query I rowsort
SELECT col0 + 53 AS col1 FROM tab1 AS cor0
----
104
138
144

query I rowsort
SELECT ALL 36 * + - 72 + + col2 FROM tab0
----
-2493
-2545
-2582

query I rowsort
SELECT ALL + 45 * 30 + + 2 AS col2 FROM tab0
----
1352
1352
1352

query I rowsort
SELECT DISTINCT col1 + - 76 AS col2 FROM tab2
----
-25
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT + - COUNT( * ) FROM tab1 WHERE + 45 <> - + col1
----
-3

skipif mysql # not compatible
query I rowsort label-418
SELECT + - COUNT ( * ) FROM tab1 WHERE + 45 <> - + col1
----
-3

query I rowsort
SELECT - - 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

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

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

query I rowsort
SELECT + + 16 AS col1 FROM tab2 AS cor0 WHERE NOT - 21 NOT BETWEEN NULL AND 55 * + col2 - 74 + + 12
----

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

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

query I rowsort
SELECT + 99 * - - ( + - 53 ) FROM tab1
----
-5247
-5247
-5247

query II rowsort
SELECT ALL 68 AS col1, 60 FROM tab0
----
68
60
68
60
68
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) + col2 col0 FROM tab0 WHERE NOT - 85 IS NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT 80 * + 90 AS col2 FROM tab1
----
7200

query I rowsort
SELECT ALL + 89 * + - col0 AS col2 FROM tab0 AS cor0
----
-1335
-7743
-8633

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT 38 DIV - 20 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT 38 / - 20 FROM tab1 AS cor0
----
-1

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

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

query I rowsort
SELECT - col1 * col1 * - 84 AS col1 FROM tab2
----
218484
377076
498036

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

skipif mysql # not compatible
query I rowsort label-433
SELECT 4 / - - 64 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

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

skipif mysql # not compatible
query I rowsort label-434
SELECT + - COUNT ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE + ( - + col1 ) IS NOT NULL
----
-3

query I rowsort
SELECT - col2 + + col2 + - + col0 - col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL + 82 * 26 + - col0 AS col0 FROM tab0
----
2035
2045
2117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-437
SELECT DISTINCT + col0 + + col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-437
SELECT DISTINCT + col0 + + col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
108
NULL
96
NULL
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL - COUNT( - col2 ) * - + MIN( DISTINCT - 69 ) + - 27 + 85 AS col0 FROM tab1
----
-149

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - COUNT ( - col2 ) * - + MIN ( DISTINCT - 69 ) + - 27 + 85 AS col0 FROM tab1
----
-149

query II rowsort
SELECT - + 40, + 6 FROM tab2 AS cor0 WHERE NULL >= - col2
----

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

query I rowsort
SELECT ALL - 81 * col0 AS col2 FROM tab2 AS cor0
----
-3726
-5184
-6075

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

query I rowsort
SELECT + col0 * - + col2 * - 13 * 9 AS col1 FROM tab1 cor0
----
572832
586755
723996

query II rowsort
SELECT - - 83 AS col0, 53 FROM tab2 AS cor0
----
83
53
83
53
83
53

query I rowsort
SELECT col1 * - 14 * - col1 FROM tab2 AS cor0
----
36414
62846
83006

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

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

query II rowsort
SELECT DISTINCT col1, col2 + 93 + - col0 AS col1 FROM tab0 AS cor0
----
1
95
21
16
81
125

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

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT + ( - col2 ) DIV 32 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-449
SELECT + ( - col2 ) / 32 FROM tab2
----
-1
-1
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + 19 / - + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL + 27 + - col1 FROM tab2 AS cor0
----
-24
-40
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - + SUM( ALL 15 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-135

skipif mysql # not compatible
query I rowsort label-454
SELECT - + SUM ( ALL 15 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT + 7 DIV + col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 7 / + col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + COUNT( DISTINCT + col0 ) * - COUNT( * ) + + + 15 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-456
SELECT + COUNT ( DISTINCT + col0 ) * - COUNT ( * ) + + + 15 FROM tab2 AS cor0
----
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT ALL - + col2 + col1 DIV + - col2 * - 21 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL - + col2 + col1 / + - col2 * - 21 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT - 60 * + SUM( + col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT - 60 * + SUM ( + col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 93 + 93 + 7 FROM tab2 AS cor0
----
193
193
193

query I rowsort
SELECT - + col0 * - + col1 + - - 96 + + col0 FROM tab0 cor0
----
1326
2010
290

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

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

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 69 + + - col2 FROM tab1
----
-1062
-3311
-404

query II rowsort
SELECT DISTINCT col1, col0 FROM tab0 WHERE - - col2 IS NOT NULL
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-465
SELECT ALL 23 AS col1, MAX( DISTINCT + col2 ) DIV COUNT( * ) * - - COUNT( * ) FROM tab2
----
23
57

skipif mysql # not compatible
query II rowsort label-465
SELECT ALL 23 AS col1, MAX ( DISTINCT + col2 ) / COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
23
57

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT 31 - + - ( COUNT( * ) ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-466
SELECT 31 - + - ( COUNT ( * ) ) AS col1 FROM tab1
----
34

query I rowsort
SELECT col1 * + col0 - + + col2 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT COUNT( * ) - + + 24 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-468
SELECT COUNT ( * ) - + + 24 FROM tab2
----
-21

query I rowsort
SELECT - col0 * + col1 - + + col2 AS col0 FROM tab2
----
-2369
-4968
-5083

query III rowsort
SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0
----
9 values hashing to 8082ccffdb9edbd3a700426f3dc13a08

query I rowsort
SELECT 15 - + col1 + + + col1 AS col2 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT - + col1 - + - ( - col1 ) FROM tab1 AS cor0
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - + col1 + - - col2 + col2 AS col2, ( col2 ) col2 FROM tab2 AS cor0
----
2647
23
4605
58
6009
40

query II rowsort
SELECT ALL + + col0 AS col1, 70 * - col2 AS col0 FROM tab2 AS cor0
----
46
-1610
64
-2800
75
-4060

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT - COUNT( ALL - - 76 ) DIV - 22 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-478
SELECT - COUNT ( ALL - - 76 ) / - 22 AS col1 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT ALL - 38 AS col0 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT col0 * - + 58 AS col2 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT - 87 * - col1 FROM tab2
----
4437
5829
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT + 54 * - - col1 DIV + 1 AS col2 FROM tab2
----
2754
3618
4158

skipif mysql # not compatible
query I rowsort label-483
SELECT + 54 * - - col1 / + 1 AS col2 FROM tab2
----
2754
3618
4158

query I rowsort
SELECT col0 * - + col1 * + col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query II rowsort label-485
SELECT ALL 68 AS col2, + MAX( ALL + col2 ) FROM tab2 AS cor0
----
68
58

skipif mysql # not compatible
query II rowsort label-485
SELECT ALL 68 AS col2, + MAX ( ALL + col2 ) FROM tab2 AS cor0
----
68
58

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

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

query I rowsort
SELECT - col1 * - 39 + + 89 AS col0 FROM tab0 AS cor0
----
128
3248
908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 12 + - + col1 col0 FROM tab0 AS cor0
----
-112
-140
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + + + 60 - + + 42 * + - 48 AS col2 FROM tab1
----
2073

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + + + 60 - + + 42 * + - 48 AS col2 FROM tab1
----
2073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT col1 + - col2 - + CAST( col2 AS SIGNED ) * - col1 FROM tab1
----
1262
241
3175

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT col1 + - col2 - + CAST ( col2 AS INTEGER ) * - col1 FROM tab1
----
1262
241
3175

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT DISTINCT 91 * COUNT( DISTINCT - + 45 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT 91 * COUNT ( DISTINCT - + 45 ) FROM tab2
----
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT col0 + + col1 DIV + + col2 FROM tab0 cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-495
SELECT col0 + + col1 / + + col2 FROM tab0 cor0
----
16
89
97

query II rowsort
SELECT + col2 + ( - - col0 ) * + + 38, col0 FROM tab2 AS cor0
----
1771
46
2472
64
2908
75

query I rowsort
SELECT 3 + + col0 AS col2 FROM tab1
----
54
88
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL COUNT( * ) * + 48 * - COUNT( * ) + - - 0 * + 44 - + COUNT( * ) + + CAST( NULL AS SIGNED ) - + - 46 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL COUNT ( * ) * + 48 * - COUNT ( * ) + - - 0 * + 44 - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + - 46 FROM tab2
----
NULL

query I rowsort
SELECT ( - 66 ) + - ( - col1 ) FROM tab2
----
-15
1
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 = - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 + + 0 FROM tab1
----
44
44
44

query I rowsort
SELECT ALL + col0 + + 65 FROM tab2
----
111
129
140

query I rowsort
SELECT DISTINCT col2 - + 34 AS col0 FROM tab0
----
-24
13
65

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

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

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

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

query I rowsort
SELECT DISTINCT - 57 - - - col2 AS col2 FROM tab2
----
-115
-80
-97

query I rowsort
SELECT ALL + col0 + + + 14 FROM tab2
----
60
78
89

query I rowsort
SELECT ALL + + 57 * - 7 * - col2 FROM tab0 cor0
----
18753
39501
3990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + - MIN( 73 ) col2 FROM tab2 cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-511
SELECT + - MIN ( 73 ) col2 FROM tab2 cor0
----
-73

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

query II rowsort
SELECT ALL + col1 * - col1, + 50 AS col0 FROM tab1
----
-196
50
-2209
50
-25
50

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

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

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-516
SELECT col2 / 63 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 82 FROM tab1 AS cor0
----
59
82
68
82
96
82

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE + col2 > NULL
----

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

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

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

query I rowsort
SELECT 22 + - col1 AS col1 FROM tab1 AS cor0
----
-25
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL - 2 / - - CAST( NULL AS SIGNED ) + + - 77 * + col0 * + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - 2 / - - CAST ( NULL AS INTEGER ) + + - 77 * + col0 * + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT COUNT( ALL col0 ) + - MAX( DISTINCT ( + - ( - + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-524
SELECT COUNT ( ALL col0 ) + - MAX ( DISTINCT ( + - ( - + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT DISTINCT SUM( + 3 ), + 33 AS col0 FROM tab2
----
9
33

skipif mysql # not compatible
query II rowsort label-525
SELECT DISTINCT SUM ( + 3 ), + 33 AS col0 FROM tab2
----
9
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT DISTINCT 80 * COUNT( * ) + + + CAST( 32 AS SIGNED ) * - ( + 16 ) col2 FROM tab1
----
-272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-527
SELECT DISTINCT 80 * COUNT ( * ) + + + CAST ( 32 AS INTEGER ) * - ( + 16 ) col2 FROM tab1
----
-272

query I rowsort
SELECT ALL + col2 + + + col0 AS col1 FROM tab1
----
144
147
159

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

skipif mysql # not compatible
query I rowsort label-529
SELECT COUNT ( * ) / - 34 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT + CAST( + 30 AS SIGNED ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + CAST ( + 30 AS INTEGER ) AS col0 FROM tab2
----
30

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

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

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

query I rowsort
SELECT - + 35 + + col0 AS col0 FROM tab0 AS cor0
----
-20
52
62

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

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

query I rowsort
SELECT DISTINCT 13 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
13

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

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

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

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

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

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

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

query II rowsort
SELECT ( col0 ) * + col2 - col2, col0 * col1 AS col2 FROM tab1 AS cor0
----
4800
714
4956
425
6120
4277

query II rowsort
SELECT col1 * col2 - col1, + col1 FROM tab1 AS cor0 WHERE NULL <> 62 * + col0
----

query I rowsort
SELECT ALL - 50 * + col2 FROM tab2 cor0
----
-1150
-2000
-2900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + COUNT( col0 ) + - - COUNT( * ) * + ( + COUNT( DISTINCT col2 ) ) * + + ( + COUNT( * ) ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + COUNT ( col0 ) + - - COUNT ( * ) * + ( + COUNT ( DISTINCT col2 ) ) * + + ( + COUNT ( * ) ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT DISTINCT - SUM( + 11 ) * + - COUNT( * ) * - - 77 + 83 AS col2 FROM tab2
----
7706

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT - SUM ( + 11 ) * + - COUNT ( * ) * - - 77 + 83 AS col2 FROM tab2
----
7706

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL SUM( - - 97 ) + + + 17 - - 0 FROM tab0
----
308

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL SUM ( - - 97 ) + + + 17 - - 0 FROM tab0
----
308

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT - 73 DIV + - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-547
SELECT - 73 / + - col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + SUM( DISTINCT col0 ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-548
SELECT + SUM ( DISTINCT col0 ) col0 FROM tab2
----
185

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col2 + 6 <= + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL COUNT( * ) + + 52 FROM tab2 AS cor0 WHERE ( 76 ) + col1 - + + col1 IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL COUNT ( * ) + + 52 FROM tab2 AS cor0 WHERE ( 76 ) + col1 - + + col1 IS NULL
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 * - - col1 col0 FROM tab1 AS cor0
----
1386
4653
495

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 / + + col0 * col0 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 54 AND col1 * + 25 * + ( - col0 ) + - ( + col0 ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT DISTINCT - col1 DIV + ( - + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - col1 / + ( - + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
53
68
78

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

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

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

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

query I rowsort
SELECT DISTINCT ( + - 22 ) AS col1 FROM tab0
----
-22

query I rowsort
SELECT col2 + + 69 AS col2 FROM tab0
----
116
168
79

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - MAX( + 19 ) + - - COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-559
SELECT - MAX ( + 19 ) + - - COUNT ( * ) FROM tab2
----
-16

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

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

query I rowsort
SELECT - - 82 + + 8 FROM tab0 AS cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - - 21, col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-565
SELECT col2 DIV + CAST( col1 AS SIGNED ) + col0 * + 77 AS col2 FROM tab2 AS cor0
----
3542
4928
5775

skipif mysql # not compatible
query I rowsort label-565
SELECT col2 / + CAST ( col1 AS INTEGER ) + col0 * + 77 AS col2 FROM tab2 AS cor0
----
3542
4928
5775

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

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

query I rowsort
SELECT + ( ( - col0 ) ) - - 99 FROM tab0 cor0
----
12
2
84

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

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

query II rowsort
SELECT DISTINCT - col0 * - 55, + col0 FROM tab1 AS cor0
----
2805
51
4675
85
5005
91

query I rowsort
SELECT + 91 + - - 52 FROM tab0 AS cor0
----
143
143
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE ( NOT col2 * - ( 52 ) IS NULL )
----
15
87
97

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

query I rowsort
SELECT 3 * - col2 FROM tab0
----
-141
-297
-30

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

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

query II rowsort
SELECT DISTINCT - 41 AS col0, col0 AS col0 FROM tab2
----
-41
46
-41
64
-41
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * + col2 * + 90 col2 FROM tab1
----
-254880
-293760
-414720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-577
SELECT DISTINCT * FROM tab1 WHERE + - col1 >= CAST( NULL AS SIGNED ) - - col0
----

skipif mysql # not compatible
query III rowsort label-577
SELECT DISTINCT * FROM tab1 WHERE + - col1 >= CAST ( NULL AS INTEGER ) - - col0
----

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

skipif mysql # not compatible
query III rowsort label-578
SELECT ALL * FROM tab0 AS cor0 WHERE 3 * - + ( col2 ) - - + col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

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

query I rowsort
SELECT + col0 * + 64 AS col1 FROM tab0 cor0
----
5568
6208
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT ALL CAST( + + 11 AS SIGNED ) * - 49 + + - ( - col2 ) FROM tab2
----
-481
-499
-516

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL CAST ( + + 11 AS INTEGER ) * - 49 + + - ( - col2 ) FROM tab2
----
-481
-499
-516

query I rowsort
SELECT ALL 8 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( 15 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-585
SELECT ALL - 47 / + - col2 + + CAST( NULL AS DECIMAL ) * + 1 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-585
SELECT ALL - 47 / + - col2 + + CAST ( NULL AS REAL ) * + 1 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - + 48 AND 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 54 + + - 66 + + + 78 FROM tab1 cor0
----
66
66
66

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

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

query I rowsort
SELECT - 60 AS col1 FROM tab0 AS cor0 WHERE NOT 3 * + - col2 IS NULL
----
-60
-60
-60

query II rowsort
SELECT - 86 + col2 + 55 + - - col0 AS col0, - col0 FROM tab0 AS cor0
----
165
-97
31
-15
66
-87

query I rowsort
SELECT DISTINCT col1 * - 29 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # DIV for integer division: 
query II rowsort label-592
SELECT DISTINCT col0 * col0 * col2 + + - ( col0 ) DIV col2 * col0, + col2 * col0 + + col0 + + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
163776
5704
326175
8311
48576
2277

skipif mysql # not compatible
query II rowsort label-592
SELECT DISTINCT col0 * col0 * col2 + + - ( col0 ) / col2 * col0, + col2 * col0 + + col0 + + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
163776
5704
326175
8311
48576
2277

query I rowsort
SELECT DISTINCT - col2 + + + 58 + + - ( + col1 ) + + - col0 * + 21 AS col1 FROM tab1 AS cor0
----
-1123
-1791
-1968

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 14 - + - 73 FROM tab1 cor0
----
106
64
73

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + + + ( + col0 ) + ( + 88 ) * + col2 col2 FROM tab2
----
2123
3637
5232

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ALL 42 DIV + MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL 42 / + MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - COUNT( * ) * - 83 AS col2 FROM tab2 cor0
----
249

skipif mysql # not compatible
query I rowsort label-599
SELECT - COUNT ( * ) * - 83 AS col2 FROM tab2 cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 22 - + 21 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-600
SELECT 22 - + 21 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT 73 + + 1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT + col0 + + + 16 * - + ( - ( col2 ) ) + + - col1 * col0 FROM tab0
----
-1580
-448
1584

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT 3 AS col1, col0 DIV ( + col0 ) * 85 FROM tab1
----
3
85
3
85
3
85

skipif mysql # not compatible
query II rowsort label-604
SELECT 3 AS col1, col0 / ( + col0 ) * 85 FROM tab1
----
3
85
3
85
3
85

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < + 54 + - col1 - - 54 * - - 6
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT 68 * - MIN( DISTINCT - - ( + - col1 ) ) FROM tab0 AS cor0
----
5508

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT 68 * - MIN ( DISTINCT - - ( + - col1 ) ) FROM tab0 AS cor0
----
5508

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

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

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

query II rowsort
SELECT ALL - col2 AS col2, col1 - + col2 * - 20 FROM tab0 cor0
----
-10
221
-47
1021
-99
1981

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 2 col2 FROM tab1
----
-102
-170
-182

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

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

query I rowsort
SELECT ALL 26 * 15 FROM tab0 WHERE NULL < - 55 * + - 85
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-615
SELECT DISTINCT MIN( ALL CAST( NULL AS DECIMAL ) ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT MIN ( ALL CAST ( NULL AS REAL ) ) * COUNT ( * ) FROM tab0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col0 * - col2 + + + col0 col2 FROM tab1
----
-4749
-4871
-6029

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT + - 2 / + + col0 + - - col1 + + ( + + col2 ) AS col2 FROM tab0 WHERE NOT col1 + - 25 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT ALL + + col2 DIV + 90 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + + col2 / + 90 FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT ALL - - ( + + col1 ) + + + 39 AS col1 FROM tab1 cor0
----
44
53
86

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

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

query I rowsort
SELECT DISTINCT 88 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 58 + col2 + - col1 * - - 11 AS col2 FROM tab0 cor0
----
-279
-902
30

query I rowsort
SELECT DISTINCT 53 + 64 FROM tab2
----
117

query I rowsort
SELECT ( + + col0 ) + col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL + col2 - + + col2 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 98 * col0 >= col1 + + col0 * + - ( - col1 )
----

query I rowsort
SELECT - col0 + 94 + - col2 FROM tab1 AS cor0 WHERE NULL IN ( 27, 80 + 62, - col1 )
----

query I rowsort
SELECT ALL + col1 * + + 73 - + + col2 FROM tab1 cor0
----
306
3363
926

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col1 IS NOT NULL )
----

query I rowsort
SELECT + 39 - - col0 + + col2 FROM tab2
----
108
143
172

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT COUNT( * ) - 24 AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-635
SELECT COUNT ( * ) - 24 AS col0 FROM tab0
----
-21

query I rowsort
SELECT DISTINCT - 63 * + col1 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col0 / - col0 IS NOT NULL
----

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

query I rowsort
SELECT 35 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + + 76 + + col0 - + col1 + + col2
----

query I rowsort
SELECT - 27 * - ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-1508
-1745
-2541

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * - ( 19 ) col0 FROM tab0
----
1121
1121
1121

query II rowsort
SELECT ALL + 92, col2 FROM tab0
----
92
10
92
47
92
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-647
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, col1 * + 85 FROM tab1
----
NULL
1190
NULL
3995
NULL
425

skipif mysql # not compatible
query II rowsort label-647
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, col1 * + 85 FROM tab1
----
NULL
1190
NULL
3995
NULL
425

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

query II rowsort
SELECT - 17 AS col0, ( + ( + 42 ) ) AS col2 FROM tab2 AS cor0
----
-17
42
-17
42
-17
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + ( + ( - ( + + 96 ) ) ) ) * + + ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-651
SELECT + COUNT( * ) + 39 AS col1, SUM( + + col0 ) * + 97 FROM tab0 cor0
----
42
19303

skipif mysql # not compatible
query II rowsort label-651
SELECT + COUNT ( * ) + 39 AS col1, SUM ( + + col0 ) * + 97 FROM tab0 cor0
----
42
19303

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

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

query I rowsort
SELECT col0 * - - col1 + + 41 + col0 FROM tab0 AS cor0
----
1271
1955
235

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

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - COUNT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + ( + 31 ) * col1 + + col0 * 88 AS col2 FROM tab0 AS cor0
----
-1191
7005
8505

query I rowsort
SELECT ALL + col1 + - + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 70 - col2 AS col2 FROM tab1
----
-26
11
2

query II rowsort
SELECT DISTINCT 36 - + 78 + - col2 AS col2, - 87 FROM tab0
----
-141
-87
-52
-87
-89
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT ALL col1 - - 37 + + col0 + - col0 DIV col2 AS col0 FROM tab0
----
133
135
137

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL col1 - - 37 + + col0 + - col0 / col2 AS col0 FROM tab0
----
133
135
137

query I rowsort
SELECT + col1 - + + col1 * + 32 + col0 AS col0 FROM tab1 AS cor0
----
-1366
-383
-70

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

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

query I rowsort
SELECT col2 - - + col0 - - col0 + + - 63 + 60 FROM tab1 AS cor0
----
195
226
247

query I rowsort
SELECT 90 * col2 FROM tab2
----
2070
3600
5220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + COUNT( DISTINCT 61 ) + - COUNT( * ) FROM tab1
----
-2

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-666
SELECT DISTINCT - col1 + - col0 * 75 AS col2 FROM tab2 WHERE NOT + col0 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - col1 + - col0 * 75 AS col2 FROM tab2 WHERE NOT + col0 IN ( CAST ( NULL AS REAL ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 * col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col2 + + 75 * 7 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + 13 + - COUNT( * ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-671
SELECT + 13 + - COUNT ( * ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT - SUM( DISTINCT + 39 ) - COUNT( + 45 ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT - SUM ( DISTINCT + 39 ) - COUNT ( + 45 ) AS col2 FROM tab0
----
-42

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

skipif mysql # not compatible
query I rowsort label-673
SELECT + COUNT ( * ) + 90 * + ( COUNT ( * ) - - 86 ) FROM tab2
----
8013

query I rowsort
SELECT - 3 + + ( - col0 ) AS col2 FROM tab0
----
-100
-18
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - COUNT( * ) + SUM( col2 + col1 ) AS col0 FROM tab2
----
313

skipif mysql # not compatible
query I rowsort label-675
SELECT - COUNT ( * ) + SUM ( col2 + col1 ) AS col0 FROM tab2
----
313

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-677
SELECT DISTINCT - ( + 3 ) + COUNT( * ) * AVG ( - col2 ) AS col1 FROM tab1 WHERE + col1 < - col0 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - ( + 3 ) + COUNT ( * ) * AVG ( - col2 ) AS col1 FROM tab1 WHERE + col1 < - col0 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL col2 + col0 * - col0 AS col0 FROM tab1
----
-2505
-7166
-8213

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT - 28 * - 1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT - 28 * - 1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - ( 89 ) - + 94 AS col2 FROM tab2
----
-183
-183
-183

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + MIN( + 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-684
SELECT + MIN ( + 21 ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + COUNT( * ) * - 2 - 52 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-685
SELECT + COUNT ( * ) * - 2 - 52 AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + 94 + - SUM( - ( col2 ) ) FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-686
SELECT + 94 + - SUM ( - ( col2 ) ) FROM tab2 AS cor0
----
215

query I rowsort
SELECT + 47 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( 36 )
----

query I rowsort
SELECT DISTINCT col2 * 23 + ( col0 ) FROM tab0
----
1096
2374
317

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 17 * + col1 + col0 * col2 IS NOT NULL
----

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

query I rowsort
SELECT ALL + 77 * - col2 + col1 * col1 AS col0 FROM tab2
----
23
2849
830

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

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab1 cor0
----
3

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

query I rowsort
SELECT + - col0 - 98 * col2 FROM tab2 AS cor0
----
-2300
-3984
-5759

query I rowsort
SELECT - col1 - + 98 FROM tab0 AS cor0
----
-119
-179
-99

query I rowsort
SELECT col1 + 42 FROM tab2 AS cor0
----
109
119
93

query I rowsort
SELECT + col1 + 6 AS col0 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT 82 + col1 AS col0 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT DISTINCT + 43 + + col1 FROM tab2 AS cor0
----
110
120
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <= + ( + col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT + 42 * MAX( + col2 * - 40 ) + ( - 40 ) FROM tab2 AS cor0 WHERE + col2 IN ( + CAST( NULL AS SIGNED ) + col0 * - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT + 42 * MAX ( + col2 * - 40 ) + ( - 40 ) FROM tab2 AS cor0 WHERE + col2 IN ( + CAST ( NULL AS INTEGER ) + col0 * - 69 )
----
NULL

query I rowsort
SELECT + ( - col1 ) * - 39 + - col2 FROM tab2 AS cor0
----
1966
2555
2963

query I rowsort
SELECT + col1 + + 11 FROM tab0 cor0
----
12
32
92

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 35 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT + COUNT( * ) - 54 AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT + COUNT ( * ) - 54 AS col0 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT ALL 44 DIV col1 FROM tab2 WHERE + 13 >= col1 DIV col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL 44 / col1 FROM tab2 WHERE + 13 >= col1 / col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - col2 col1 FROM tab0 AS cor0
----
-2491
-5247
-530

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE 91 >= ( + 83 )
----
59
68
96

query I rowsort
SELECT ALL - col1 - + 67 * col0 AS col0 FROM tab0 AS cor0
----
-1086
-5850
-6500

query I rowsort
SELECT + col0 * + + col1 + - 17 FROM tab0 AS cor0
----
1198
1810
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col1 * 2
----

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

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

query I rowsort
SELECT ALL 60 * col0 * col2 AS col0 FROM tab1 AS cor0
----
293760
300900
371280

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab1, tab2 AS cor0
----
-19

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

query I rowsort
SELECT ALL - 47 * col1 FROM tab1 AS cor0
----
-2209
-235
-658

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col2 AND 94 + - 94 / col0
----
87
21
10

query I rowsort
SELECT 97 AS col1 FROM tab1 AS cor0 WHERE NOT col0 <> - 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT ALL col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * + ( - col0 ) col0 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT ALL col2 DIV 98 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL col2 / 98 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - SUM( + 44 ) AS col2 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-727
SELECT - SUM ( + 44 ) AS col2 FROM tab2 AS cor0
----
-132

query I rowsort
SELECT - 47 AS col2 FROM tab0 AS cor0 WHERE NOT 62 BETWEEN ( + 51 ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-729
SELECT - col0 * - 58 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-730
SELECT * FROM tab2 AS cor0 WHERE NOT + 7 BETWEEN ( NULL ) AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-730
SELECT * FROM tab2 AS cor0 WHERE NOT + 7 BETWEEN ( NULL ) AND ( + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT + col1 * 82 AS col2 FROM tab1 AS cor0
----
1148
3854
410

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * - 84 col1 FROM tab2
----
-177744
-344064
-472500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NULL <> col0 AND - 37 > ( col2 + - col0 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-736
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> col0 AND - 37 > ( col2 + - col0 * col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab1 WHERE NOT 88 + 79 * ( - 21 + - col1 ) IN ( + col2 )
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT col0 / - col1 AS col2 FROM tab1 WHERE NOT 88 + 79 * ( - 21 + - col1 ) IN ( + col2 )
----
-1
-17
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= 43 * 66
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + 91 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL CAST ( - 47 AS INTEGER ) FROM tab0
----
-47
-47
-47

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

skipif mysql # not compatible
query I rowsort label-741
SELECT + + col1 / - col2 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT + 18 + + 97 FROM tab2
----
115
115
115

query I rowsort
SELECT - 43 + + + 43 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT col1 + col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-21
24
59

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

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

query I rowsort
SELECT ALL + 66 + + + col0 FROM tab1 AS cor0
----
117
151
157

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

query II rowsort
SELECT + col1, ( - col0 ) + - 88 * 29 FROM tab2 cor0 WHERE - 75 IS NOT NULL
----
51
-2598
67
-2627
77
-2616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-750
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-750
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT 64 + + - 7 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT DISTINCT + COUNT( * ) + + CAST( ( + + MIN( DISTINCT + - col0 ) ) AS SIGNED ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + COUNT ( * ) + + CAST ( ( + + MIN ( DISTINCT + - col0 ) ) AS INTEGER ) AS col2 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL MIN( DISTINCT - 61 ) AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL MIN ( DISTINCT - 61 ) AS col2 FROM tab2
----
-61

query I rowsort
SELECT - 43 - - + ( - 17 ) + col2 * + + ( col1 ) AS col0 FROM tab0
----
150
3747
39

query I rowsort
SELECT + 86 * + col2 - - 97 + + - col2 * - col2 AS col2 FROM tab2
----
2604
5137
8449

query I rowsort
SELECT ( + col2 ) - - col1 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col0 * - col1 col1 FROM tab0
----
-1134
-1806
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + CAST ( - + AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 89 - - - COUNT ( * ) FROM tab2
----
NULL

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

query II rowsort
SELECT + 17 AS col2, 81 * - col0 AS col2 FROM tab1 AS cor0
----
17
-4131
17
-6885
17
-7371

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( 93 )
----

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0 WHERE NOT 10 * + 39 + + 62 IS NOT NULL
----

query I rowsort
SELECT + 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 43 = NULL
----

query I rowsort
SELECT DISTINCT + 21 * - - 98 FROM tab2 cor0
----
2058

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 86 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL + 92 DIV + + col1 AS col2 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + 92 / + + col1 AS col2 FROM tab1 AS cor0
----
1
18
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col0 FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) * col0 + - - col0 + col1 ) IS NULL
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT - CAST( + col0 AS SIGNED ) * + col0 FROM tab0 AS cor0 WHERE NOT ( 15 * + + col1 * + ( col2 ) ) IS NULL
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-772
SELECT - CAST ( + col0 AS INTEGER ) * + col0 FROM tab0 AS cor0 WHERE NOT ( 15 * + + col1 * + ( col2 ) ) IS NULL
----
-225
-7569
-9409

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

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

skipif mysql # not compatible
query I rowsort label-774
SELECT + COUNT ( DISTINCT - ( - - ( - - col0 ) ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 19 col2 FROM tab0
----
-1881
-190
-893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-776
SELECT 46 * + 52 * - + 18 DIV CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
14352

skipif mysql # not compatible
query I rowsort label-776
SELECT 46 * + 52 * - + 18 / CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
14352

query I rowsort
SELECT ALL - col2 * col0 * - col2 FROM tab2 WHERE NOT - col0 IS NULL
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-778
SELECT + col1 + CAST( NULL AS SIGNED ) + col2 col2, 57 FROM tab0
----
NULL
57
NULL
57
NULL
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-778
SELECT + col1 + CAST ( NULL AS INTEGER ) + col2 col2, 57 FROM tab0
----
NULL
57
NULL
57
NULL
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 + + col0 col1 FROM tab2 cor0
----
108
79
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + CAST( NULL AS SIGNED ) - + 86 >= 67 - col2
----

skipif mysql # not compatible
query III rowsort label-781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + CAST ( NULL AS INTEGER ) - + 86 >= 67 - col2
----

query I rowsort
SELECT + col1 + - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT - CAST( - MIN( + 61 ) AS SIGNED ) / + ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - CAST ( - MIN ( + 61 ) AS INTEGER ) / + ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----
NULL

query I rowsort
SELECT + + 78 + 76 AS col0 FROM tab1 AS cor0
----
154
154
154

query I rowsort
SELECT + col2 + + 19 AS col0 FROM tab0 AS cor0
----
118
29
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT + + col2 * - col0 + ( CAST( 50 AS SIGNED ) ) FROM tab2 cor0
----
-1008
-2510
-4300

skipif mysql # not compatible
query I rowsort label-787
SELECT + + col2 * - col0 + ( CAST ( 50 AS INTEGER ) ) FROM tab2 cor0
----
-1008
-2510
-4300

query I rowsort
SELECT + col0 + + col2 - + - col0 - col0 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col2 + - 83 * - 0 * 73 FROM tab0
----
10
47
99

query I rowsort
SELECT col1 + col0 * + col0 + + - col0 AS col1 FROM tab0
----
291
7503
9313

onlyif mysql # DIV for integer division: 
query II rowsort label-791
SELECT + col1 DIV - 94 + 38, col0 col1 FROM tab1
----
38
51
38
85
38
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-791
SELECT + col1 / - 94 + 38, col0 col1 FROM tab1
----
38
51
38
85
38
91

query I rowsort
SELECT DISTINCT - col0 * 20 AS col0 FROM tab1
----
-1020
-1700
-1820

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 54 >= col1
----
15
81
47

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

onlyif mysql # DIV for integer division: 
query II rowsort label-795
SELECT 28, + 19 * - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
28
19
28
19
28
19

skipif mysql # not compatible
query II rowsort label-795
SELECT 28, + 19 * - col2 / - col2 AS col0 FROM tab1 AS cor0
----
28
19
28
19
28
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT DISTINCT + - 95 / 31 * - - 65 * - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + - 95 / 31 * - - 65 * - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 4 * - col1 - + col1 FROM tab2 cor0
----
-255
-335
-385

query I rowsort
SELECT + + 66 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * + col2 NOT BETWEEN 8 AND + ( + + col2 )
----

query II rowsort
SELECT ALL col1 AS col2, - ( - 68 ) * + + col1 * col2 AS col1 FROM tab0 AS cor0
----
1
6732
21
14280
81
258876

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-802
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * 73 * - 33 * + col1 * + + col2 - - - ( CAST( - col1 AS SIGNED ) ) + - - 61 + col1 + - col0 * - col0 * 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-802
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * 73 * - 33 * + col1 * + + col2 - - - ( CAST ( - col1 AS INTEGER ) ) + - - 61 + col1 + - col0 * - col0 * 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 + - col0 FROM tab1 AS cor0
----
-39
-45
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT + col1 * + col0 + + col2 + - col0 DIV - col2 AS col0 FROM tab2 AS cor0
----
2371
4969
5084

skipif mysql # not compatible
query I rowsort label-804
SELECT + col1 * + col0 + + col2 + - col0 / - col2 AS col0 FROM tab2 AS cor0
----
2371
4969
5084

query II rowsort
SELECT ALL col2 + + ( - 14 ) AS col0, col1 * + 29 AS col2 FROM tab2
----
26
2233
44
1943
9
1479

query II rowsort
SELECT ALL - col2 * + col0 AS col2, + 71 FROM tab1
----
-4896
71
-5015
71
-6188
71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) NOT IN ( + col0 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT COUNT( DISTINCT 80 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-809
SELECT COUNT ( DISTINCT 80 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL + + col1 * + 80 FROM tab2 AS cor0
----
4080
5360
6160

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

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

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

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

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

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

query I rowsort
SELECT ( + col0 ) * - + col1 * + col2 + - col0 - + + col0 + col2 * + 14 * col1 AS col2 FROM tab1
----
-21115
-246274
-49830

query I rowsort
SELECT 9 * + col2 AS col1 FROM tab2
----
207
360
522

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 + 67 <> - col1
----

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

query II rowsort
SELECT ALL - 80 AS col2, + 14 AS col2 FROM tab0 AS cor0
----
-80
14
-80
14
-80
14

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NOT + 62 <> NULL )
----

query I rowsort
SELECT - + col2 + + ( + col2 ) + + 73 AS col0 FROM tab2 AS cor0 WHERE - 69 >= NULL
----

query II rowsort
SELECT ALL - 50 AS col0, - col1 FROM tab2 cor0
----
-50
-51
-50
-67
-50
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) + - - col2 + + col0 NOT IN ( - col2, - col0 + + col0 * - 11 + + ( 21 ) ) OR NOT ( - + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-826
SELECT ALL col1 DIV CAST( + col1 AS SIGNED ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL col1 / CAST ( + col1 AS INTEGER ) FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE col1 * + 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE col1 * + 15 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-828
SELECT ALL + MIN( + ( + col1 ) ) DIV - + CAST( - 81 AS SIGNED ) * 45 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-828
SELECT ALL + MIN ( + ( + col1 ) ) / - + CAST ( - 81 AS INTEGER ) * 45 col0 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL MIN ( - - col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - 52 NOT BETWEEN col0 * - col2 * + + col1 * col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-831
SELECT DISTINCT COUNT( DISTINCT CAST( + - 23 AS DECIMAL ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT COUNT ( DISTINCT CAST ( + - 23 AS REAL ) ) AS col1 FROM tab1
----
1

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

query I rowsort
SELECT - - col0 * - 86 FROM tab2 cor0 WHERE NOT 3 * + 48 IS NULL
----
-3956
-5504
-6450

query I rowsort
SELECT + col2 * + + col0 FROM tab0 AS cor0 WHERE NOT + col1 >= + 58
----
870
9603

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

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

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

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

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

query I rowsort
SELECT - + ( col1 ) * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

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

query II rowsort
SELECT ALL + + 81 + - ( col0 ), - col2 AS col0 FROM tab0 AS cor0
----
-16
-99
-6
-10
66
-47

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE 40 = NULL
----

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

query I rowsort
SELECT ALL + - 94 + + 99 * - col0 + - - col1 * + + col1 FROM tab1 AS cor0
----
-4947
-6894
-8484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-847
SELECT col2, CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-847
SELECT col2, CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL 87 + col0 AS col0, - col1 FROM tab0
----
102
-81
174
-21
184
-1

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

query I rowsort
SELECT 69 + - + 29 AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT 26 * col1 * 58 + + 39 AS col0 FROM tab1
----
21151
70915
7579

query II rowsort
SELECT ALL col2, col2 + + + col1 AS col1 FROM tab1
----
59
64
68
115
96
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 89 ) col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, col0 + 45 col0 FROM tab1 AS cor0
----
59
130
68
136
96
96

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

query I rowsort
SELECT ALL + col2 * 21 * + - col1 + - 41 AS col2 FROM tab2
----
-24674
-64721
-81647

query I rowsort
SELECT + - 93 + col1 * 21 AS col1 FROM tab1 AS cor0
----
12
201
894

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT + SUM( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT + SUM ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----
NULL

query I rowsort
SELECT ALL + - 16 FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * col0 col1 FROM tab0
----
5220
5820
900

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-861
SELECT ALL 63 AS col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL 63 AS col0, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
63
NULL
63
NULL
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT - MIN( + - 3 ) AS col1 FROM tab0, tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-862
SELECT - MIN ( + - 3 ) AS col1 FROM tab0, tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT DISTINCT + col1 DIV - - 57 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT + col1 / - - 57 AS col1 FROM tab1
----
0

query II rowsort
SELECT + col1, - col2 * - col1 AS col2 FROM tab2
----
51
1173
67
3886
77
3080

onlyif mysql # DIV for integer division: 
query II rowsort label-865
SELECT DISTINCT - + 86 AS col1, col1 * - col1 DIV - col1 FROM tab0 AS cor0
----
-86
1
-86
21
-86
81

skipif mysql # not compatible
query II rowsort label-865
SELECT DISTINCT - + 86 AS col1, col1 * - col1 / - col1 FROM tab0 AS cor0
----
-86
1
-86
21
-86
81

query II rowsort
SELECT + col2, col2 + col2 FROM tab0 AS cor0
----
10
20
47
94
99
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT + 62 * - + COUNT( * ) DIV 3 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-867
SELECT + 62 * - + COUNT ( * ) / 3 FROM tab0 AS cor0
----
-62

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

query I rowsort
SELECT 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 44 + - - col0 FROM tab0 AS cor0
----
131
141
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - 14 * col1 AND NULL
----

query I rowsort
SELECT 79 + - ( + col0 ) FROM tab1 AS cor0
----
-12
-6
28

query I rowsort
SELECT + - col1 + - + col1 FROM tab2 cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT DISTINCT + col1 + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT + col1 + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT ( + col0 ) AS col0, + 15 * - - 94 * col2 AS col1 FROM tab0 AS cor0
----
15
66270
87
14100
97
139590

query I rowsort
SELECT ALL + col0 + - + 25 + 51 AS col0 FROM tab2 AS cor0
----
101
72
90

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col0 + 82 - + col2, col1 )
----
10
47
99

query I rowsort
SELECT ALL col1 + - - 58 - - 84 * + 15 * + 10 * + + 57 FROM tab2 AS cor0
----
718309
718325
718335

query I rowsort
SELECT DISTINCT col2 + + col0 + + 26 * - + col0 FROM tab2
----
-1127
-1560
-1817

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

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * - 45 + 21 IS NULL
----

query I rowsort
SELECT ALL - 29 FROM tab0 WHERE NOT + 71 IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT + SUM( ( - col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-883
SELECT + SUM ( ( - col0 ) ) AS col1 FROM tab2
----
-185

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

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

query I rowsort
SELECT col1 * - 23 - 56 + - col2 AS col0 FROM tab1
----
-1205
-230
-474

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

query I rowsort
SELECT + - col1 - + + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT - 40 * + 46 FROM tab1 AS cor0
----
-1840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT DISTINCT + - col1 * - 91 / - CAST( NULL AS SIGNED ) * + 52 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT DISTINCT + - col1 * - 91 / - CAST ( NULL AS INTEGER ) * + 52 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * + 16 AS col2 FROM tab2 cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT COUNT( * ) * - 78 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-893
SELECT COUNT ( * ) * - 78 FROM tab0
----
-234

query II rowsort
SELECT col0 * + - 47 AS col1, + col1 AS col2 FROM tab1
----
-2397
14
-3995
5
-4277
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL 11 + + - COUNT( * ) * + 34 AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL 11 + + - COUNT ( * ) * + 34 AS col2 FROM tab2 AS cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 29 + - col2 AS col2 FROM tab1
----
-30
-39
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - 16 * + ( - COUNT( * ) ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-899
SELECT - 16 * + ( - COUNT ( * ) ) FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - col1 * 11 AS col1 FROM tab2
----
25806
54208
55275

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab0 WHERE NULL <> + - 48 * col2 * + col2
----

query I rowsort
SELECT ALL - ( col2 ) * + - 46 FROM tab2
----
1058
1840
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - 7 + + SUM( 18 ) + + - ( - COUNT( * ) ) + 50 * + 71 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32114

skipif mysql # not compatible
query I rowsort label-903
SELECT - 7 + + SUM ( 18 ) + + - ( - COUNT ( * ) ) + 50 * + 71 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32114

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT - COUNT( * ) DIV - 19 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-905
SELECT - COUNT ( * ) / - 19 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT DISTINCT - ( + 95 ) DIV + col0 col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-906
SELECT DISTINCT - ( + 95 ) / + col0 col1 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT + col2 * + ( + + 82 ) + + col1 AS col0 FROM tab2 cor0
----
1937
3357
4823

query I rowsort
SELECT ALL + col0 + + 91 FROM tab1 AS cor0
----
142
176
182

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT + col2 DIV 58 + 49 FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-909
SELECT + col2 / 58 + 49 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + - ( - col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

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

skipif mysql # not compatible
query II rowsort label-911
SELECT COUNT ( * ), + 50 AS col2 FROM tab0, tab1 AS cor0
----
9
50

query I rowsort
SELECT 76 + col2 * col2 FROM tab1
----
3557
4700
9292

query I rowsort
SELECT ALL 48 - + 82 AS col2 FROM tab0
----
-34
-34
-34

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

query I rowsort
SELECT 88 FROM tab1 AS cor0 WHERE + col1 * - col2 IS NOT NULL
----
88
88
88

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

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

query I rowsort
SELECT - 0 * + col2 + - - col2 - col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT + 67 DIV + ( - 30 ) - - - col2 FROM tab1
----
-61
-70
-98

skipif mysql # not compatible
query I rowsort label-919
SELECT + 67 / + ( - 30 ) - - - col2 FROM tab1
----
-61
-70
-98

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

query II rowsort
SELECT - - 36 * - col1 * + col1, 90 FROM tab1 AS cor0 WHERE NOT + col2 + + 7 * - + 31 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT - COUNT( * ) * + + COUNT( DISTINCT + col2 ) + - + 7 DIV - - COUNT( * ) FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-922
SELECT - COUNT ( * ) * + + COUNT ( DISTINCT + col2 ) + - + 7 / - - COUNT ( * ) FROM tab1 cor0
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - 74 + + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - 74 + + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71

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

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

query II rowsort
SELECT - + 64 AS col2, - 16 AS col1 FROM tab1 AS cor0
----
-64
-16
-64
-16
-64
-16

query II rowsort
SELECT + col1 AS col1, ( - - col0 ) AS col2 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + col0 * ( 78 ) FROM tab2
----
3588
4992
5850

query I rowsort
SELECT DISTINCT - 50 * + + col2 AS col2 FROM tab0
----
-2350
-4950
-500

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 44 col0 FROM tab1
----
-2068
-220
-616

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + - MIN( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-933
SELECT + - MIN ( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL - 90 * col0 AS col2 FROM tab0 AS cor0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT - 4 * - COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT - 4 * - COUNT ( * ) AS col2 FROM tab1
----
12

query I rowsort
SELECT - 42 * + 78 + + + col2 AS col2 FROM tab2 AS cor0
----
-3218
-3236
-3253

query II rowsort
SELECT ALL + col0 * col1, col2 - 88 AS col1 FROM tab1 AS cor0
----
425
-29
4277
-20
714
8

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT - col2 DIV - - col0 + - - col0 * + 16 + - col0 + + - 87 FROM tab1 AS cor0
----
1188
1278
677

skipif mysql # not compatible
query I rowsort label-938
SELECT - col2 / - - col0 + - - col0 * + 16 + - col0 + + - 87 FROM tab1 AS cor0
----
1188
1278
677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT - MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT + + MIN( ALL + 93 ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + + MIN ( ALL + 93 ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query II rowsort
SELECT col1 * - - col2 AS col0, col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

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

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

query I rowsort
SELECT DISTINCT - 50 + - col2 FROM tab0
----
-149
-60
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT col2 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT col2 ) FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT 38 - + - MAX( + + col2 ) FROM tab0
----
137

skipif mysql # not compatible
query I rowsort label-946
SELECT 38 - + - MAX ( + + col2 ) FROM tab0
----
137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-947
SELECT ALL CAST( NULL AS DECIMAL ) / - - MAX( col0 ) - 30 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL CAST ( NULL AS REAL ) / - - MAX ( col0 ) - 30 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 30 - + col0 FROM tab1
----
-21
-55
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - - col0 + + col1 col1, - col1 FROM tab1
----
185
-47
79
-14
95
-5

query I rowsort
SELECT + col1 + - - 24 FROM tab2 AS cor0
----
101
75
91

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

query I rowsort
SELECT 76 * col1 * + ( - + col2 ) FROM tab0
----
-15960
-289332
-7524

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

query I rowsort
SELECT + 31 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + 97 * - + COUNT( + - col0 ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-957
SELECT + 97 * - + COUNT ( + - col0 ) AS col2 FROM tab2
----
-291

query I rowsort
SELECT + 15 * 93 FROM tab2
----
1395
1395
1395

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

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

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT + CAST ( + 87 AS INTEGER ) FROM tab1
----
87

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + col1 BETWEEN 53 AND + col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT + col0 DIV ( + col0 ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-962
SELECT + col0 / ( + col0 ) AS col1 FROM tab2
----
1
1
1

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

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

query I rowsort
SELECT ALL + 48 * - 35 FROM tab0
----
-1680
-1680
-1680

query I rowsort
SELECT + 31 + - col1 AS col1 FROM tab0
----
-50
10
30

query I rowsort
SELECT DISTINCT - col0 * - - col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - ( 64 ) + col0 + + 4 - - col2 FROM tab1
----
84
87
99

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

query I rowsort
SELECT - + 90 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

skipif mysql # not compatible
query III rowsort label-971
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 + 68 * + CAST ( + - col0 AS INTEGER ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT - col0 * + col2 - + 45 + - 34 * + col1 AS col2 FROM tab0 AS cor0
----
-1629
-3504
-9682

query I rowsort
SELECT DISTINCT 76 + + col2 * - + 27 AS col0 FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-1517
-1760
-2516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 + - col0 + + col1 AS col2 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT ALL col1 + - col2 + col1 FROM tab1
----
-49
-68
26

query I rowsort
SELECT DISTINCT - col2 + - 25 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT ALL - col2 - - 45 + 82 * col2 FROM tab2
----
1908
3285
4743

onlyif mysql # DIV for integer division: 
query II rowsort label-981
SELECT DISTINCT 40 DIV - col0, - 51 * col2 * - - col1 AS col0 FROM tab2
----
0
-157080
0
-198186
0
-59823

skipif mysql # not compatible
query II rowsort label-981
SELECT DISTINCT 40 / - col0, - 51 * col2 * - - col1 AS col0 FROM tab2
----
0
-157080
0
-198186
0
-59823

query I rowsort
SELECT - + ( + + col1 ) FROM tab2 WHERE NOT + col2 - + col2 - col2 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-983
SELECT ALL + MIN( ALL + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + MIN ( ALL + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT - COUNT( * ) DIV + 78 - - 43 AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-984
SELECT - COUNT ( * ) / + 78 - - 43 AS col1 FROM tab2 AS cor0
----
43

query I rowsort
SELECT ( - 51 ) * - 59 FROM tab0 AS cor0
----
3009
3009
3009

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

query I rowsort
SELECT + 97 + - - 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

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

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

query II rowsort
SELECT + col1 AS col2, + col2 + col2 FROM tab0 AS cor0
----
1
198
21
20
81
94

onlyif mysql # aggregate syntax: 
query II rowsort label-990
SELECT DISTINCT 85 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-990
SELECT DISTINCT 85 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
85
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR + - col0 - - col1 * - + 5 NOT BETWEEN + col1 - + - 72 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT + COUNT( * ) + + MIN( - col2 ) + SUM( col0 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-992
SELECT + COUNT ( * ) + + MIN ( - col2 ) + SUM ( col0 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + COUNT( * ) + + + 31 * + COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-993
SELECT + COUNT ( * ) + + + 31 * + COUNT ( * ) FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 col0, - 77 FROM tab0 AS cor0
----
-40
-77

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * col0 * + col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
23970912
25150284
38291412

query I rowsort
SELECT DISTINCT + + 5 + + + 10 AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT 5 < - 58
----
-15
-87
-97

query I rowsort
SELECT + + col0 FROM tab0 WHERE NOT - + ( - col0 ) >= + - col1
----

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT MIN ( - - col1 ) AS col1 FROM tab0
----
1

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

query I rowsort
SELECT DISTINCT 36 FROM tab0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT ALL - - 53 AS col2 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + col0 + - 93 FROM tab0 AS cor0 WHERE ( + - ( - 52 ) IS NOT NULL )
----
-6
-78
4

query I rowsort
SELECT - 38 + - + col2 + + - col1 FROM tab1 AS cor0
----
-102
-148
-153

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1010
SELECT + + 29 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
29
NULL
29
NULL
29
NULL

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

skipif mysql # not compatible
query I rowsort label-1011
SELECT - - 21 * + COUNT ( * ) + + + COUNT ( * ) + - + CAST ( - 73 AS INTEGER ) AS col2 FROM tab2 cor0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL - ( + COUNT( * ) ) * + MAX( + 93 ) FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - ( + COUNT ( * ) ) * + MAX ( + 93 ) FROM tab1 cor0
----
-279

query I rowsort
SELECT ALL 94 * 73 AS col0 FROM tab1 cor0
----
6862
6862
6862

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1014
SELECT * FROM tab0 AS cor0 WHERE - 84 / col0 * - - CAST( NULL AS SIGNED ) > + col0 * col2 / + - 4
----

skipif mysql # not compatible
query III rowsort label-1014
SELECT * FROM tab0 AS cor0 WHERE - 84 / col0 * - - CAST ( NULL AS INTEGER ) > + col0 * col2 / + - 4
----

query I rowsort
SELECT DISTINCT + - col0 + + - 52 * col2 * col2 FROM tab0 AS cor0
----
-114883
-509749
-5287

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT - - COUNT( * ), 82 + + 33 + + 61 AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
3
176

skipif mysql # not compatible
query II rowsort label-1016
SELECT - - COUNT ( * ), 82 + + 33 + + 61 AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
3
176

query II rowsort
SELECT ALL col0, + 82 * - col1 AS col2 FROM tab1 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - SUM( + + 42 ) AS col2 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-1018
SELECT - SUM ( + + 42 ) AS col2 FROM tab0
----
-126

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + MAX( ALL 20 ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + MAX ( ALL 20 ) AS col1 FROM tab2
----
20

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 5 = - col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL 8 + + col0 AS col0 FROM tab1 AS cor0
----
59
93
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - 35
----

query I rowsort
SELECT + 95 * + 81 * - 70 AS col0 FROM tab1 AS cor0
----
-538650
-538650
-538650

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1, - col0, + col0 * 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL SUM( ALL - + 72 ) * + COUNT( + col2 ) * + - 63 + COUNT( * ) FROM tab2
----
40827

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL SUM ( ALL - + 72 ) * + COUNT ( + col2 ) * + - 63 + COUNT ( * ) FROM tab2
----
40827

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - SUM( ALL + 87 ) + 55 + + + COUNT( * ) * + + 56 + + - COUNT( col1 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-1031
SELECT - SUM ( ALL + 87 ) + 55 + + + COUNT ( * ) * + + 56 + + - COUNT ( col1 ) FROM tab1
----
-41

query I rowsort
SELECT ALL - 14 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR - col0 NOT IN ( - - col1 + 22 * + - col2, - 6 )
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col2 BETWEEN col2 + 78 + + col2 AND NULL OR + 49 IS NULL
----
-23
-40
-58

query I rowsort
SELECT 0 + ( - col1 ) + - col0 AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ( col2 ) + - col0 + + col1 AS col1 FROM tab0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col1, + col0 - - - 81 + + 34 FROM tab0 AS cor0
----
7
-32
7
40
7
50

query II rowsort
SELECT + - 33, + ( + + ( - 33 ) ) FROM tab1 AS cor0
----
-33
-33
-33
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL - - MIN( ALL - col2 ) FROM tab0 WHERE ( NOT ( NULL ) >= col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - - MIN ( ALL - col2 ) FROM tab0 WHERE ( NOT ( NULL ) >= col0 )
----
NULL

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE 67 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - SUM( DISTINCT + + 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1040
SELECT - SUM ( DISTINCT + + 93 ) FROM tab0
----
-93

query II rowsort
SELECT DISTINCT + - col0, - 5 AS col2 FROM tab2 WHERE ( - col1 IS NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT + COUNT( * ) + - 88 AS col0 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1043
SELECT + COUNT ( * ) + - 88 AS col0 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT - 85 + + + col1 FROM tab2 AS cor0
----
-18
-34
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT DISTINCT - + 53 - CAST( SUM( - 2 ) AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1046
SELECT DISTINCT - + 53 - CAST ( SUM ( - 2 ) AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-47

query I rowsort
SELECT - col1 * + ( + + 83 ) AS col1 FROM tab0
----
-1743
-6723
-83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL - 73 FROM tab2 AS cor0 WHERE NOT ( + 23 NOT IN ( col0, + col1, - 65, + col1, - + CAST( NULL AS SIGNED ) / - - col1 + + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL - 73 FROM tab2 AS cor0 WHERE NOT ( + 23 NOT IN ( col0, + col1, - 65, + col1, - + CAST ( NULL AS INTEGER ) / - - col1 + + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * - col0 * + - col1 col0 FROM tab2 AS cor0
----
12615680
21858750
2482068

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + 27 * + ( - COUNT( * ) ) AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 27 * + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-81

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

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT 70 FROM tab2 AS cor0 WHERE NOT col1 * + CAST ( - + col0 AS REAL ) IS NULL
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL + ( + + SUM( ALL 54 ) ) FROM tab1 cor0
----
162

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL + ( + + SUM ( ALL 54 ) ) FROM tab1 cor0
----
162

query I rowsort
SELECT + + 40 + 18 FROM tab2 AS cor0
----
58
58
58

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT COUNT ( * ) + - - MIN ( - + col2 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - col0 + 98 FROM tab1 cor0
----
13
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1062
SELECT ALL - CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL - CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1063
SELECT DISTINCT - + col0 DIV + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE - 45 IS NOT NULL
----
-1
-10
-1
-47
-1
-99

skipif mysql # not compatible
query II rowsort label-1063
SELECT DISTINCT - + col0 / + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE - 45 IS NOT NULL
----
-1
-10
-1
-47
-1
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - 96 col0 FROM tab0 AS cor0
----
-4512
-9504
-960

query II rowsort
SELECT DISTINCT col0 * + col0, ( col1 ) FROM tab2 AS cor0
----
2116
51
4096
77
5625
67

query I rowsort
SELECT ALL + ( + 23 ) + + 91 AS col0 FROM tab1 AS cor0
----
114
114
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT - col1 + + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - col1 + + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-16
-20
-48

query I rowsort
SELECT DISTINCT - 5 + - col0 FROM tab0
----
-102
-20
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT COUNT( * ) * + 99 FROM tab1, tab1 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-1069
SELECT COUNT ( * ) * + 99 FROM tab1, tab1 AS cor0
----
891

query I rowsort
SELECT ALL col1 + - - col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1071
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1071
SELECT DISTINCT CAST ( NULL AS REAL ) + + col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT 90 * - + ( COUNT( * ) ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-1072
SELECT 90 * - + ( COUNT ( * ) ) FROM tab0
----
-270

query II rowsort
SELECT col1 * - col0 * 14 * + 91 * + col1, + col1 FROM tab1 AS cor0
----
-12734904
14
-256098206
47
-2707250
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab2 AS cor0 WHERE 5 * col0 IS NOT NULL
----
-73
-73
-73

query I rowsort
SELECT - + col1 - col0 * col0 FROM tab1 AS cor0
----
-2615
-7230
-8328

query I rowsort
SELECT 5 FROM tab0 AS cor0 WHERE + ( + col1 ) * 30 + + 47 + - + 83 IN ( - 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 < + col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + - 69 AS col2 FROM tab0 AS cor0
----
-69
-69
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT + CAST( 50 AS SIGNED ) * col0 * - col1 + col1 * col1 * + - ( - - ( - col0 ) ) FROM tab2 AS cor0
----
133056
2346
85425

skipif mysql # not compatible
query I rowsort label-1082
SELECT + CAST ( 50 AS INTEGER ) * col0 * - col1 + col1 * col1 * + - ( - - ( - col0 ) ) FROM tab2 AS cor0
----
133056
2346
85425

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT MIN( ALL - 13 ) AS col1, - COUNT( * ) * 60 AS col1 FROM tab0
----
-13
-180

skipif mysql # not compatible
query II rowsort label-1084
SELECT MIN ( ALL - 13 ) AS col1, - COUNT ( * ) * 60 AS col1 FROM tab0
----
-13
-180

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

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

query I rowsort
SELECT DISTINCT + col0 * - + 13 + - - col1 FROM tab1 AS cor0
----
-1100
-1136
-649

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

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

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( - 21 * ( - - col2 ) / + + col1 + + - col0 ) IS NULL
----
51
85
91

query I rowsort
SELECT 98 * - col0 AS col2 FROM tab1
----
-4998
-8330
-8918

query I rowsort
SELECT ALL + col1 + + 45 AS col1 FROM tab1 AS cor0
----
50
59
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - - 17 NOT BETWEEN + col1 AND + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 32 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 22 + 56 col2 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT ALL - + col0 * + CAST( 55 AS SIGNED ) + 13 AS col2 FROM tab2 cor0
----
-2517
-3507
-4112

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - + col0 * + CAST ( 55 AS INTEGER ) + 13 AS col2 FROM tab2 cor0
----
-2517
-3507
-4112

query II rowsort
SELECT - col0 * - + col0 + + col0, + 48 AS col1 FROM tab2 AS cor0
----
2162
48
4160
48
5700
48

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

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

query I rowsort
SELECT DISTINCT - col1 + col2 + 58 AS col0 FROM tab2
----
21
30
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT ALL 1 * + + 40 DIV - col1 + - ( + col0 ) * + col2 AS col0 FROM tab0
----
-705
-871
-9643

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL 1 * + + 40 / - col1 + - ( + col0 ) * + col2 AS col0 FROM tab0
----
-705
-871
-9643

query I rowsort
SELECT - 9 + + col0 FROM tab0
----
6
78
88

query I rowsort
SELECT DISTINCT - 7 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 49 * - col1 + - col0 AS col1 FROM tab2
----
-2545
-3358
-3837

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT - MAX( col0 ) + - 53 AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1105
SELECT - MAX ( col0 ) + - 53 AS col0 FROM tab0
----
-150

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

query II rowsort
SELECT DISTINCT col0 AS col2, + 3 * 96 FROM tab1 AS cor0
----
51
288
85
288
91
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1108
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1, - 6 FROM tab0
----
15
-6
87
-6
97
-6

skipif mysql # not compatible
query II rowsort label-1108
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1, - 6 FROM tab0
----
15
-6
87
-6
97
-6

query II rowsort
SELECT + 97, + 69 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
97
69
97
69
97
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 col1, - col2 FROM tab0 WHERE NOT ( NOT ( - col0 NOT IN ( 95, - col0, col0, 45 - - col1, - col0 ) ) )
----

query I rowsort
SELECT DISTINCT 81 * 2 * col2 AS col1 FROM tab0
----
16038
1620
7614

query I rowsort
SELECT 50 * col0 * - - col0 * + 17 FROM tab2
----
1798600
3481600
4781250

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

query I rowsort
SELECT ALL - ( + + col1 ) * 78 * - col0 FROM tab0
----
142506
7566
94770

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - MIN( ALL col1 ) col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1116
SELECT - MIN ( ALL col1 ) col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT 81 * + - col0 - + col0 + + - col1 FROM tab1 AS cor0
----
-4196
-6975
-7509

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 * + col1 - - col0 + 36 * col2 ) > ( NULL )
----

query II rowsort
SELECT ALL - col2 AS col0, - 93 - + col2 FROM tab0 AS cor0
----
-10
-103
-47
-140
-99
-192

query I rowsort
SELECT ALL + 14 * 26 AS col2 FROM tab2
----
364
364
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT SUM( DISTINCT 54 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1121
SELECT SUM ( DISTINCT 54 ) AS col1 FROM tab2
----
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1123
SELECT DISTINCT * FROM tab0 WHERE col1 * CAST( 40 AS SIGNED ) NOT BETWEEN ( col1 ) AND ( + 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1123
SELECT DISTINCT * FROM tab0 WHERE col1 * CAST ( 40 AS INTEGER ) NOT BETWEEN ( col1 ) AND ( + 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT DISTINCT + col2 DIV + 85 + - 14 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT + col2 / + 85 + - 14 FROM tab2
----
-14

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

query I rowsort
SELECT + 11 * 72 FROM tab1
----
792
792
792

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + COUNT( * ) * - 51 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-1129
SELECT + COUNT ( * ) * - 51 FROM tab0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 43 col2 FROM tab2
----
-101
-66
-83

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

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

query I rowsort
SELECT DISTINCT col0 - + ( 46 ) * + 46 FROM tab2 WHERE NOT ( col2 ) > ( 47 )
----
-2052
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT 43 * - SUM( ALL + col2 ) AS col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-5203

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT 43 * - SUM ( ALL + col2 ) AS col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-5203

query I rowsort
SELECT col0 + col1 * + col1 AS col0 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT DISTINCT + AVG ( ALL + col0 ) AS col0 FROM tab1 WHERE NOT ( + 91 + col2 * + col0 ) <> + ( 15 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT CAST( + 33 AS SIGNED ) FROM tab1 WHERE NOT col1 NOT IN ( col1 )
----
33
33
33

skipif mysql # not compatible
query I rowsort label-1136
SELECT CAST ( + 33 AS INTEGER ) FROM tab1 WHERE NOT col1 NOT IN ( col1 )
----
33
33
33

query III rowsort
SELECT * FROM tab2 WHERE ( 21 * ( ( - col1 ) ) ) IN ( 82 + - col2 / 74 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT - ( col0 ) DIV col0 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1139
SELECT - ( col0 ) / col0 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT - 67 DIV - col1 AS col0 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 67 / - col1 AS col0 FROM tab1
----
1
13
4

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 63 + 94 * - col2 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT 61 + MIN( DISTINCT - 71 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1144
SELECT 61 + MIN ( DISTINCT - 71 ) FROM tab0 AS cor0
----
-10

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

query I rowsort
SELECT ALL 46 - col1 AS col1 FROM tab0 cor0
----
-35
25
45

query I rowsort
SELECT DISTINCT - col0 + - col0 * + ( col1 * - col2 + - col0 ) FROM tab2 AS cor0
----
201152
297000
56028

query I rowsort
SELECT ALL 73 * 31 FROM tab2 AS cor0
----
2263
2263
2263

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 52 * 82 + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL COUNT( * ) + - 78 FROM tab0 AS cor0 CROSS JOIN tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL COUNT ( * ) + - 78 FROM tab0 AS cor0 CROSS JOIN tab0
----
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT + MIN( - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1152
SELECT DISTINCT + MIN ( - col0 ) col2 FROM tab1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + 77 * + COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + 77 * + COUNT ( * ) FROM tab2 AS cor0
----
231

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col2 * 88 AND + 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + 96 * + col0 AS col0 FROM tab1 AS cor0
----
4896
8160
8736

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT ALL - 77 DIV + - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 77 / + - col2 FROM tab1
----
0
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 48 * + 48 + - col2 * col1 ) >= col1
----
46
51
23

query I rowsort
SELECT + col2 + + col2 / + ( col2 * + col0 ) FROM tab0 WHERE NOT col0 NOT IN ( col0 / col2 )
----

query I rowsort
SELECT ALL + ( + 75 ) AS col0 FROM tab1
----
75
75
75

query I rowsort
SELECT + col2 * - col0 * - 84 FROM tab2
----
215040
365400
88872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT MAX( - col0 ) DIV 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT MAX ( - col0 ) / 71 FROM tab2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT - col1 / + 98 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + + 62 * 55 FROM tab0
----
3411
3431
3491

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 65 - - col2 BETWEEN NULL AND ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col0 * - 97 + ( - 94 - 4 * col2 ) * + 69
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 15 FROM tab2
----
46
15
64
15
75
15

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col2 FROM tab1 cor0
----
59
68
96

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT SUM ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-227

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( - 42 + + CAST( NULL AS SIGNED ) * - ( 24 ) ) < col2
----

skipif mysql # not compatible
query I rowsort label-1182
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( - 42 + + CAST ( NULL AS INTEGER ) * - ( 24 ) ) < col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> ( - 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 + + ( 82 ) * + 32 AS col1 FROM tab2 AS cor0
----
2549
2560
2578

query I rowsort
SELECT ALL ( - 72 ) + + ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 30 AND NULL
----

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

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

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

query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE - 76 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col0 + - 39
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + 62 + - COUNT( * ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1191
SELECT + 62 + - COUNT ( * ) FROM tab1 AS cor0
----
59

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

query I rowsort
SELECT col2 + + col1 * ( - - ( - col1 ) ) - - col1 FROM tab1
----
-2094
-86
39

query I rowsort
SELECT col0 + - + col1 + 20 FROM tab2
----
15
28
7

query III rowsort
SELECT * FROM tab0 WHERE - 38 + - + col0 NOT BETWEEN col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 14 * + 71 * + 83 + - 24 FROM tab2
----
82478
82478
82478

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT + ( + COUNT ( * ) ) / 65 FROM tab2 WHERE NULL NOT IN ( col2 )
----
0

query II rowsort
SELECT - 71 + + + col2, - col2 AS col0 FROM tab0
----
-24
-47
-61
-10
28
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * 12 IS NULL
----

query I rowsort
SELECT col1 + - + ( - - col0 ) * col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL MAX( ALL 86 ) * + COUNT( * ) * - - MAX( + col1 ) + ( MIN( ALL col1 ) ) col2 FROM tab0
----
20899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT ALL MAX ( ALL 86 ) * + COUNT ( * ) * - - MAX ( + col1 ) + ( MIN ( ALL col1 ) ) col2 FROM tab0
----
20899

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / col0 + col2 = ( col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 63 BETWEEN ( - - 1 ) AND + 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT - 92 DIV 71 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - 92 / 71 FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT ALL - col1 + 88 FROM tab0 WHERE - col1 IN ( 1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 65 / + col1 + + 13 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL 28 * + COUNT( * ) * + - 53 col0 FROM tab1
----
-4452

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1209
SELECT ALL 28 * + COUNT ( * ) * + - 53 col0 FROM tab1
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT + 40 + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2, - ( - + col2 ) )
----
40

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT + 40 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2, - ( - + col2 ) )
----
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 ) > ( col2 + - col2 )
----

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

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

query I rowsort
SELECT - 78 * + col1 * - - col1 + - - col1 FROM tab0 AS cor0
----
-34377
-511677
-77

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

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

query II rowsort
SELECT 7 AS col1, + col0 * 89 AS col2 FROM tab1 AS cor0
----
7
4539
7
7565
7
8099

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

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

query I rowsort
SELECT - + 78 * + - col1 AS col2 FROM tab2 AS cor0
----
3978
5226
6006

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > ( col0 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1221
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1221
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - 87 + - 53 * 56 + 85 FROM tab0 AS cor0
----
-2970

query I rowsort
SELECT DISTINCT + + col2 + + 34 AS col0 FROM tab2 AS cor0
----
57
74
92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) * + 13 AS col0 FROM tab1 AS cor0
----
182
611
65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT + + 82 DIV - col1 FROM tab0 AS cor0
----
-1
-3
-82

skipif mysql # not compatible
query I rowsort label-1228
SELECT + + 82 / - col1 FROM tab0 AS cor0
----
-1
-3
-82

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

query I rowsort
SELECT DISTINCT - + col2 * col0 * + 32 AS col0 FROM tab1 AS cor0
----
-156672
-160480
-198016

query I rowsort
SELECT DISTINCT + + col1 + + 83 AS col2 FROM tab0 AS cor0
----
104
164
84

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

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

query I rowsort
SELECT ALL - 14 * - + 60 * col0 * - col1 FROM tab0 cor0
----
-1020600
-1534680
-81480

query II rowsort
SELECT - col0 AS col1, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 35 AS col2 FROM tab2
----
-23
-5
12

query I rowsort
SELECT ALL col2 - - + 26 FROM tab1
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT 67 - + ( + MIN( ALL col1 ) ) * - 27 + - + COUNT( * ) * 52 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT 67 - + ( + MIN ( ALL col1 ) ) * - 27 + - + COUNT ( * ) * 52 FROM tab0
----
-62

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

query I rowsort
SELECT ALL - col1 - - - 18 FROM tab2
----
-69
-85
-95

query I rowsort
SELECT col2 + + - col0 * + - 46 AS col0 FROM tab2
----
2139
2984
3508

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL - 93 * + COUNT( * ) FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - 93 * + COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT CAST( NULL AS SIGNED ) * - 3 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 20 > NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - 11 FROM tab2
----
-253
-440
-638

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL SUM ( - 22 ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-22

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1251
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 29 FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 29 FROM tab1 cor0
----
20

query I rowsort
SELECT + 92 * - col2 AS col1 FROM tab1
----
-5428
-6256
-8832

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT COUNT( * ) + + 31 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1259
SELECT COUNT ( * ) + + 31 FROM tab1
----
34

query I rowsort
SELECT ( 59 ) + ( - col1 ) + - 26 + + col0 FROM tab1
----
113
70
77

query I rowsort
SELECT DISTINCT - col1 * + 34 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT - 86 FROM tab1 WHERE + col2 IS NOT NULL AND NOT 64 <> 78 + - col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT 52 DIV - 96 + - + 39 + - col1 + + col0 + col2 AS col2 FROM tab2 cor0
----
-12
-21
27

skipif mysql # not compatible
query I rowsort label-1264
SELECT 52 / - 96 + - + 39 + - col1 + + col0 + col2 AS col2 FROM tab2 cor0
----
-12
-21
27

query I rowsort
SELECT ALL col0 + - + col1 AS col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT + + col1 - + + col1 + - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1267
SELECT ALL 62 DIV + + COUNT( * ) + 79 + COUNT( * ) AS col2, 28 AS col1 FROM tab1 cor0
----
102
28

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL 62 / + + COUNT ( * ) + 79 + COUNT ( * ) AS col2, 28 AS col1 FROM tab1 cor0
----
102
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1268
SELECT ALL - col0 * - ( 17 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( + + ( col2 ) * col2 * col1 / + - col2 * - col1 + ( + - CAST( - + col1 AS DECIMAL ) ) - - ( col2 + col0 ) * col2 ) >= ( NULL ) AND - col1 >= col0 + + 38
----

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - col0 * - ( 17 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( + + ( col2 ) * col2 * col1 / + - col2 * - col1 + ( + - CAST ( - + col1 AS REAL ) ) - - ( col2 + col0 ) * col2 ) >= ( NULL ) AND - col1 >= col0 + + 38
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT - ( col1 ) + + CAST( - - 91 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
44
77
86

skipif mysql # not compatible
query I rowsort label-1270
SELECT - ( col1 ) + + CAST ( - - 91 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT col0 * + + ( CAST( + 67 AS SIGNED ) ) FROM tab1
----
3417
5695
6097

skipif mysql # not compatible
query I rowsort label-1271
SELECT col0 * + + ( CAST ( + 67 AS INTEGER ) ) FROM tab1
----
3417
5695
6097

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT + col2 * - 88 + - + col2 * + col2 * + 68 * - 19 + col2 FROM tab1 WHERE NOT + - col1 * CAST( NULL AS SIGNED ) * 65 + - - col2 > + + col1
----

skipif mysql # not compatible
query I rowsort label-1273
SELECT + col2 * - 88 + - + col2 * + col2 * + 68 * - 19 + col2 FROM tab1 WHERE NOT + - col1 * CAST ( NULL AS INTEGER ) * 65 + - - col2 > + + col1
----

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( * ) * + MAX ( ALL 60 ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + MIN( ALL 17 ) AS col1 FROM tab0, tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1275
SELECT + MIN ( ALL 17 ) AS col1 FROM tab0, tab1 AS cor0
----
17

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 * + 75 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1277
SELECT * FROM tab1 WHERE NOT - 89 NOT BETWEEN ( NULL ) AND - CAST( + col2 AS DECIMAL ) + - + col2
----

skipif mysql # not compatible
query III rowsort label-1277
SELECT * FROM tab1 WHERE NOT - 89 NOT BETWEEN ( NULL ) AND - CAST ( + col2 AS REAL ) + - + col2
----

query I rowsort
SELECT - col0 * - col2 + + + col1 AS col1 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT + MAX( ALL - - col2 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-1279
SELECT + MAX ( ALL - - col2 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
99
3

query I rowsort
SELECT - + 6 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - - col0 NOT BETWEEN - + col2 * + + 62 AND ( NULL )
----
64
77
40
75
67
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT ALL - COUNT( * ) AS col0, - 30 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1284
SELECT ALL - COUNT ( * ) AS col0, - 30 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9
-30

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT ALL CAST( col2 AS SIGNED ) * col2 + + 5 AS col1 FROM tab2 AS cor0
----
1605
3369
534

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL CAST ( col2 AS INTEGER ) * col2 + + 5 AS col1 FROM tab2 AS cor0
----
1605
3369
534

query I rowsort
SELECT ALL 38 + + + col1 FROM tab1 AS cor0
----
43
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT - + MAX( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE + col0 * - col1 <> + col2 + + - col1
----
46

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE + col0 * - col1 <> + col2 + + - col1
----
46

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

query II rowsort
SELECT + 48 + ( + col2 ) AS col2, - 93 * + - col2 FROM tab1 AS cor0
----
107
5487
116
6324
144
8928

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

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

query I rowsort
SELECT + 58 FROM tab0 cor0 WHERE NOT 21 * col1 IS NULL
----
58
58
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT + col1 * - ( - 33 ) - col2 DIV 84 - + - 96 - - 17 col1 FROM tab0 AS cor0 WHERE 94 NOT IN ( - + col1 )
----
145
2786
806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1296
SELECT DISTINCT + col1 * - ( - 33 ) - col2 / 84 - + - 96 - - 17 col1 FROM tab0 AS cor0 WHERE 94 NOT IN ( - + col1 )
----
145
2786
806

query II rowsort
SELECT ALL - col1 * col1 AS col1, col1 + + 91 AS col0 FROM tab1
----
-196
105
-2209
138
-25
96

query I rowsort
SELECT DISTINCT col2 + - 77 FROM tab1
----
-18
-9
19

query I rowsort
SELECT ALL + 52 * + 9 + + col2 AS col1 FROM tab0
----
478
515
567

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT ALL + + 25 DIV + MIN( DISTINCT - 12 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + + 25 / + MIN ( DISTINCT - 12 ) FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1305
SELECT ALL + COUNT( * ) * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

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

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

query II rowsort
SELECT + - 89 AS col2, - 14 AS col2 FROM tab0 cor0
----
-89
-14
-89
-14
-89
-14

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

query I rowsort
SELECT - 36 FROM tab0 AS cor0 WHERE NOT col2 + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1311
SELECT ALL col2, col2 DIV + col0 FROM tab2 cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL col2, col2 / + col0 FROM tab2 cor0
----
23
0
40
0
58
0

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IN ( - + col2, - col0 / + + 62 * - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL 94 AS col1, 95 AS col1 FROM tab0
----
94
95
94
95
94
95

query II rowsort
SELECT DISTINCT col1, col0 * + 2 AS col2 FROM tab1
----
14
102
47
182
5
170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1317
SELECT ALL - col2, col2 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to c77121c2fec0aea06ef03a815831586f

skipif mysql # not compatible
query III rowsort label-1317
SELECT ALL - col2, col2 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to c77121c2fec0aea06ef03a815831586f

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 26 + + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT - COUNT( ALL + - col0 ), 33 AS col0 FROM tab1 WHERE NOT - ( + col0 ) NOT IN ( + 33 )
----
0
33

skipif mysql # not compatible
query II rowsort label-1321
SELECT - COUNT ( ALL + - col0 ), 33 AS col0 FROM tab1 WHERE NOT - ( + col0 ) NOT IN ( + 33 )
----
0
33

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

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

query I rowsort
SELECT ALL 41 * 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 + col2 * + - 54 AS col0 FROM tab1 AS cor0
----
-3245
-3740
-5280

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

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

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

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

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

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

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

query I rowsort
SELECT col1 * col0 + - + col0 + 2 + col2 + - + 88 - - col2 + - ( + - col2 ) * - col1 + - col2 * col0 - col0 FROM tab1
----
-5023
-5239
-5522

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL COUNT( * ) + 80 col1 FROM tab1
----
83

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

query I rowsort
SELECT ALL - ( col2 ) * col1 - - - col1 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT 40 * - col1 AS col2 FROM tab2 AS cor0
----
-2040
-2680
-3080

query I rowsort
SELECT + col2 * col2 - col0 FROM tab2
----
1536
3289
483

query I rowsort
SELECT ALL + col1 + ( + + col2 ) * + col0 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT + - ( col2 ) FROM tab0 cor0 WHERE NOT ( NULL NOT IN ( col2 / + col2 * + + col0 - - 49, col1 ) )
----

query I rowsort
SELECT 77 * - + col2 AS col0 FROM tab2 AS cor0
----
-1771
-3080
-4466

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 ) NOT IN ( + col2, - col2 * - 17, - col1, + col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * + - ( - + col0 ) * col2 col2 FROM tab2 AS cor0
----
-148480
-252300
-61364

query I rowsort
SELECT + col1 * 37 AS col1 FROM tab0
----
2997
37
777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) * 15 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 15 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - MIN( + 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-1344
SELECT - MIN ( + 45 ) FROM tab1
----
-45

query I rowsort
SELECT - + 84 FROM tab2 cor0
----
-84
-84
-84

query II rowsort
SELECT + 38, - 34 AS col0 FROM tab1 AS cor0
----
38
-34
38
-34
38
-34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1348
SELECT ALL + COUNT( * ), SUM( + - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
3
-227

skipif mysql # not compatible
query II rowsort label-1348
SELECT ALL + COUNT ( * ), SUM ( + - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
3
-227

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

query I rowsort
SELECT + col2 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT - + SUM( DISTINCT col1 ) + - 71 col2 FROM tab1 AS cor0
----
-137

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

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

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

query I rowsort
SELECT + - col0 + + - 46 AS col2 FROM tab1 AS cor0
----
-131
-137
-97

query II rowsort
SELECT DISTINCT + - col0, 28 * - - col2 AS col0 FROM tab1 AS cor0
----
-51
2688
-85
1652
-91
1904

query II rowsort
SELECT + 76 AS col0, - 10 AS col2 FROM tab2 AS cor0
----
76
-10
76
-10
76
-10

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab2 cor0 WHERE NULL >= col2
----

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + 86 FROM tab2 AS cor0
----
132
150
161

query I rowsort
SELECT + col1 * + col1 FROM tab2 WHERE NULL IS NULL
----
2601
4489
5929

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + 24 + ( + - col2 ) - + col2 + + - col1 * - 85 + + 51 + - col2 * - 40 * col2 - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
392001
5819
95145

skipif mysql # not compatible
query I rowsort label-1363
SELECT + 24 + ( + - col2 ) - + col2 + + - col1 * - 85 + + 51 + - col2 * - 40 * col2 - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
392001
5819
95145

query I rowsort
SELECT 81 + + col1 AS col0 FROM tab2 AS cor0
----
132
148
158

query I rowsort
SELECT - col0 + col0 + - 64 - ( + - col0 ) * + col0 FROM tab2 AS cor0
----
2052
4032
5561

query I rowsort
SELECT ALL + col2 * 76 - - + 83 FROM tab1 AS cor0
----
4567
5251
7379

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

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

query I rowsort
SELECT DISTINCT 61 + + - col0 FROM tab1
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT DISTINCT + 73 * MAX( + col0 ) AS col2, - 20 FROM tab1 AS cor0
----
6643
-20

skipif mysql # not compatible
query II rowsort label-1370
SELECT DISTINCT + 73 * MAX ( + col0 ) AS col2, - 20 FROM tab1 AS cor0
----
6643
-20

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

skipif mysql # not compatible
query I rowsort label-1371
SELECT SUM ( + + col0 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
555

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 * + + col1 FROM tab0 AS cor0
----
-5346
1386
96

query I rowsort
SELECT ALL + ( + ( col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT - COUNT( col1 ) * + COUNT( col0 ) * - 48 FROM tab2 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT - COUNT ( col1 ) * + COUNT ( col0 ) * - 48 FROM tab2 AS cor0
----
432

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

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

skipif mysql # not compatible
query III rowsort label-1376
SELECT * FROM tab2 WHERE NOT ( NOT NULL = + ( + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL - 1 DIV col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - 1 / col1 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT - 67 DIV + col2 AS col1, col0 + 4 col1 FROM tab0
----
-1
19
-6
91
0
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1378
SELECT - 67 / + col2 AS col1, col0 + 4 col1 FROM tab0
----
-1
19
-6
91
0
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab1 WHERE NOT ( ( + col1 >= - col1 ) )
----

query I rowsort
SELECT - 33 * col2 FROM tab0
----
-1551
-3267
-330

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 * - - 1 < + + 70
----

query II rowsort
SELECT col0 * - col2 AS col0, + 92 FROM tab2
----
-1058
92
-2560
92
-4350
92

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

query I rowsort
SELECT + 68 FROM tab0 WHERE NOT ( NOT NULL >= ( NULL ) )
----

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL col1 * + 62 AS col2 FROM tab2 AS cor0
----
3162
4154
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + COUNT( * ) + - ( - 25 ) AS col0 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + COUNT ( * ) + - ( - 25 ) AS col0 FROM tab0 cor0
----
28

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1389
SELECT DISTINCT - - col1 + + CAST( NULL AS DECIMAL ) AS col1, - col1 * + 51 * + - 75 FROM tab2 cor0
----
NULL
195075
NULL
256275
NULL
294525

skipif mysql # not compatible
query II rowsort label-1389
SELECT DISTINCT - - col1 + + CAST ( NULL AS REAL ) AS col1, - col1 * + 51 * + - 75 FROM tab2 cor0
----
NULL
195075
NULL
256275
NULL
294525

query I rowsort
SELECT ALL col1 * 80 + - - col2 + + col0 FROM tab1
----
1267
3919
544

query I rowsort
SELECT ALL + col2 + - 54 * - - col2 * + col0 + - 14 FROM tab1
----
-264302
-270765
-334098

query I rowsort
SELECT ALL + 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL + - col1 DIV col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + - col1 / col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-24
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 <> - col1 * - col0 * 3 * 6 + + col1 + + - col1 * 24 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 <> - col1 * - col0 * 3 * 6 + + col1 + + - col1 * 24 * + col2
----
0

query I rowsort
SELECT + col0 + + col0 - col0 * 51 AS col1 FROM tab0 AS cor0
----
-4263
-4753
-735

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + + col0 FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT - 46 * - 37 + ( + 21 ) FROM tab0
----
1723
1723
1723

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - + 49 col0 FROM tab2
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1402
SELECT DISTINCT + col2 * - + CAST( - col2 AS SIGNED ) * - - 52 + - col2 FROM tab2 AS cor0
----
174870
27485
83160

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + col2 * - + CAST ( - col2 AS INTEGER ) * - - 52 + - col2 FROM tab2 AS cor0
----
174870
27485
83160

query I rowsort
SELECT ALL + col1 + - 61 * - col1 * col0 + + 96 FROM tab1 cor0
----
26026
261040
43664

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab0, tab0 AS cor0
----
-86

query I rowsort
SELECT DISTINCT 29 * + - 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-783

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-1408
SELECT + - COUNT( ALL - col2 ), + 18 * - - 78 AS col2 FROM tab2 AS cor0
----
-3
1404

skipif mysql # not compatible
query II rowsort label-1408
SELECT + - COUNT ( ALL - col2 ), + 18 * - - 78 AS col2 FROM tab2 AS cor0
----
-3
1404

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

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

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

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

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1414
SELECT DISTINCT - 0 * - + COUNT( * ) + - 18 AS col1, COUNT( * ) + - COUNT( * ) - + 76 FROM tab2 AS cor0
----
-18
-76

skipif mysql # not compatible
query II rowsort label-1414
SELECT DISTINCT - 0 * - + COUNT ( * ) + - 18 AS col1, COUNT ( * ) + - COUNT ( * ) - + 76 FROM tab2 AS cor0
----
-18
-76

query I rowsort
SELECT ALL 43 + - - col2 AS col2 FROM tab1 WHERE NOT + 89 / - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 2 - + + 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) >= - ( + ( CAST( NULL AS SIGNED ) ) ) * - col1
----

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) >= - ( + ( CAST ( NULL AS INTEGER ) ) ) * - col1
----

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

skipif mysql # not compatible
query I rowsort label-1420
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL - 90 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - 90 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-93

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

query I rowsort
SELECT ALL - col0 - - col1 + - col2 + - ( 4 ) FROM tab1
----
-116
-137
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + - MIN( DISTINCT 23 ) AS col2 FROM tab0 WHERE col2 * - 92 < + col1 * col2 - 10
----
-23

skipif mysql # not compatible
query I rowsort label-1424
SELECT + - MIN ( DISTINCT 23 ) AS col2 FROM tab0 WHERE col2 * - 92 < + col1 * col2 - 10
----
-23

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( 31 + col2 + - col0 < - + col1 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - 10 + COUNT( * ) + + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 10 + COUNT ( * ) + + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
90

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

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

query I rowsort
SELECT + + 74 * 39 AS col1 FROM tab1 AS cor0
----
2886
2886
2886

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

query I rowsort
SELECT ALL - 96 * + + col0 FROM tab0
----
-1440
-8352
-9312

query I rowsort
SELECT - 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT COUNT( * ) DIV + 50 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1438
SELECT COUNT ( * ) / + 50 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + col2 * - 71 FROM tab0 AS cor0
----
-3337
-7029
-710

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

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

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

query I rowsort
SELECT DISTINCT 74 * + 8 + + col1 FROM tab2
----
643
659
669

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT 84 + + ( + col2 ) * + CAST( - + col2 AS SIGNED ) + + 5 FROM tab2
----
-1511
-3275
-440

skipif mysql # not compatible
query I rowsort label-1444
SELECT 84 + + ( + col2 ) * + CAST ( - + col2 AS INTEGER ) + + 5 FROM tab2
----
-1511
-3275
-440

query I rowsort
SELECT ALL 41 * 32 AS col1 FROM tab0
----
1312
1312
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT - MAX( DISTINCT + 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - MAX ( DISTINCT + 66 ) FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 BETWEEN + + col1 AND NULL
----
91
47
68

query I rowsort
SELECT ALL + - 5 + - col1 + - 28 FROM tab2 AS cor0
----
-100
-110
-84

query I rowsort
SELECT DISTINCT + 2 + 43 AS col1 FROM tab1
----
45

query I rowsort
SELECT DISTINCT - 69 + + - 21 AS col0 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT + SUM( - 70 ) AS col1, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630
9

skipif mysql # not compatible
query II rowsort label-1451
SELECT + SUM ( - 70 ) AS col1, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630
9

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

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

query I rowsort
SELECT ALL - col2 - 18 AS col0 FROM tab0 AS cor0
----
-117
-28
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 5 + MIN( col1 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1455
SELECT 5 + MIN ( col1 ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT - + col1 DIV + col1 + - 44 + ( - - col0 ) * + + col2 * - - 60 AS col0 FROM tab0 AS cor0
----
42255
52155
576135

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - + col1 / + col1 + - 44 + ( - - col0 ) * + + col2 * - - 60 AS col0 FROM tab0 AS cor0
----
42255
52155
576135

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

skipif mysql # not compatible
query I rowsort label-1457
SELECT + col0 / + 16 FROM tab0
----
0
5
6

query I rowsort
SELECT ALL - 79 + + - col2 - col2 AS col2 FROM tab1
----
-197
-215
-271

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab0 AS cor0 WHERE NOT + col2 <> + col2 + - col2 * col2
----

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

query I rowsort
SELECT + + 13 AS col2 FROM tab1 cor0
----
13
13
13

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

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

query I rowsort
SELECT + + 29 FROM tab1 cor0
----
29
29
29

onlyif mysql # DIV for integer division: 
query II rowsort label-1465
SELECT - + col0 AS col1, col2 DIV - ( - - 74 ) AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-1465
SELECT - + col0 AS col1, col2 / - ( - - 74 ) AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT COUNT( * ) * - 72 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1468
SELECT COUNT ( * ) * - 72 FROM tab0
----
-216

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

query I rowsort
SELECT + col2 * + + col1 * ( - - 52 ) * col1 AS col1 FROM tab2
----
12332320
13538824
3110796

query I rowsort
SELECT + 22 AS col0 FROM tab1 AS cor0 WHERE col1 + - ( - - col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT 18 DIV + 8 AS col0 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1472
SELECT 18 / + 8 AS col0 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT DISTINCT + 62 + - col0 + - 97, col2 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT + + col2 + + 14 FROM tab0 AS cor0
----
113
24
61

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT + col2 DIV + + col1 - - col2 - - col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1478
SELECT + col2 / + + col1 - - col2 - - col2 FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT DISTINCT + + col2 * - col1 AS col0, col1 AS col2 FROM tab1 cor0
----
-1344
14
-295
5
-3196
47

query I rowsort
SELECT DISTINCT col2 * + 52 + - 37 FROM tab0 AS cor0
----
2407
483
5111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT - CAST( - 62 AS SIGNED ) * 89 * - - col1 + col1 + + 38 AS col0 FROM tab2 WHERE NOT - + 58 NOT IN ( 84, + col1, - ( + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1481
SELECT - CAST ( - 62 AS INTEGER ) * 89 * - - col1 + col1 + + 38 AS col0 FROM tab2 WHERE NOT - + 58 NOT IN ( 84, + col1, - ( + col0 ) )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT + COUNT( * ) DIV - 16 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + COUNT ( * ) / - 16 AS col0 FROM tab2
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1485
SELECT ALL - - col0 FROM tab1 WHERE NOT - col2 = col1 + + 27 + - CAST( + col2 AS DECIMAL ) * + - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - - col0 FROM tab1 WHERE NOT - col2 = col1 + + 27 + - CAST ( + col2 AS REAL ) * + - col1
----
51
85
91

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * col0 - + + col0 * + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1911
4182
4590

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + + col1 col1 FROM tab0 AS cor0
----
144
64
84

query II rowsort
SELECT DISTINCT 60 + + + 12 + - col1 * - col1 + - ( col1 ), + col2 * - 83 AS col0 FROM tab2
----
2622
-1909
4494
-4814
5924
-3320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + 24 + col0 * col2 col2 FROM tab2
----
1034
2536
4326

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ( + 76 ) * + - 11 + col2 + + 35 + - col0 + + col1 FROM tab2
----
-748
-751
-773

query I rowsort
SELECT col0 * - 5 + col2 FROM tab0
----
-28
-386
-425

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT col1 + 29 - + col0 - - 38 DIV + 35 AS col0 FROM tab0
----
-36
-66
96

skipif mysql # not compatible
query I rowsort label-1498
SELECT col1 + 29 - + col0 - - 38 / + 35 AS col0 FROM tab0
----
-36
-66
96

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

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

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

query I rowsort
SELECT 19 AS col2 FROM tab2 AS cor0 WHERE ( NULL >= ( - ( col2 ) ) )
----

query I rowsort
SELECT ALL + 17 * + 25 AS col1 FROM tab2 cor0
----
425
425
425

query II rowsort
SELECT ALL + 16 - col0, col1 AS col0 FROM tab2 cor0
----
-30
51
-48
77
-59
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col2 = + 25
----

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 3 + - col1 + - col0 AND + col1
----

query I rowsort
SELECT - 34 FROM tab0 AS cor0 WHERE NOT col2 * - col1 IN ( col1 + - ( - col2 ), + 65 )
----
-34
-34
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT + + MIN( + + 82 ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1508
SELECT + + MIN ( + + 82 ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
82

query II rowsort
SELECT ALL 0 * - 78 AS col2, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED ) - - 16
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER ) - - 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT + COUNT( * ) FROM tab1 WHERE NOT - - col1 * + - col0 < - - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - - col1 * + - col0 < - - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 89 * 38 FROM tab2 AS cor0
----
3382

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT - col2 + col0 + CAST( col0 AS SIGNED ) * 20 FROM tab1 cor0
----
1726
1843
975

skipif mysql # not compatible
query I rowsort label-1515
SELECT - col2 + col0 + CAST ( col0 AS INTEGER ) * 20 FROM tab1 cor0
----
1726
1843
975

query I rowsort
SELECT ALL 69 * + col2 FROM tab1 AS cor0
----
4071
4692
6624

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN 73 AND + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - - 11 ) * - + 8 AS col2 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1519
SELECT ALL - MIN( DISTINCT + col0 ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - MIN ( DISTINCT + col0 ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - + col2 + + - 88 AS col2 FROM tab1 AS cor0
----
-147
-156
-184

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1522
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + col0 / - col0 >= - - col0 * - col1 - - col2 * - col0 + - - 38 + CAST( NULL AS SIGNED ) + - 16 * col0
----

skipif mysql # not compatible
query III rowsort label-1522
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + col0 / - col0 >= - - col0 * - col1 - - col2 * - col0 + - - 38 + CAST ( NULL AS INTEGER ) + - 16 * col0
----

query I rowsort
SELECT DISTINCT 91 + - + col2 FROM tab0
----
-8
44
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT + 36 + + MAX( DISTINCT + 75 ) AS col2 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + 36 + + MAX ( DISTINCT + 75 ) AS col2 FROM tab2
----
111

query I rowsort
SELECT DISTINCT - col0 + + + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1527
SELECT ALL * FROM tab0 WHERE NOT ( + 93 / - col0 + + 88 - + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1527
SELECT ALL * FROM tab0 WHERE NOT ( + 93 / - col0 + + 88 - + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 8 - - + 62 AS col2 FROM tab0 AS cor0
----
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE + col1 * + + col0 <= NULL
----

query I rowsort
SELECT ALL + col0 * 63 + - col2 FROM tab2 AS cor0
----
2875
3992
4667

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT DISTINCT + MIN( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + MIN ( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

query I rowsort
SELECT + col2 * + col2 * - ( - + 80 ) * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-18031040
-2158320
-9856000

query I rowsort
SELECT - 16 * - col2 + 80 FROM tab0 cor0
----
1664
240
832

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

query I rowsort
SELECT - ( + col1 ) * + - 42 AS col2 FROM tab1
----
1974
210
588

onlyif mysql # DIV for integer division: 
query II rowsort label-1537
SELECT - col1 AS col1, + 35 DIV col1 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-1537
SELECT - col1 AS col1, + 35 / col1 FROM tab2
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 76 + - col0 FROM tab0
----
10
-163
47
-91
99
-173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1539
SELECT 98 AS col1, + 89 + - - col1 * ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab1
----
98
4366
98
514
98
803

skipif mysql # not compatible
query II rowsort label-1539
SELECT 98 AS col1, + 89 + - - col1 * ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab1
----
98
4366
98
514
98
803

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 97 - - - col0 * col0 = NULL
----

query II rowsort
SELECT col0, - col2 * - - col0 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + SUM( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col1 + col1 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT + SUM ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col1 + col1 + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE 50 - - col0 NOT BETWEEN + col2 AND + col0 - ( ( + 63 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE 50 - - col0 NOT BETWEEN + col2 AND + col0 - ( ( + 63 ) )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1544
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1544
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT + COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1546
SELECT + COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT ALL - 23 * + col0 * - col1 AS col1 FROM tab2
----
113344
115575
53958

query I rowsort
SELECT DISTINCT + 12 * + 14 * + + col2 AS col2 FROM tab0
----
16632
1680
7896

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + COUNT( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1549
SELECT + COUNT ( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + col2 + col1 * + 31 + col1 FROM tab0
----
2624
34
595

query I rowsort
SELECT + 74 + + col1 AS col2 FROM tab0
----
155
75
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col2 ) + - col0 col2, - col2 FROM tab0
----
-77
-10
2
-99
32
-47

query I rowsort
SELECT col0 + - + 31 FROM tab1
----
20
54
60

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE + - col1 BETWEEN - col0 + - 56 + - col2 + - col0 * - - 60 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL + COUNT( * ) - + 90 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + COUNT ( * ) - + 90 FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1557
SELECT ALL - CAST( NULL AS SIGNED ) * + ( col0 ), + 34 FROM tab1 WHERE NOT - 57 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1557
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( col0 ), + 34 FROM tab1 WHERE NOT - 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 87 col2, ( 10 ) FROM tab2 AS cor0
----
87
10
87
10
87
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT - 39 DIV + col1 AS col1 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT - 39 / + col1 AS col1 FROM tab1
----
-2
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT col2 DIV + 93 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1561
SELECT col2 / + 93 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT + 29 DIV 51 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 29 / 51 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT + 62 DIV 26 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 62 / 26 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - MIN( - col0 ) col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT - MIN ( - col0 ) col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT ALL + col0 + 38 AS col0 FROM tab1
----
123
129
89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT ALL + 23 DIV col0 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + 23 / col0 + - col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN col1 * col2 AND 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 98 + col1 AS col2 FROM tab2
----
149
165
175

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

query I rowsort
SELECT - col1 * - col1 + - col2 AS col2 FROM tab1
----
-34
100
2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL - CAST( + SUM( col2 ) AS SIGNED ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - CAST ( + SUM ( col2 ) AS INTEGER ) FROM tab2
----
-121

query I rowsort
SELECT 20 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1574
SELECT CAST( NULL AS SIGNED ) * ( CAST( + col0 AS DECIMAL ) / 14 ) FROM tab2 WHERE ( 57 + 37 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT CAST ( NULL AS INTEGER ) * ( CAST ( + col0 AS REAL ) / 14 ) FROM tab2 WHERE ( 57 + 37 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 45 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 10 / - 79 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL COUNT( DISTINCT 87 ) * MIN( DISTINCT - col1 ) + MIN( DISTINCT col1 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL COUNT ( DISTINCT 87 ) * MIN ( DISTINCT - col1 ) + MIN ( DISTINCT col1 ) FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1578
SELECT DISTINCT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 25 AND 85 + + col0
----

skipif mysql # not compatible
query III rowsort label-1578
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 25 AND 85 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT col2 DIV - 89 + col1 * - col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1579
SELECT col2 / - 89 + col1 * - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - col0 * + 91 + col1 AS col2 FROM tab0
----
-1284
-7896
-8826

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT - 50 DIV + 92 + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - 50 / + 92 + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT - ( ( ( 40 ) ) ) - - COUNT( * ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-1582
SELECT - ( ( ( 40 ) ) ) - - COUNT ( * ) FROM tab1
----
-37

query I rowsort
SELECT DISTINCT col1 + + 71 FROM tab0
----
152
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - SUM( 6 ) AS col2 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1584
SELECT - SUM ( 6 ) AS col2 FROM tab0 cor0
----
-18

query I rowsort
SELECT col0 + + col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT ALL - 10 DIV + col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - 10 / + col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1588
SELECT + ( + ( - COUNT( ALL col0 ) ) ) + - COUNT( + col1 ) DIV CAST( 23 AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1588
SELECT + ( + ( - COUNT ( ALL col0 ) ) ) + - COUNT ( + col1 ) / CAST ( 23 AS INTEGER ) AS col2 FROM tab2
----
-3

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

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

query I rowsort
SELECT + + col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT ALL + + MAX ( 58 ) col1 FROM tab2 AS cor0
----
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT ALL + 59 AS col2 FROM tab1 cor0 WHERE NOT ( 39 ) IN ( - col1 )
----
59
59
59

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL col2 * col2 + + 96 AS col0 FROM tab0 AS cor0
----
196
2305
9897

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1600
SELECT - - CAST ( 74 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + 81 + col2 * + 39 AS col1 FROM tab2 AS cor0
----
1641
2343
978

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL + COUNT( DISTINCT 83 ) - - 64 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + COUNT ( DISTINCT 83 ) - - 64 FROM tab1
----
65

query I rowsort
SELECT + col2 * col2 FROM tab2 WHERE col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1604
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND + 1 * CAST( ( col1 ) AS DECIMAL ) - - col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1604
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND + 1 * CAST ( ( col1 ) AS REAL ) - - col0 * + CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT + ( + - 13 ) * 46 - ( col1 + 55 * - 36 ) * - 56 AS col1 FROM tab1
----
-108846
-110694
-111198

query I rowsort
SELECT - col1 - - col2 + 55 FROM tab0
----
153
21
44

query I rowsort
SELECT - ( + - col0 ) * - col2 + - 11 * col1 FROM tab1
----
-5050
-5070
-6705

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT CAST( NULL AS SIGNED ) / 85 FROM tab1 AS cor0 WHERE col0 + - ( + col1 + - col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT CAST ( NULL AS INTEGER ) / 85 FROM tab1 AS cor0 WHERE col0 + - ( + col1 + - col0 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 48 = 97 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 16 <> 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL SUM( DISTINCT + - 65 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL SUM ( DISTINCT + - 65 ) FROM tab2
----
-65

query I rowsort
SELECT + 43 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT - 27 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 / + col0 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + col1 + 35 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 * + col0
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 78 = ( + 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 62 * + ( + 87 ) AS col1 FROM tab0
----
5394
5394
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( - - col0 * + col2 ) < col0
----
-3

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( - - col0 * + col2 ) < col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT 20 * - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * 73 + + CAST( 48 AS SIGNED ) * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT 20 * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * 73 + + CAST ( 48 AS INTEGER ) * - col2 )
----
0

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

query I rowsort
SELECT - 4 / col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + + 58 AND + 34 - - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 43 NOT IN ( ( col2 ) + - 0 )
----

query I rowsort
SELECT 11 * 51 AS col0 FROM tab1
----
561
561
561

query I rowsort
SELECT + col0 + - - col1 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT ( - col2 ) * - - col1 + - 50 * + 19 AS col2 FROM tab2
----
-2123
-4030
-4836

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT ALL + col2 + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + col2 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
196
62
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - - MIN( DISTINCT - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-1641
SELECT - - MIN ( DISTINCT - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col0 + + 52 + + ( + 71 ) < + ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL ( + ( + col2 ) ) DIV - + col2 + + col0 DIV + col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL ( + ( + col2 ) ) / - + col2 + + col0 / + col2 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT + ( + 43 ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - 34 + - 42 AS col1 FROM tab0 AS cor0
----
-61
11
21

query I rowsort
SELECT - - col1 FROM tab2 WHERE - col0 * + 88 IS NULL
----

query I rowsort
SELECT ALL + col0 - 39 AS col1 FROM tab1
----
12
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT SUM( + 95 ) * + COUNT( * ) FROM tab1 WHERE 15 + + + col1 - ( + col1 ) IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT SUM ( + 95 ) * + COUNT ( * ) FROM tab1 WHERE 15 + + + col1 - ( + col1 ) IN ( - col1 )
----
NULL

query I rowsort
SELECT - 93 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + - col1 col1 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT ALL 34 col0, COUNT( * ) * - 75 AS col2 FROM tab0 WHERE + col2 IS NULL
----
34
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1651
SELECT ALL 34 col0, COUNT ( * ) * - 75 AS col2 FROM tab0 WHERE + col2 IS NULL
----
34
0

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT - COUNT ( - col2 ) AS col0 FROM tab1
----
-3

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

query I rowsort
SELECT - ( col0 ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( 50 - + 43 ) AND + 0
----
-51
-85
-91

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

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

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

query I rowsort
SELECT 0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1658
SELECT DISTINCT 48 * col1 AS col2, CAST( 36 AS SIGNED ) * + - col0 + + 64 FROM tab1
----
2256
-3212
240
-2996
672
-1772

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT 48 * col1 AS col2, CAST ( 36 AS INTEGER ) * + - col0 + + 64 FROM tab1
----
2256
-3212
240
-2996
672
-1772

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 BETWEEN - col2 AND - col0
----

query I rowsort
SELECT DISTINCT 50 * col2 + 98 FROM tab1 AS cor0
----
3048
3498
4898

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - - col2 * 90
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1666
SELECT 1 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT 1 * + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + + MIN( - 66 ) FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1669
SELECT + + MIN ( - 66 ) FROM tab0 cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 27 ) > col0 * + col0
----

query III rowsort
SELECT ALL + ( col1 ) + 95 AS col0, - col0 AS col2, + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 8e32c4a3729d39e03569cf1fb3e072f8

query I rowsort
SELECT ALL - 14 * + + 59 / - - 63 FROM tab0 cor0 WHERE NOT 62 IS NOT NULL
----

query II rowsort
SELECT + 99 * + ( - 97 ) AS col1, ( col0 ) AS col2 FROM tab1 AS cor0
----
-9603
51
-9603
85
-9603
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1674
SELECT DISTINCT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) NOT IN ( + - 41 * 32 )
----

skipif mysql # not compatible
query III rowsort label-1674
SELECT DISTINCT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) NOT IN ( + - 41 * 32 )
----

query I rowsort
SELECT ALL + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 10 + col0 col0 FROM tab2 AS cor0
----
556
745
834

query I rowsort
SELECT + + 20 * - 14 + - 83 FROM tab2 AS cor0
----
-363
-363
-363

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 88 + + 47 * + - col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + + col0 AND + + 94
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT + MAX( - - col0 ) + - 98 AS col1 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT + MAX ( - - col0 ) + - 98 AS col1 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT + ( - - col2 ) DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1681
SELECT + ( - - col2 ) / col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + ( - + col1 ) * + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 * - 14 * + 83 + col0 FROM tab0
----
-101007
-112617
-17415

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + COUNT( * ) col2 FROM tab2 WHERE NULL < - col1 AND NOT col1 NOT IN ( col0, + col1 * + + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1684
SELECT + COUNT ( * ) col2 FROM tab2 WHERE NULL < - col1 AND NOT col1 NOT IN ( col0, + col1 * + + col2 )
----
0

query I rowsort
SELECT + 92 * 57 * + + 3 AS col1 FROM tab1
----
15732
15732
15732

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + MAX( + col1 ) col0 FROM tab1 cor0
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + - COUNT( * ) * + + 69 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + - COUNT ( * ) * + + 69 FROM tab0 AS cor0
----
-207

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT DISTINCT + col2 DIV - col0 + - 62 FROM tab0 cor0
----
-62
-63
-65

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + col2 / - col0 + - 62 FROM tab0 cor0
----
-62
-63
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + - ( col2 ) + col1 col2 FROM tab1
----
-118
-146
-85

query I rowsort
SELECT + col1 * 78 + - col1 FROM tab0
----
1617
6237
77

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

query I rowsort
SELECT - 20 * - 73 * + ( + ( + + 89 ) ) + - col1 * col1 AS col1 FROM tab2
----
124011
125451
127339

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL MIN( + ( + - 97 ) ) AS col2 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL MIN ( + ( + - 97 ) ) AS col2 FROM tab1
----
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + + - 69 + 58 col1 FROM tab1 AS cor0 WHERE - 19 BETWEEN + 11 * - col1 AND col2
----
3470
4613
9205

query II rowsort
SELECT DISTINCT + col1 + + col1 AS col2, + col1 * + col2 AS col2 FROM tab0 AS cor0
----
162
3807
2
99
42
210

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

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

query II rowsort
SELECT - 61 AS col1, col2 * + - col0 AS col2 FROM tab2
----
-61
-1058
-61
-2560
-61
-4350

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-79

query II rowsort
SELECT + 34, col2 AS col0 FROM tab2
----
34
23
34
40
34
58

query I rowsort
SELECT 46 * col0 AS col2 FROM tab0
----
4002
4462
690

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 5 - - + COUNT( ALL - 34 ) col0 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT 5 - - + COUNT ( ALL - 34 ) col0 FROM tab1
----
8

query II rowsort
SELECT ALL + - col0 * - col2 - + - 95, - 39 AS col2 FROM tab1 cor0
----
4991
-39
5110
-39
6283
-39

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT + 59 * col0 * + - ( + 92 ) * + 9 * - CAST( - 57 AS SIGNED ) FROM tab1 AS cor0
----
-142012764
-236687940
-253395324

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT + 59 * col0 * + - ( + 92 ) * + 9 * - CAST ( - 57 AS INTEGER ) FROM tab1 AS cor0
----
-142012764
-236687940
-253395324

query I rowsort
SELECT 25 * - 25 AS col0 FROM tab2
----
-625
-625
-625

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= - col0
----

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

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

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

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

query I rowsort
SELECT 73 * - col1 AS col0 FROM tab1
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - COUNT( - - col0 ) AS col0 FROM tab2 WHERE NOT + ( - col2 ) NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT - COUNT ( - - col0 ) AS col0 FROM tab2 WHERE NOT + ( - col2 ) NOT BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT DISTINCT + 88 * col0 AS col1 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT + 94 * - ( - col2 ) * - 70 AS col0 FROM tab0 AS cor0
----
-309260
-651420
-65800

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

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

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

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

query I rowsort
SELECT DISTINCT - 64 * - col0 FROM tab0 cor0
----
5568
6208
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - ( + + COUNT( * ) ) + - 70 FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1731
SELECT - ( + + COUNT ( * ) ) + - 70 FROM tab0 cor0
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT + COUNT( ALL - ( col0 ) ) + + + 99 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT + COUNT ( ALL - ( col0 ) ) + + + 99 FROM tab0 AS cor0
----
102

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

skipif mysql # not compatible
query I rowsort label-1734
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT - 36 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - 21 FROM tab2 AS cor0
----
30
46
56

query I rowsort
SELECT + 7 * + + col2 FROM tab2
----
161
280
406

query I rowsort
SELECT DISTINCT col2 + 87 + + 12 * - 48 FROM tab1
----
-393
-421
-430

onlyif mysql # DIV for integer division: 
query II rowsort label-1738
SELECT ALL - - 44 * 27 AS col0, col2 DIV + col2 FROM tab2 WHERE NULL IS NULL
----
1188
1
1188
1
1188
1

skipif mysql # not compatible
query II rowsort label-1738
SELECT ALL - - 44 * 27 AS col0, col2 / + col2 FROM tab2 WHERE NULL IS NULL
----
1188
1
1188
1
1188
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 59 * 98 >= 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT DISTINCT ( - 48 ) + ( + col2 ) AS col0, 33 + + col2 + + col0 + - col0 FROM tab1
----
11
92
20
101
48
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL + col2 * + - col0, + CAST( - col1 AS SIGNED ) + 45 AS col2 FROM tab0
----
-705
-36
-870
24
-9603
44

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL + col2 * + - col0, + CAST ( - col1 AS INTEGER ) + 45 AS col2 FROM tab0
----
-705
-36
-870
24
-9603
44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT ( + col1 ) DIV + 41 + + - 38 FROM tab1
----
-37
-38
-38

skipif mysql # not compatible
query I rowsort label-1744
SELECT ( + col1 ) / + 41 + + - 38 FROM tab1
----
-37
-38
-38

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

query I rowsort
SELECT - 32 * - col2 + + 0 * + col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
1357
1923
787

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT + COUNT( * ) DIV + 17 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + COUNT ( * ) / + 17 AS col2 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + 33 * + COUNT( * ) * + COUNT( * ) - + 48 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + 33 * + COUNT ( * ) * + COUNT ( * ) - + 48 FROM tab1 AS cor0
----
249

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1753
SELECT - MAX( DISTINCT - 33 ) AS col0, COUNT( * ) * COUNT( * ) + - - 48 DIV + + COUNT( * ) FROM tab1 AS cor0
----
33
25

skipif mysql # not compatible
query II rowsort label-1753
SELECT - MAX ( DISTINCT - 33 ) AS col0, COUNT ( * ) * COUNT ( * ) + - - 48 / + + COUNT ( * ) FROM tab1 AS cor0
----
33
25

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1755
SELECT 69 DIV - CAST( - AVG ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1755
SELECT 69 / - CAST ( - AVG ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT DISTINCT + CAST( - 33 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - 85 / - col1 * 63
----

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - 85 / - col1 * 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + ( - 45 ) col2 FROM tab1
----
59
-45
68
-45
96
-45

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

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

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

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

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

query II rowsort
SELECT - + 56 AS col0, col1 + 27 AS col1 FROM tab1 AS cor0
----
-56
32
-56
41
-56
74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1763
SELECT DISTINCT + MAX ( ALL - - col0 ) col0 FROM tab2 AS cor0
----
75

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

skipif mysql # not compatible
query II rowsort label-1764
SELECT ALL + + COUNT ( * ) AS col1, MIN ( 29 ) FROM tab1 AS cor0
----
3
29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT COUNT( col1 ), + COUNT( - col2 ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1766
SELECT COUNT ( col1 ), + COUNT ( - col2 ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL - ( + + 5 ) * - + 55 * - COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-825

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - ( + + 5 ) * - + 55 * - COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-825

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 40 - + col2 col1 FROM tab1 cor0
----
-24
-70
-75

query I rowsort
SELECT - + 61 AS col2 FROM tab1 AS cor0
----
-61
-61
-61

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1773
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) DIV ( + + COUNT( * ) ) + 17 * CAST( - SUM( ALL col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3384

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) / ( + + COUNT ( * ) ) + 17 * CAST ( - SUM ( ALL col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3384

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 >= - + ( + 92 ) * + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1776
SELECT DISTINCT * FROM tab0 cor0 WHERE - 79 - - CAST( col1 AS DECIMAL ) IN ( - 2 )
----

skipif mysql # not compatible
query III rowsort label-1776
SELECT DISTINCT * FROM tab0 cor0 WHERE - 79 - - CAST ( col1 AS REAL ) IN ( - 2 )
----

query II rowsort
SELECT + 90 + + col0 * + col0, 67 AS col2 FROM tab2
----
2206
67
4186
67
5715
67

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

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

query I rowsort
SELECT ALL + col2 * col0 * + - col1 AS col0 FROM tab1
----
-25075
-290836
-68544

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT col1 * - - col0 DIV - + col0 + + - 34 FROM tab0
----
-115
-35
-55

skipif mysql # not compatible
query I rowsort label-1781
SELECT col1 * - - col0 / - + col0 + + - 34 FROM tab0
----
-115
-35
-55

query I rowsort
SELECT ALL + 26 + - col2 FROM tab1
----
-33
-42
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT - 93 DIV + - MAX( ALL 57 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - 93 / + - MAX ( ALL 57 ) FROM tab0
----
1

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

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

query I rowsort
SELECT ALL - 63 * col0 * + col1 FROM tab1 cor0 WHERE NOT 68 > + + col1
----

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

skipif mysql # not compatible
query I rowsort label-1786
SELECT COUNT ( * ) / ( MAX ( ALL + + 60 ) ) FROM tab2 AS cor0
----
0

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 33 * 44 IS NULL
----

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

query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0 WHERE NOT - 22 IS NOT NULL
----

query I rowsort
SELECT ALL - ( col0 ) * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT MIN( ALL + ( - col0 ) ) * + 13 AS col0 FROM tab1 AS cor0
----
-1183

skipif mysql # not compatible
query I rowsort label-1797
SELECT MIN ( ALL + ( - col0 ) ) * + 13 AS col0 FROM tab1 AS cor0
----
-1183

query I rowsort
SELECT - col2 * + 46 FROM tab2 cor0
----
-1058
-1840
-2668

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - col1 DIV - - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1799
SELECT - col1 / - - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT - + MIN( DISTINCT - 58 ) DIV + + 1 FROM tab2 AS cor0
----
58

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 37 NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT - + 24 + + col2 AS col1, 15 AS col2 FROM tab1 WHERE NOT + 32 IS NULL
----
35
15
44
15
72
15

query I rowsort
SELECT col2 * + col0 * + 30 FROM tab0
----
21150
26100
288090

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT 32 * - - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1804
SELECT 32 * - - COUNT ( * ) FROM tab2
----
96

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 27 col0 FROM tab1 AS cor0
----
123
86
95

query I rowsort
SELECT DISTINCT 95 * - 94 + col1 * + 86 + + + col1 FROM tab0
----
-1883
-7103
-8843

query I rowsort
SELECT - col0 + + - col1 AS col0 FROM tab0
----
-108
-96
-98

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

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

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

query II rowsort
SELECT + col0 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT col1, - 63 FROM tab0 AS cor0
----
1
-63
21
-63
81
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1815
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( col0 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - - col2 BETWEEN - 61 + + col0 + 4 * col2 AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1815
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( col0 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - - col2 BETWEEN - 61 + + col0 + 4 * col2 AND NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ( - + COUNT( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1816
SELECT ( - + COUNT ( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + + 93 ) * col2 + - ( - 77 ) + - + col2 col0 FROM tab2 AS cor0
----
2193
3757
5413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT ALL + CAST( NULL AS SIGNED ) + - 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + CAST ( NULL AS INTEGER ) + - 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + + col2 + + col1 * - col2 <= - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - + COUNT( * ) * + 72 FROM tab0, tab2 AS cor0
----
52488

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) * + 72 FROM tab0, tab2 AS cor0
----
52488

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT + 65 + - - COUNT( * ) * - - 69 FROM tab0
----
272

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT + 65 + - - COUNT ( * ) * - - 69 FROM tab0
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT ALL - + 78 DIV + 94 + + col1 + + col2 * - 87 FROM tab2 WHERE - col0 IS NOT NULL
----
-1950
-3403
-4979

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - + 78 / + 94 + + col1 + + col2 * - 87 FROM tab2 WHERE - col0 IS NOT NULL
----
-1950
-3403
-4979

query I rowsort
SELECT ALL col1 + - 95 AS col2 FROM tab0
----
-14
-74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + col2 * + - 28 + col0 + - col0 AS col0, 68 * - col1 FROM tab2 AS cor0
----
-1120
-5236
-1624
-4556
-644
-3468

query I rowsort
SELECT DISTINCT - 55 * + - col1 AS col2 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + SUM( ALL - - 67 ) + - MAX( ALL + 41 ) AS col2 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-1827
SELECT + SUM ( ALL - - 67 ) + - MAX ( ALL + 41 ) AS col2 FROM tab0 AS cor0
----
160

query I rowsort
SELECT - col2 + + 98 + col0 AS col1 FROM tab2 AS cor0
----
115
121
122

query I rowsort
SELECT ALL col1 * - - 30 AS col0 FROM tab1 AS cor0
----
1410
150
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT DISTINCT - 47 + + - CAST( 13 AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - 47 + + - CAST ( 13 AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 92 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 12 AS col0 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL - - 51 * - ( 78 ) AS col0 FROM tab0 AS cor0
----
-3978
-3978
-3978

query I rowsort
SELECT ALL - - 56 * - - col0 - + col0 AS col2 FROM tab2 AS cor0
----
2530
3520
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 37 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT + MAX( - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + MAX ( - - col1 ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * col2 col2 FROM tab2
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col2 - + - col1 AS col1 FROM tab1
----
59
-54
68
-21
96
-82

query I rowsort
SELECT 75 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL - 58 * 6 * + + MAX( DISTINCT - 96 ) FROM tab0
----
33408

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - 58 * 6 * + + MAX ( DISTINCT - 96 ) FROM tab0
----
33408

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT col1 DIV + 35 col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1844
SELECT col1 / + 35 col1 FROM tab2
----
1
1
2

query I rowsort
SELECT - col2 + + - 66 FROM tab0
----
-113
-165
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + MAX( DISTINCT + 51 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1846
SELECT + MAX ( DISTINCT + 51 ) FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT DISTINCT - col2 DIV - col0 + - + 22 FROM tab0 AS cor0
----
-19
-21
-22

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT - col2 / - col0 + - + 22 FROM tab0 AS cor0
----
-19
-21
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col2, 41 * - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE + col1 * + 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT - + 87 DIV - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - + 87 / - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-4
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 * + col1 + - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL - - ( + - MIN( DISTINCT + 82 ) ) AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL - - ( + - MIN ( DISTINCT + 82 ) ) AS col2 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT + + col2 * - col2 + + 86 + - + col1 + - 10 FROM tab1 cor0
----
-3410
-4595
-9154

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - 89 * - 73 AS col0 FROM tab1 AS cor0 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT col2 + - col2 DIV + + col1 AS col2 FROM tab0 AS cor0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-1854
SELECT col2 + - col2 / + + col1 AS col2 FROM tab0 AS cor0
----
0
10
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT + COUNT( * ) + - 69 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + COUNT ( * ) + - 69 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - 66 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1858
SELECT + CAST( - 64 AS DECIMAL ) / - col2 + - + CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT + CAST ( - 64 AS REAL ) / - col2 + - + CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 11 - col0 - + - col1 * + + 15 FROM tab0 WHERE ( - 52 ) >= col0
----

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE 64 < - ( - col1 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1861
SELECT ALL col0 - - - ( - col0 ) AS col2, CAST( - col2 AS SIGNED ) * + 89 + col0 col0 FROM tab1 cor0
----
102
-8493
170
-5166
182
-5961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1861
SELECT ALL col0 - - - ( - col0 ) AS col2, CAST ( - col2 AS INTEGER ) * + 89 + col0 col0 FROM tab1 cor0
----
102
-8493
170
-5166
182
-5961

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL >= - 78 )
----

query I rowsort
SELECT ALL 12 * 85 * - + col1 / + col0 AS col0 FROM tab2 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1864
SELECT - COUNT( + + col1 ) + 92 AS col0, + 88 DIV + - 70 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
92
-1

skipif mysql # not compatible
query II rowsort label-1864
SELECT - COUNT ( + + col1 ) + 92 AS col0, + 88 / + - 70 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
92
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT ALL + + 85 * + col2 FROM tab0 AS cor0
----
3995
8415
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT + 0 DIV + 94 + - + 52 FROM tab0 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1868
SELECT + 0 / + 94 + - + 52 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT ALL + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + col0 NOT BETWEEN - + ( + 83 ) AND + - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + col0 NOT BETWEEN - + ( + 83 ) AND + - col2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND - col1 )
----

query II rowsort
SELECT col0, col0 * col2 FROM tab0 AS cor0
----
15
705
87
870
97
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT + col1 * col2 DIV - col0 + col0 FROM tab2 AS cor0
----
16
21
24

skipif mysql # not compatible
query I rowsort label-1872
SELECT + col1 * col2 / - col0 + col0 FROM tab2 AS cor0
----
16
21
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT 8 DIV col2 * 81 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT 8 / col2 * 81 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 72 AS col0 FROM tab1 cor0 WHERE - col1 + - - 47 * - col1 IS NOT NULL
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80 col1, - col1 * 21 * - + 71 AS col1 FROM tab0 AS cor0
----
80
120771
80
1491
80
31311

query II rowsort
SELECT col2 AS col2, 61 FROM tab0 cor0
----
10
61
47
61
99
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT ( + - 65 ) * + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT ( + - 65 ) * + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1879
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1879
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * - + col0 IS NOT NULL
----

query II rowsort
SELECT + + 73 * + col2 + - col0 * + - col2 AS col0, col0 FROM tab1 AS cor0
----
11152
91
11904
51
9322
85

query I rowsort
SELECT ALL col1 * - 1 / + + col1 + - + ( + col2 ) FROM tab1 WHERE NOT + 77 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + col2 + - 67 FROM tab0
----
-36
33
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 49 * - 3 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT ALL col1 DIV + - col1 - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL col1 / + - col1 - col1 FROM tab2
----
-52
-68
-78

query II rowsort
SELECT col1 AS col0, 89 FROM tab0 WHERE NULL NOT BETWEEN 99 AND col1 * + col2 - + - 2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col0 / + + col0 * + col0, - col2, col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 45 FROM tab2
----
2295
3015
3465

query II rowsort
SELECT + 26 + + col0 * - 56, - col0 + + col0 AS col2 FROM tab0
----
-4846
0
-5406
0
-814
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT - 86 * + COUNT( * ) * - 87 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT - 86 * + COUNT ( * ) * - 87 FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT 95 + 14 FROM tab1
----
109
109
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1892
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col2 / + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, 60 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
60
68
60
96
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT ALL + col0 * + - 3 + col0 AS col2, - 37 + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-174
-58
-194
-38
-30
-118

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL + col0 * + - 3 + col0 AS col2, - 37 + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-174
-58
-194
-38
-30
-118

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 82 / + col0, - ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT DISTINCT col2 * + - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT col2 * + - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query II rowsort
SELECT + - 21 * - - 40 AS col2, + 79 FROM tab1 AS cor0 WHERE NOT col1 * - + col2 + + - 22 + - 51 / + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT ALL + COUNT( * ), + 55 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3
55

skipif mysql # not compatible
query II rowsort label-1899
SELECT ALL + COUNT ( * ), + 55 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1900
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-1900
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
-66

query II rowsort
SELECT + col2 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
117
125
74

query I rowsort
SELECT DISTINCT + + col2 + + + col0 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT col2 * - col1 * + + col2 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + 31 * + col0 * 40 FROM tab0
----
107880
120280
18600

query I rowsort
SELECT DISTINCT col2 * + 74 FROM tab0
----
3478
7326
740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN + col1 + + col2 AND + col0 * col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + 92 * + - 66 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 99 + + - col1 FROM tab2
----
22
32
48

query I rowsort
SELECT + 31 + + col0 AS col1 FROM tab0
----
118
128
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + - ( + - 83 ) col2 FROM tab1 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + 19 + col0 col2 FROM tab1
----
119
46
71

query I rowsort
SELECT DISTINCT + 92 * col0 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-441
-6561

query I rowsort
SELECT + col0 - 16 AS col1 FROM tab2
----
30
48
59

query I rowsort
SELECT - - ( - + col2 ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + 34 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL + COUNT( + col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL + MAX( + ( + + CAST( ( + 32 ) AS SIGNED ) ) ) + - 39 - 18 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + MAX ( + ( + + CAST ( ( + 32 ) AS INTEGER ) ) ) + - 39 - 18 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT COUNT( * ) * + 79 FROM tab0, tab2 AS cor0
----
711

skipif mysql # not compatible
query I rowsort label-1921
SELECT COUNT ( * ) * + 79 FROM tab0, tab2 AS cor0
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + MAX( DISTINCT - 21 ) FROM tab1 WHERE NOT - 2 + - 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + MAX ( DISTINCT - 21 ) FROM tab1 WHERE NOT - 2 + - 15 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 - - + col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT + col0 + - - ( - + 98 ) * - 61 FROM tab1
----
6029
6063
6069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1925
SELECT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT ( - 75 ) * COUNT( * ) FROM tab2, tab1 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-1926
SELECT ( - 75 ) * COUNT ( * ) FROM tab2, tab1 AS cor0
----
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT ALL col1 DIV + 13 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL col1 / + 13 AS col2 FROM tab1
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + + col0 * - + col1 + + + 59 + ( + - col2 ) col0 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1929
SELECT - 43 * CAST( NULL AS SIGNED ) + + CAST( - 71 AS SIGNED ) AS col1, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1929
SELECT - 43 * CAST ( NULL AS INTEGER ) + + CAST ( - 71 AS INTEGER ) AS col1, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - + col0 * + 94 FROM tab1 AS cor0
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT DISTINCT 0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / - - 38 + - 26 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT 0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - - 38 + - 26 <= NULL
----

query II rowsort
SELECT DISTINCT + - col0 + col0, 33 AS col1 FROM tab2 AS cor0
----
0
33

query I rowsort
SELECT DISTINCT - col1 + - 57 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + 15 * - + COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + 15 * - + COUNT ( * ) FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 56 ) col1 FROM tab0 WHERE + col2 IS NULL
----

query II rowsort
SELECT + - col0, 7 * + + 4 / 70 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - 14 * + col0 FROM tab1
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + COUNT( ALL + col2 ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT + COUNT ( ALL + col2 ) FROM tab1 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT ALL + ( MIN( + col1 ) ) AS col2, + 26 AS col0 FROM tab2 AS cor0
----
51
26

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL + ( MIN ( + col1 ) ) AS col2, + 26 AS col0 FROM tab2 AS cor0
----
51
26

query II rowsort
SELECT ALL col0, + col0 * + + 86 AS col1 FROM tab0 AS cor0
----
15
1290
87
7482
97
8342

query I rowsort
SELECT 2 + - - 31 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT COUNT( * ) col0 FROM tab2, tab0 AS cor0 WHERE ( - + 26 ) IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1943
SELECT DISTINCT COUNT ( * ) col0 FROM tab2, tab0 AS cor0 WHERE ( - + 26 ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT - SUM( DISTINCT col2 ) + + + COUNT( ALL + 50 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - SUM ( DISTINCT col2 ) + + + COUNT ( ALL + 50 ) FROM tab2
----
-118

query I rowsort
SELECT ALL 26 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL - ( col2 ) - - 21 + col2 - + col2 * - 82 FROM tab1
----
4859
5597
7893

query II rowsort
SELECT + - col2 * + - col1 AS col1, 17 * - col2 FROM tab1 cor0
----
1344
-1632
295
-1003
3196
-1156

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * - 95 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT + COUNT( * ) * MAX( ALL + 71 ) + + 58 FROM tab2 AS cor0
----
271

skipif mysql # not compatible
query I rowsort label-1949
SELECT + COUNT ( * ) * MAX ( ALL + 71 ) + + 58 FROM tab2 AS cor0
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 8 - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + 2 - - - col2 AS col1 FROM tab1 AS cor0
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 * + 38 * col0 + + col1 FROM tab1 AS cor0
----
16155
162573
27146

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 41 * + + col0 + - col2 + + 43 + - 12 + + col0 * - 30 * 35 * - - 36 * + + 33 + 67 * - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 + + col1 * + col1 * - ( + col0 ) col1 FROM tab2 AS cor0
----
-119594
-336623
-379404

query I rowsort
SELECT DISTINCT 62 * + 15 FROM tab0 AS cor0
----
930

query I rowsort
SELECT ALL + col1 * - - ( 25 ) AS col2 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + ( + + col2 ) * col2 IS NULL
----

query I rowsort
SELECT ALL + 69 * + + col0 AS col1 FROM tab0
----
1035
6003
6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT CAST( + 88 AS SIGNED ) AS col0 FROM tab0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1962
SELECT CAST ( + 88 AS INTEGER ) AS col0 FROM tab0
----
88
88
88

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( - + col1 * - + col2 / 82 )
----

query I rowsort
SELECT ALL ( - + ( col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 + - - col1 - col1 FROM tab2 WHERE 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT DISTINCT + MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT ALL col1 DIV - col1 col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1967
SELECT ALL col1 / - col1 col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1968
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) / + ( + - ( - 35 ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) / + ( + - ( - 35 ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT ALL - col0 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-1969
SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT 98 DIV col2 + + col1 + - + col1 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-1971
SELECT 98 / col2 + + col1 + - + col1 FROM tab0 AS cor0
----
0
2
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 64 AS col2, - 38 col2, + col2 * col0 * + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to fe28fdd4861c18fea1e8130a62c06201

query I rowsort
SELECT ALL + ( + - col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT + ( ( COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1974
SELECT DISTINCT + ( ( COUNT ( * ) ) ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 99 + - col2 FROM tab1 AS cor0 WHERE NOT NULL > 75
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col2 IN ( + + 53, - 92 )
----

query I rowsort
SELECT - 24 + - 76 FROM tab0
----
-100
-100
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab2 WHERE + ( + ( + col0 ) ) * + col0 + + - col1 * + col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + COUNT( * ) + - 16 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-1979
SELECT + COUNT ( * ) + - 16 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + 92 + - MAX( - col2 ) - - SUM( + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + 92 + - MAX ( - col2 ) - - SUM ( + - col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1981
SELECT - CAST( ( + MIN( ALL - col1 ) ) AS SIGNED ), + ( - COUNT( * ) ) AS col0 FROM tab2 WHERE - 57 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1981
SELECT - CAST ( ( + MIN ( ALL - col1 ) ) AS INTEGER ), + ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE - 57 IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT MIN( - 45 ) * + COUNT( * ) * - COUNT( * ) FROM tab0
----
405

skipif mysql # not compatible
query I rowsort label-1982
SELECT MIN ( - 45 ) * + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
405

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col2 <> - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 86 * + + 79 = + col1
----

query I rowsort
SELECT ALL - ( + 78 ) AS col2 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT SUM( + 32 ) + + MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT SUM ( + 32 ) + + MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - col2 + 32 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = + 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1990
SELECT - ( - + COUNT( * ) ) - + - CAST( NULL AS SIGNED ) AS col1, 14 FROM tab1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1990
SELECT - ( - + COUNT ( * ) ) - + - CAST ( NULL AS INTEGER ) AS col1, 14 FROM tab1
----
NULL
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 - - - col0 col0 FROM tab2
----
-17
-35
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT + SUM( + ( + col0 ) ) - + - ( + - COUNT( * ) ) - COUNT( * ) AS col0 FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT + SUM ( + ( + col0 ) ) - + - ( + - COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab0
----
193

query I rowsort
SELECT - col1 - col2 AS col0 FROM tab1 WHERE + col1 <> NULL
----

query I rowsort
SELECT ALL 69 - col2 FROM tab1 cor0
----
-27
1
10

query I rowsort
SELECT col0 * + col0 + col1 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT COUNT( * ) * 42 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT COUNT ( * ) * 42 FROM tab2 AS cor0
----
126

query I rowsort
SELECT ALL col1 + - col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 26 NOT IN ( - - col1 + - col1 + + + col1 + - + 18 * + col0 * - col1, col1, + ( + 81 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL - 96 * + + COUNT( * ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - 96 * + + COUNT ( * ) FROM tab2 AS cor0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT ALL - - MAX( ALL ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - - MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT + - 81 DIV col2 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + - 81 / col2 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT - 58 DIV 41 * 22 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 58 / 41 * 22 FROM tab0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT + + COUNT( * ) col2 FROM tab1 WHERE col0 * - ( + 30 ) < - col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2004
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab1 WHERE col0 * - ( + 30 ) < - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2005
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL col0 * 31 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2007
SELECT ALL CAST( - + COUNT( + ( - ( 71 ) ) ) AS SIGNED ) * - COUNT( * ) DIV - + 37 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL CAST ( - + COUNT ( + ( - ( 71 ) ) ) AS INTEGER ) * - COUNT ( * ) / - + 37 FROM tab1
----
0

query I rowsort
SELECT col1 + + 93 * + col2 FROM tab0 AS cor0
----
4452
9208
951

query I rowsort
SELECT + + ( + + 11 ) + - + col0 FROM tab2 AS cor0
----
-35
-53
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 - col1, col2 col1 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + 30 * - 57, + col2 + 76 )
----
21
68
54
59
82
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT MIN( ALL ( + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2012
SELECT MIN ( ALL ( + col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL + 20 + - - 43 - - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + 20 + - - 43 - - COUNT ( * ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL - COUNT( - + 0 ) + - 92 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - COUNT ( - + 0 ) + - 92 FROM tab2
----
-95

query II rowsort
SELECT DISTINCT + - col2, + col1 AS col1 FROM tab1 WHERE - col1 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 73 AS col0 FROM tab1
----
124
158
164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2017
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 - - 7 + - col2 * - + col0 * + + col1 AS col2, - 89 * col0 FROM tab0
----
NULL
-1335
NULL
-7743
NULL
-8633

skipif mysql # not compatible
query II rowsort label-2017
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 - - 7 + - col2 * - + col0 * + + col1 AS col2, - 89 * col0 FROM tab0
----
NULL
-1335
NULL
-7743
NULL
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT COUNT( ALL + 83 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT COUNT ( ALL + 83 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT - 67 + col2 DIV + col2 FROM tab2
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-2019
SELECT - 67 + col2 / + col2 FROM tab2
----
-66
-66
-66

query I rowsort
SELECT col0 + - - ( col1 ) - - - col0 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - 68 col2 FROM tab2 AS cor0
----
-108
-126
-91

query I rowsort
SELECT + 87 * - + col0 * - 77 * - - 2 + - col2 + + 31 FROM tab0 AS cor0
----
1165647
1299538
200954

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2023
SELECT DISTINCT 79 AS col0, - CAST( + 78 AS SIGNED ) * - - col1 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) = col0
----

skipif mysql # not compatible
query II rowsort label-2023
SELECT DISTINCT 79 AS col0, - CAST ( + 78 AS INTEGER ) * - - col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) = col0
----

query I rowsort
SELECT ALL - + 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col0 AS col1, 66 col2 FROM tab1
----
425
66
4277
66
714
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT 76 * - COUNT( * ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2026
SELECT 76 * - COUNT ( * ) FROM tab1 AS cor0
----
-228

query I rowsort
SELECT DISTINCT + 48 * - + 50 * + 81 FROM tab1 AS cor0
----
-194400

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 8 IS NULL
----

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT col1 + + 42 IS NOT NULL
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT NULL > + 73
----

query I rowsort
SELECT DISTINCT 26 * + + col0 FROM tab2
----
1196
1664
1950

query II rowsort
SELECT ALL + col0 AS col1, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL col1 * 61 AS col0 FROM tab2
----
3111
4087
4697

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND - 40 )
----

query I rowsort
SELECT ALL - col1 * col2 * - col1 FROM tab2
----
237160
260362
59823

query II rowsort
SELECT DISTINCT + + col0 + - col1 + + 44, col0 AS col0 FROM tab1 WHERE ( NULL NOT BETWEEN ( 82 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT COUNT( 26 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT COUNT ( 26 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----
0

query I rowsort
SELECT - ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 / + + 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT ALL - COUNT( * ) DIV + + 67 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL - COUNT ( * ) / + + 67 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT MIN( ALL - col1 ) AS col2 FROM tab0 WHERE 54 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT MIN ( ALL - col1 ) AS col2 FROM tab0 WHERE 54 BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT - 26 + col2 FROM tab2
----
-3
14
32

query III rowsort
SELECT * FROM tab1 WHERE 56 BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT + 16 + + col1 AS col1 FROM tab1
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - SUM( ALL + col1 ) + 55 AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2047
SELECT - SUM ( ALL + col1 ) + 55 AS col1 FROM tab0
----
-48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) <= - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 93 + 66 * 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 + 66 FROM tab0
----
147
67
87

query I rowsort
SELECT DISTINCT - col1 + 18 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 9 * 36 AS col1 FROM tab1
----
-324
-324
-324

query I rowsort
SELECT + col2 * - ( col1 * - 27 ) AS col0 FROM tab0
----
102789
2673
5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 59 / col2 + - 44 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - COUNT( ALL + 3 ) * 43 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - COUNT ( ALL + 3 ) * 43 FROM tab1
----
-129

query I rowsort
SELECT - 99 + - ( - ( col2 ) + - 54 ) * col1 AS col1 FROM tab1
----
2001
466
5635

query I rowsort
SELECT ALL col0 * 48 AS col1 FROM tab1
----
2448
4080
4368

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) >= - 80
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - 67 - - ( col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT - MIN( DISTINCT col0 ) FROM tab1 WHERE 27 + - col0 BETWEEN col2 + - 77 / CAST( NULL AS SIGNED ) AND + col0 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT - MIN ( DISTINCT col0 ) FROM tab1 WHERE 27 + - col0 BETWEEN col2 + - 77 / CAST ( NULL AS INTEGER ) AND + col0 * + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT + 89 * + CAST( col1 AS SIGNED ) FROM tab2
----
4539
5963
6853

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 89 * + CAST ( col1 AS INTEGER ) FROM tab2
----
4539
5963
6853

query I rowsort
SELECT DISTINCT 17 * - col0 AS col0 FROM tab0
----
-1479
-1649
-255

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2066
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 82 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2066
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 82 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 47 * - col2 ) = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + 0 BETWEEN col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab1
----
13
13
13

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col1 BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL MIN( + col0 ) * 78 FROM tab1
----
3978

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL MIN ( + col0 ) * 78 FROM tab1
----
3978

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL - col2 DIV + 79 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - col2 / + 79 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT + 64 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + 64 / CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2074
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 86 IS NULL
----

query I rowsort
SELECT ALL ( col0 ) + 23 * col0 FROM tab2 AS cor0
----
1104
1536
1800

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE col2 / + col2 - ( 92 ) <= col2
----
-1
-21
-81

query I rowsort
SELECT + col1 * 62 - + 14 AS col0 FROM tab1
----
2900
296
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT 65 DIV COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
7

skipif mysql # not compatible
query I rowsort label-2079
SELECT 65 / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
7

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT BETWEEN col2 * 23 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT COUNT( 44 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2081
SELECT COUNT ( 44 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 80 * col2 FROM tab0 cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + SUM( - 72 ) AS col0 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2085
SELECT + SUM ( - 72 ) AS col0 FROM tab2 AS cor0
----
-216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----

query I rowsort
SELECT + - col1 * ( - ( 24 ) * - 46 ) FROM tab0 AS cor0
----
-1104
-23184
-89424

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 / col2 AND + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT + MAX( 46 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT + MAX ( 46 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL - ( - 12 ) FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL - CAST( 69 AS SIGNED ) AS col2 FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - CAST ( 69 AS INTEGER ) AS col2 FROM tab2
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 ) col1 FROM tab1
----
-86
-86
-86

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col1 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT + MIN( col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT + MIN ( col1 ) col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT DISTINCT col1 * col1 DIV col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT col1 * col1 / col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( + 76 ) <> 37 * col1
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) <= + col2 - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT SUM( ALL - ( col0 ) ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT SUM ( ALL - ( col0 ) ) col1 FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - COUNT( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - COUNT ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 * + + 16 + + col1 FROM tab2 cor0
----
419
717
995

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL MIN( + 5 ) FROM tab1, tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL MIN ( + 5 ) FROM tab1, tab0 cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 > - 89 * - 69
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2106
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL + COUNT( * ) * 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + COUNT ( * ) * 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND col1 + col0 * 6
----

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND col1 + col0 * 6
----

query II rowsort
SELECT DISTINCT + + 76 AS col1, ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
76
-4896
76
-5015
76
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - ( + MAX( ALL + col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2110
SELECT - ( + MAX ( ALL + col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT + MAX( - - col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + MAX ( - - col0 ) AS col0 FROM tab0 cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col0 + + col1 + - 10 * - ( + col2 * col1 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 23 col0 FROM tab2 AS cor0
----
23
41
52

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 89 * col2
----

query I rowsort
SELECT - ( col1 ) - - + col0 AS col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL + COUNT( * ) + - 95 FROM tab2 WHERE ( - col1 / - + CAST( NULL AS SIGNED ) ) > + 26 * 47 AND NOT + col0 > NULL
----
-95

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + COUNT ( * ) + - 95 FROM tab2 WHERE ( - col1 / - + CAST ( NULL AS INTEGER ) ) > + 26 * 47 AND NOT + col0 > NULL
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT col2 + - 2 * + 17 / CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2117
SELECT col2 + - 2 * + 17 / CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 40 * 78 + 5 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN - - 5 AND ( - col1 + - 82 ) OR col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT 77 * - COUNT( 34 ) - + COUNT( * ) * - 73 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-2122
SELECT 77 * - COUNT ( 34 ) - + COUNT ( * ) * - 73 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-12

query II rowsort
SELECT col0, 22 AS col1 FROM tab0 AS cor0
----
15
22
87
22
97
22

query I rowsort
SELECT DISTINCT ( 6 ) * - 67 * - - col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + - 52 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

query II rowsort
SELECT ALL - - col2, + col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
10
42
47
162
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT MAX( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT MAX ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 BETWEEN + - col1 AND ( - + 76 - + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2129
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + + col1 AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-2129
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + + col1 AS INTEGER ) + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2130
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2131
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col2 FROM tab0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT 70 * + COUNT( * ) + + 35 FROM tab0
----
245

skipif mysql # not compatible
query I rowsort label-2134
SELECT 70 * + COUNT ( * ) + + 35 FROM tab0
----
245

query I rowsort
SELECT col2 + 83 FROM tab0
----
130
182
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 89 col2 FROM tab1 AS cor0
----
42
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - col1 + - col2 col2 FROM tab0 AS cor0
----
10
-31
47
-128
99
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - MAX( + 88 ) AS col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - MAX ( + 88 ) AS col2 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT 99 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 * col1 AND - - 71
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * col0, + col1 + + 1 - col1 )
----

query I rowsort
SELECT + - 26 + + col0 * - ( - + col1 ) AS col1 FROM tab2 cor0
----
2320
4902
4999

query I rowsort
SELECT + col2 + - 4 AS col2 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT + COUNT( * ) + + + 0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + COUNT ( * ) + + + 0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 92 * ( - col0 ) + + col1 * - col0 AS col2 FROM tab0 WHERE NOT NULL < col0 + - 49
----

query I rowsort
SELECT ALL - col2 - + - col1 + col2 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT - 50 / + col1 / + col1 + - + 64 + - + CAST( 89 AS SIGNED ) * - col0 AS col2 FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 50 / + col1 / + col1 + - + 64 + - + CAST ( 89 AS INTEGER ) * - col0 AS col2 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col0
----

query I rowsort
SELECT ALL col0 - + 72 FROM tab1
----
-21
13
19

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - col0 - + col2 FROM tab0
----
-17
164
95

query II rowsort
SELECT - 61 AS col2, - 58 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2153
SELECT COUNT( * ) * - - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT ALL - col2 DIV 91 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - col2 / 91 AS col2 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL + ( - col1 ) AS col2, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 56 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL + + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= col0 * + + col1
----

query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab2 AS cor0
----
1035
1800
2610

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * col0 < ( col0 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + + 27 + + col0 + 63 * 66 AS col0 FROM tab0 AS cor0
----
4200
4272
4282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + - CAST( - + 47 AS SIGNED ) + col0 AS col0 FROM tab2 WHERE - - 58 + - - col1 NOT BETWEEN - col0 AND ( col1 )
----
1127
1944
2801

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + - CAST ( - + 47 AS INTEGER ) + col0 AS col0 FROM tab2 WHERE - - 58 + - - col1 NOT BETWEEN - col0 AND ( col1 )
----
1127
1944
2801

query II rowsort
SELECT ALL + col2 AS col1, - col1 * col0 FROM tab0
----
10
-1827
47
-1215
99
-97

query II rowsort
SELECT - col2, + col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) / ( + 38 ) NOT BETWEEN col0 AND + ( + 24 )
----

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) / ( + 38 ) NOT BETWEEN col0 AND + ( + 24 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col0 ) + - ( + col2 ) / 73 * - 81 + + col2 + 57 + + col0 * + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT + + COUNT( ALL - col1 ) + + 97 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2168
SELECT + + COUNT ( ALL - col1 ) + + 97 FROM tab2 AS cor0
----
100

query I rowsort
SELECT + - col0 + + col0 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT 19 * - col0 + - - col1 + 95 * 67 FROM tab0
----
4523
4733
6161

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - SUM( DISTINCT - + col2 ) * 23 * - 48 AS col2 FROM tab1
----
-246192

skipif mysql # not compatible
query I rowsort label-2172
SELECT - SUM ( DISTINCT - + col2 ) * 23 * - 48 AS col2 FROM tab1
----
-246192

query I rowsort
SELECT - col2 * - ( - 19 ) AS col0 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - COUNT( * ) * + + 55 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2174
SELECT - COUNT ( * ) * + + 55 FROM tab1 AS cor0
----
-165

query II rowsort
SELECT ( - 18 ), col1 FROM tab2 AS cor0
----
-18
51
-18
67
-18
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT - 87 DIV col1 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-57
-92

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - 87 / col1 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-57
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - + 78 col0, col1 FROM tab0
----
-57
21
-77
1
3
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT 76 * + SUM( ALL col1 ) - + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2178
SELECT 76 * + SUM ( ALL col1 ) - + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT - COUNT( DISTINCT - col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2181
SELECT - COUNT ( DISTINCT - col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 + + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * - 79 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT - 54 DIV + - col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT - 54 / + - col0 FROM tab0
----
0
0
3

query I rowsort
SELECT ALL 67 * - 6 AS col2 FROM tab1
----
-402
-402
-402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab1 cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 / + 93 BETWEEN 24 AND + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL + + 33 * + - COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + + 33 * + - COUNT ( * ) FROM tab1 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT ALL + 54 DIV 96 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + 54 / 96 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT MAX( ALL + + 78 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT MAX ( ALL + + 78 ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 2 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col0 * 12 + + col1 FROM tab2
----
603
845
967

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2195
SELECT ALL * FROM tab0 WHERE NOT ( + + col2 * 44 + - col2 ) <> - CAST( NULL AS SIGNED ) * - 26
----

skipif mysql # not compatible
query III rowsort label-2195
SELECT ALL * FROM tab0 WHERE NOT ( + + col2 * 44 + - col2 ) <> - CAST ( NULL AS INTEGER ) * - 26
----

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE col2 > - col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 > - col0 * + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - + 21 * - - 26 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + 25 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2201
SELECT ALL 73 + - 62 / + CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL 73 + - 62 / + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT CAST( NULL AS SIGNED ) + + MIN( ALL + CAST( - col1 AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT CAST ( NULL AS INTEGER ) + + MIN ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + ( + 2 ) FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT 92 + - 76 + + - 33 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 = ( - + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 = ( - + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL - MIN( - 27 ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - MIN ( - 27 ) AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2207
SELECT ALL col2, + CAST( NULL AS SIGNED ) / col2 col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2207
SELECT ALL col2, + CAST ( NULL AS INTEGER ) / col2 col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + + MAX( DISTINCT - 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + + MAX ( DISTINCT - 36 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT 9 * + - col2 * - col1 * - + col1 AS col1 FROM tab0
----
-2775303
-39690
-891

query II rowsort
SELECT ALL - 98, col1 AS col1 FROM tab2
----
-98
51
-98
67
-98
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT 50 DIV col1 AS col0 FROM tab0
----
0
2
50

skipif mysql # not compatible
query I rowsort label-2211
SELECT 50 / col1 AS col0 FROM tab0
----
0
2
50

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT 57 * + ( - col2 ) FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT ALL - 12 * + col0 * - + col2 FROM tab1
----
58752
60180
74256

query I rowsort
SELECT DISTINCT - 1 * + ( - col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + col2 * + 83 * + col1 AS col1 FROM tab2
----
255640
322538
97359

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL SUM( DISTINCT 73 ) AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL SUM ( DISTINCT 73 ) AS col1 FROM tab1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT DISTINCT ( col0 ) DIV - - col2 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT ( col0 ) / - - col2 AS col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT ALL + - 63 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + - 63 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 col1 FROM tab2 AS cor0
----
-87
-87
-87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + COUNT( * ) + ( - + SUM( ALL + + 41 ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + COUNT ( * ) + ( - + SUM ( ALL + + 41 ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * - col1 * - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + - COUNT( * ) * 60 col1 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT ALL + - COUNT ( * ) * 60 col1 FROM tab1 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + COUNT( 98 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2225
SELECT + COUNT ( 98 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col0 FROM tab2 WHERE ( NULL < ( - 77 ) )
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab1 WHERE NOT + - col1 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * 90 * - + CAST( - + 2 AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
1620

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * 90 * - + CAST ( - + 2 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
1620

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - SUM( ALL + col0 ) + + + COUNT( * ) AS col2 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-2231
SELECT - SUM ( ALL + col0 ) + + + COUNT ( * ) AS col2 FROM tab2
----
-182

query II rowsort
SELECT DISTINCT + 47 + - col0 * + 87 + - 1 - - 14, col1 * - 10 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - ( - - 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 26 ) IS NOT NULL
----

query I rowsort
SELECT - 99 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT CAST( NULL AS SIGNED ) - + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT CAST ( NULL AS INTEGER ) - + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * + 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( ( - - 67 ) ) FROM tab1 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2240
SELECT - col1 / col1 FROM tab0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2240
SELECT - col1 / col1 FROM tab0 WHERE NOT ( + CAST ( NULL AS REAL ) ) > NULL
----

query I rowsort
SELECT ( - 82 ) FROM tab2
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * + col0 col2 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT + ( + 1 ) * - + 1 * - - 12 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT NULL > 31 / - + 93
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT ALL 62 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 62 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( + + 31 ) AS col1, col0 AS col1 FROM tab0
----
31
15
31
87
31
97

query II rowsort
SELECT ALL - - col2 AS col0, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL 84 AS col1 FROM tab2 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + COUNT( * ) + - 60 * + 37 * 1 AS col2 FROM tab1 AS cor0
----
-2217

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + COUNT ( * ) + - 60 * + 37 * 1 AS col2 FROM tab1 AS cor0
----
-2217

query I rowsort
SELECT ALL - 56 * - col2 + - + col0 FROM tab1 cor0
----
3219
3717
5325

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT - + 87 + + 85 FROM tab1 AS cor0
----
-2
-2
-2

query II rowsort
SELECT + 13 + - col0 AS col2, - col1 AS col0 FROM tab2
----
-33
-51
-51
-77
-62
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-2256
SELECT - - col2, + col2 * 33 * + col1 DIV - - col1 - + ( - col0 ) + - col1 AS col2 FROM tab0 WHERE - + 1 BETWEEN - ( + 58 ) DIV - - 63 + - ( + 31 ) AND + 7
----
10
396
47
1485
99
3363

skipif mysql # not compatible
query II rowsort label-2256
SELECT - - col2, + col2 * 33 * + col1 / - - col1 - + ( - col0 ) + - col1 AS col2 FROM tab0 WHERE - + 1 BETWEEN - ( + 58 ) / - - 63 + - ( + 31 ) AND + 7
----
10
396
47
1485
99
3363

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2257
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV - col0 AS col0, 76 FROM tab1
----
-1
76

skipif mysql # not compatible
query II rowsort label-2257
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / - col0 AS col0, 76 FROM tab1
----
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - COUNT( * ) + - - 99 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2258
SELECT - COUNT ( * ) + - - 99 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2 WHERE - - 5 IS NOT NULL
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL - col2 + + 80 * 18 - col1 + + col1 * + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - col2 + + 80 * 18 - col1 + + col1 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT COUNT( * ) * - 32 + + + 4 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT COUNT ( * ) * - 32 + + + 4 FROM tab1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT ALL + ( - 31 ) + - 71 + - MIN( - col2 ) DIV MAX( col0 ) AS col2 FROM tab0
----
-101

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + ( - 31 ) + - 71 + - MIN ( - col2 ) / MAX ( col0 ) AS col2 FROM tab0
----
-101

query I rowsort
SELECT DISTINCT col0 - 73 * col2 AS col1 FROM tab0
----
-3416
-643
-7130

query I rowsort
SELECT ALL + 82 - - - col1 AS col1 FROM tab2
----
15
31
5

query II rowsort
SELECT col1 - + - 35, + col2 FROM tab0 cor0
----
116
47
36
99
56
10

query II rowsort
SELECT ALL - - col0 + + 42 + - col1, + 19 AS col0 FROM tab0 AS cor0
----
-24
19
108
19
138
19

query I rowsort
SELECT 33 - + col0 AS col1 FROM tab2 AS cor0
----
-13
-31
-42

query I rowsort
SELECT 78 - + col0 * ( - - col0 ) FROM tab0
----
-147
-7491
-9331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT + 70 / - 7 * - 9 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2269
SELECT + 70 / - 7 * - 9 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT ALL - - ( COUNT( * ) ) DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2270
SELECT ALL - - ( COUNT ( * ) ) / + COUNT ( * ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT 14 - - - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - 60 * col0 AS col2 FROM tab2 AS cor0
----
51
-2760
67
-4500
77
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT 80 * col2 DIV col0 AS col1 FROM tab1 AS cor0
----
150
55
59

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT 80 * col2 / col0 AS col1 FROM tab1 AS cor0
----
150
55
59

query I rowsort
SELECT + 63 * + 44 * + - col0 AS col1 FROM tab0 AS cor0
----
-241164
-268884
-41580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT + COUNT( * ) DIV + 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT + COUNT ( * ) / + 93 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT + 32 DIV + 36 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT + 32 / + 36 FROM tab0
----
0

query II rowsort
SELECT + col0 * + col2 AS col1, - col1 FROM tab1
----
4896
-14
5015
-5
6188
-47

query I rowsort
SELECT DISTINCT + 68 + - col2 + 82 FROM tab0 AS cor0
----
103
140
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT COUNT( * ) * 38 AS col1 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2280
SELECT COUNT ( * ) * 38 AS col1 FROM tab0 AS cor0
----
114

query I rowsort
SELECT 85 + + + col2 AS col0 FROM tab2
----
108
125
143

query I rowsort
SELECT 2 + col2 AS col2 FROM tab2
----
25
42
60

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT COUNT( * ) DIV + + 4 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) / + + 4 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND - - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT - COUNT( * ) + + ( - - COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - COUNT ( * ) + + ( - - COUNT ( * ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + col1 ) BETWEEN + ( col2 ) AND NULL
----

query I rowsort
SELECT - - col2 FROM tab0 WHERE - ( - 39 ) + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT COUNT( DISTINCT + col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT COUNT ( DISTINCT + col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - 74
----

query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2293
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - 29 * - + col1 AS col0 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2295
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) + + col0 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2295
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 90 ) AS col0 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0 AS cor0 WHERE col0 <= 96 * - col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - - SUM( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2298
SELECT - - SUM ( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT + - COUNT( + 22 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + - COUNT ( + 22 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - ( + - col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT - ( - col2 ) DIV 24 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2302
SELECT - ( - col2 ) / 24 AS col2 FROM tab0
----
0
1
4

query I rowsort
SELECT + col0 + 24 * - + col1 AS col1 FROM tab1
----
-1037
-285
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 36 col1 FROM tab0
----
123
133
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT + - MIN( - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + - MIN ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2306
SELECT ALL - + MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - + MAX ( ALL - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - 33 + - COUNT( - - 92 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 33 + - COUNT ( - - 92 ) FROM tab2 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 cor0 WHERE - col1 * + 88 <= - col0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col2 AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 + - - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 + - - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT 61 + CAST( + - 33 AS SIGNED ) FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2312
SELECT 61 + CAST ( + - 33 AS INTEGER ) FROM tab2
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT MAX( + col1 ) + - 79 * - 49 AS col0 FROM tab1
----
3918

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT MAX ( + col1 ) + - 79 * - 49 AS col0 FROM tab1
----
3918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2314
SELECT DISTINCT + SUM( col1 ) col1 FROM tab0 WHERE NULL IN ( + 62, + CAST( col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2314
SELECT DISTINCT + SUM ( col1 ) col1 FROM tab0 WHERE NULL IN ( + 62, + CAST ( col0 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL col0 * - + col1 + 49 + + - 84 + + + 32 + 58 * - + col0 * col2 AS col0 FROM tab2
----
-153411
-257328
-63713

query I rowsort
SELECT ALL - 38 * + + col2 - - 57 AS col1 FROM tab1
----
-2185
-2527
-3591

query I rowsort
SELECT + 78 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( - col2 / - col2 + + col0 + col1 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2319
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 74 + col2, 80 + - col2, - col2 - + + CAST( NULL AS SIGNED ), - - col2 )
----

skipif mysql # not compatible
query III rowsort label-2319
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 74 + col2, 80 + - col2, - col2 - + + CAST ( NULL AS INTEGER ), - - col2 )
----

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + + col2 * col0, - 76, - - col1, col1, - col1, + 73, - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 3 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
45

query I rowsort
SELECT ALL + col2 * + 44 AS col0 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL + 77 DIV + 31 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 77 / + 31 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT DISTINCT ( + SUM( DISTINCT - CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT ( + SUM ( DISTINCT - CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT COUNT( * ) * - - 39 AS col0 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2326
SELECT COUNT ( * ) * - - 39 AS col0 FROM tab1
----
117

query I rowsort
SELECT ALL - 7 AS col2 FROM tab2 WHERE NOT ( - 73 ) IS NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL ( COUNT( + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL ( COUNT ( + col0 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - col0 * - 91 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT 80 * - + MAX( DISTINCT + col1 ) FROM tab0
----
-6480

skipif mysql # not compatible
query I rowsort label-2330
SELECT 80 * - + MAX ( DISTINCT + col1 ) FROM tab0
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - + COUNT( * ) * + 24 + COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2331
SELECT - + COUNT ( * ) * + 24 + COUNT ( * ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT col2 + + + col0 * - - col1 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL + 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL MIN( - col0 ) - - MAX( DISTINCT - 52 ) FROM tab1 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL MIN ( - col0 ) - - MAX ( DISTINCT - 52 ) FROM tab1 AS cor0
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT DISTINCT 82 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT 82 / + - COUNT ( * ) FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT col2 + + - ( + col0 ) FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT 61 + - + 41, COUNT( * ) AS col0 FROM tab0
----
20
3

skipif mysql # not compatible
query II rowsort label-2338
SELECT 61 + - + 41, COUNT ( * ) AS col0 FROM tab0
----
20
3

query I rowsort
SELECT DISTINCT - ( ( - 72 ) ) AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL - col0 * + 2 AS col0 FROM tab0 cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT DISTINCT - + CAST( - 9 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - + CAST ( - 9 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT + COUNT( * ) AS col0, - 39 AS col1 FROM tab0 AS cor0
----
3
-39

skipif mysql # not compatible
query II rowsort label-2342
SELECT + COUNT ( * ) AS col0, - 39 AS col1 FROM tab0 AS cor0
----
3
-39

query I rowsort
SELECT + ( + 85 ) AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MAX( + ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-2344
SELECT MAX ( + ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

query I rowsort
SELECT DISTINCT + 6 + - 77 FROM tab0 cor0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2347
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + - col1 * - 53 * - 93 * + 13 + + col1 + - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + - col1 * - 53 * - 93 * + 13 + + col1 + - + col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 + ( 44 ) AS col2 FROM tab1
----
103
112
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT col0 DIV + - col1 + - col2 FROM tab2
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-2349
SELECT col0 / + - col1 + - col2 FROM tab2
----
-23
-40
-59

query I rowsort
SELECT 52 + - - 60 + col0 AS col1 FROM tab0
----
127
199
209

query I rowsort
SELECT DISTINCT 69 * + 69 * col0 FROM tab0
----
414207
461817
71415

query I rowsort
SELECT col2 FROM tab2 WHERE ( NOT - col0 IS NULL )
----
23
40
58

query II rowsort
SELECT + col1 + 70 * + + 95 * + 54 + - ( - col0 ) AS col1, ( ( - col1 ) ) AS col2 FROM tab0
----
359196
-81
359198
-1
359208
-21

query I rowsort
SELECT ALL - col2 + - 82 * + + 21 * - - col1 AS col0 FROM tab0
----
-139529
-1821
-36172

query I rowsort
SELECT ALL + col2 * + col2 * - col2 * + col2 * - col0 FROM tab2
----
12872686
163840000
848737200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT - CAST( - col1 AS SIGNED ) + col1 AS col2 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-2356
SELECT - CAST ( - col1 AS INTEGER ) + col1 AS col2 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + col1 col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 * - col0 * 29 AS col2 FROM tab1 AS cor0
----
-12325
-124033
-20706

query I rowsort
SELECT + col2 * - + col0 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + 39 AS col1, col0 FROM tab0 AS cor0
----
39
15
39
87
39
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ( - + ( SUM( + 72 ) ) ) AS col1 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-2362
SELECT ( - + ( SUM ( + 72 ) ) ) AS col1 FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL + 83 + COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + 83 + COUNT ( * ) FROM tab2
----
86

query I rowsort
SELECT - ( + 49 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT 87 + 27 + - 94 AS col0 FROM tab2
----
20
20
20

query I rowsort
SELECT - 12 FROM tab0 WHERE NULL IS NULL
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-2367
SELECT ALL col1 DIV + ( - 41 ) AS col2, 50 AS col1 FROM tab1 AS cor0
----
-1
50
0
50
0
50

skipif mysql # not compatible
query II rowsort label-2367
SELECT ALL col1 / + ( - 41 ) AS col2, 50 AS col1 FROM tab1 AS cor0
----
-1
50
0
50
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT - MIN( - 60 ) AS col2 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - MIN ( - 60 ) AS col2 FROM tab0 cor0
----
60

query I rowsort
SELECT col1 + + + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL - COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL - 62 + - CAST( + + MAX( DISTINCT + 14 ) AS SIGNED ) col1 FROM tab1
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2372
SELECT ALL - 62 + - CAST ( + + MAX ( DISTINCT + 14 ) AS INTEGER ) col1 FROM tab1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2373
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT ALL col2 DIV + - col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL col2 / + - col2 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT SUM( ( - - col0 ) ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2375
SELECT SUM ( ( - - col0 ) ) col1 FROM tab0
----
199

query I rowsort
SELECT 94 FROM tab0 AS cor0 WHERE NOT 95 + - + col1 IS NULL
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + + 91 AS SIGNED ) >= + 7
----

skipif mysql # not compatible
query III rowsort label-2377
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + + 91 AS INTEGER ) >= + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2378
SELECT ALL - col2 AS col0, CAST( 21 AS SIGNED ) - + col1 AS col1 FROM tab2 AS cor0
----
-23
-30
-40
-56
-58
-46

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL - col2 AS col0, CAST ( 21 AS INTEGER ) - + col1 AS col1 FROM tab2 AS cor0
----
-23
-30
-40
-56
-58
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT ( ( - col0 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT ( ( - col0 ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + - COUNT( ALL 72 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2380
SELECT + - COUNT ( ALL 72 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT 6 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - + MAX( DISTINCT - ( + 34 ) ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2383
SELECT - + MAX ( DISTINCT - ( + 34 ) ) AS col2 FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT - MAX( CAST( - 73 AS SIGNED ) ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2384
SELECT - MAX ( CAST ( - 73 AS INTEGER ) ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT - + col1 * - + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col1 * + + 73 AS col1 FROM tab0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + COUNT( * ) * + 76 AS col0 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + COUNT ( * ) * + 76 AS col0 FROM tab1
----
228

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + ( ( + ( col2 ) ) ) + + - col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + SUM( DISTINCT col0 ) * + COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-2389
SELECT + SUM ( DISTINCT col0 ) * + COUNT ( * ) FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - COUNT( * ) * - ( ( + MAX( + - col2 ) ) ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COUNT ( * ) * - ( ( + MAX ( + - col2 ) ) ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT DISTINCT - col2 * 24 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT - 25 + + + 14 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT col0 + - + col2 * + ( - - 41 ) * - col2 * - 17 * col2 + + 11 + - col2 * ( col1 ) * col2 FROM tab0 AS cor0
----
-676308096
-699002
-72543534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * - - col2 AS col2, ( - col2 ), - 55 + + - col2 col0 FROM tab1 AS cor0 WHERE NULL = col0 * + col0 / + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT - col1 FROM tab2 WHERE - - col1 * 88 * - - CAST( - col2 AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2395
SELECT - col1 FROM tab2 WHERE - - col1 * 88 * - - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
28

query I rowsort
SELECT - col2 * + + col1 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL - COUNT( * ) * + MAX( 43 ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - COUNT ( * ) * + MAX ( 43 ) FROM tab1 AS cor0
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 + + + 41 col0 FROM tab2 AS cor0
----
110
145
174

query I rowsort
SELECT ALL + - col2 * - - 99 + - 90 FROM tab1 AS cor0
----
-5931
-6822
-9594

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT COUNT( * ) * + 4 * + COUNT( * ) - - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2401
SELECT COUNT ( * ) * + 4 * + COUNT ( * ) - - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0 WHERE NOT + col1 = col2 + - col0 / + col2 AND + 62 IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 73 = col2 + 25
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 73 = col2 + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + SUM( ALL col2 ) * - 43 AS col0 FROM tab2 AS cor0
----
-5203

skipif mysql # not compatible
query I rowsort label-2404
SELECT + SUM ( ALL col2 ) * - 43 AS col0 FROM tab2 AS cor0
----
-5203

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 98 * - col1 * + + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL - MIN( - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT ALL 44 * - - col2 AS col2 FROM tab1
----
2596
2992
4224

query I rowsort
SELECT + ( + 89 ) AS col0 FROM tab1
----
89
89
89

query I rowsort
SELECT + ( 2 ) FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
51
67
77

query I rowsort
SELECT - 4 * + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT - + MAX( + + 39 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT - + MAX ( + + 39 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2415
SELECT DISTINCT * FROM tab0 WHERE NOT 43 - - col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2415
SELECT DISTINCT * FROM tab0 WHERE NOT 43 - - col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) + + - COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + - col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT - col1 DIV - - col2 * + 1 - - 11 AS col0 FROM tab2 AS cor0
----
10
10
9

skipif mysql # not compatible
query I rowsort label-2418
SELECT - col1 / - - col2 * + 1 - - 11 AS col0 FROM tab2 AS cor0
----
10
10
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT ALL + + col2 DIV - 91 + - - col1 + + col2 + - + col2 - - col1 DIV - col0 FROM tab1 cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + + col2 / - 91 + - - col1 + + col2 + - + col2 - - col1 / - col0 FROM tab1 cor0
----
13
47
5

query I rowsort
SELECT DISTINCT - - col2 + + + col0 + + 86 AS col2 FROM tab2 cor0
----
155
190
219

query II rowsort
SELECT + col2 + + 58, + col2 AS col1 FROM tab2
----
116
58
81
23
98
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + 93 * + col0 NOT IN ( - col1, 49 )
----

query I rowsort
SELECT 75 + - - col0 * + col2 AS col0 FROM tab2
----
1133
2635
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT - ( col1 ) + CAST( NULL AS SIGNED ) + + 51 / + 77 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT - ( col1 ) + CAST ( NULL AS INTEGER ) + + 51 / + 77 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 52 + + 79 FROM tab2
----
131
131
131

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 17 - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 77 ) + - 75 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + + 32 AS col0 FROM tab2 AS cor0
----
-26
-8
9

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab0 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT COUNT( + + 30 ) + + ( + 23 ) AS col2 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT COUNT ( + + 30 ) + + ( + 23 ) AS col2 FROM tab1 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2432
SELECT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COUNT( + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COUNT ( + - col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * + 10 AS col1 FROM tab0 cor0
----
-150
-870
-970

query I rowsort
SELECT + 17 * - - 95 * ( + + col0 ) AS col2 FROM tab1 AS cor0
----
137275
146965
82365

query I rowsort
SELECT ALL 70 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
30
47

query I rowsort
SELECT - col0 * - 53 * + - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-112199
-217165
-298192

query I rowsort
SELECT DISTINCT + - col0 * - + ( + + col0 ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT ALL COUNT( * ), ( + COUNT( * ) ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2439
SELECT ALL COUNT ( * ), ( + COUNT ( * ) ) col2 FROM tab2
----
3
3

query I rowsort
SELECT + 20 * + + col0 * - - col2 * - ( - 97 ) AS col0 FROM tab2
----
2052520
4966400
8439000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2441
SELECT DISTINCT CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab2 WHERE NOT NULL <> - col2
----

skipif mysql # not compatible
query II rowsort label-2441
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab2 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL + + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2443
SELECT ALL COUNT( * ) AS col0, ( + - 57 ) DIV - 91 AS col0 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL COUNT ( * ) AS col0, ( + - 57 ) / - 91 AS col0 FROM tab2
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT 14 DIV col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2444
SELECT 14 / col2 FROM tab0
----
0
0
1

query II rowsort
SELECT ALL - col0 AS col2, + ( + 81 ) FROM tab0
----
-15
81
-87
81
-97
81

query I rowsort
SELECT ALL col0 * - 2 * 50 * + col0 AS col0 FROM tab1 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT - SUM( DISTINCT col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2447
SELECT - SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT ALL 31 * ( + - col2 ) AS col0 FROM tab2 WHERE ( - 64 / 87 ) IS NOT NULL
----
-1240
-1798
-713

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - + 85 * - + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - + 85 * - + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT ALL COUNT( * ) DIV + 92 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL COUNT ( * ) / + 92 * + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 37 + + - 45 FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT - 21 DIV + - COUNT( * ) AS col0 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 21 / + - COUNT ( * ) AS col0 FROM tab0 cor0
----
7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND - col2 - + 13
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 + - col1 <> NULL
----

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + col2 * - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + col2 * - + col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2458
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) + + + 14 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - ( CAST ( NULL AS REAL ) ) + + + 14 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 3 AS col0, - col2 AS col1 FROM tab1
----
-3
-59
-3
-68
-3
-96

query II rowsort
SELECT DISTINCT col2 AS col1, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - - col2 * + - ( - - col0 ) + + + col1 + - col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + 67 + col0 FROM tab0 AS cor0
----
154
164
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT DISTINCT 37 + + + 2 + + CAST( - - col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-15
-43
18

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 37 + + + 2 + + CAST ( - - col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-15
-43
18

query I rowsort
SELECT + 13 + 52 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT - COUNT( * ) + + 27 col2 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2465
SELECT - COUNT ( * ) + + 27 col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT 92 * - SUM( DISTINCT ( col2 ) ) FROM tab2
----
-11132

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT 92 * - SUM ( DISTINCT ( col2 ) ) FROM tab2
----
-11132

query I rowsort
SELECT - 3 + + col1 FROM tab1
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + COUNT( * ) + 2 * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2468
SELECT + COUNT ( * ) + 2 * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - COUNT( * ) * - 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - COUNT ( * ) * - 22 FROM tab2
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 71 * col2 BETWEEN NULL AND - 37 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab1
----
35
35
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN ( NULL ) AND 41
----
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE NOT + 47 + 42 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( col0 ) * + col2 - - 4 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( * ) + 34 AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( * ) + 34 AS col2 FROM tab1
----
37

query I rowsort
SELECT ( col0 ) + + col0 AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 6 - 76 FROM tab2
----
-70

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 46 + + 94 * - col1 FROM tab1 WHERE - col0 NOT BETWEEN - col0 AND col0 + 56
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * 84 )
----

query I rowsort
SELECT ALL col2 + 92 FROM tab1
----
151
160
188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 64 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 74 / col2 AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN + col1 / 31 + col2 AND col0 - + ( col1 + + col0 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + ( + MIN( + col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2484
SELECT + ( + MIN ( + col1 ) ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - CAST( NULL AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2485
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - CAST ( NULL AS INTEGER ) + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT + COUNT( 38 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT + COUNT ( 38 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + 46 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + 91 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT SUM( DISTINCT ( + col0 ) ) FROM tab1 cor0 WHERE NOT + col0 < col1
----
227

skipif mysql # not compatible
query I rowsort label-2489
SELECT SUM ( DISTINCT ( + col0 ) ) FROM tab1 cor0 WHERE NOT + col0 < col1
----
227

query I rowsort
SELECT col2 * - ( 82 ) FROM tab2 AS cor0
----
-1886
-3280
-4756

query I rowsort
SELECT - col1 * - 81 + ( - col2 ) * + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT + MIN( DISTINCT + col0 ) * + ( + MAX( + col0 ) ) FROM tab2 AS cor0
----
3450

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + MIN ( DISTINCT + col0 ) * + ( + MAX ( + col0 ) ) FROM tab2 AS cor0
----
3450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT col1 + - col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) + - col2 AND col1
----

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT col1 + - col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + - col2 AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT 64 + + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT 64 + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
67

query I rowsort
SELECT - 99 + col1 FROM tab0 AS cor0
----
-18
-78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - + COUNT( * ) + 27 AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2498
SELECT - + COUNT ( * ) + 27 AS col2 FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2499
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2499
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + - CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * 77 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2501
SELECT * FROM tab0 AS cor0 WHERE - ( CAST( - col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2501
SELECT * FROM tab0 AS cor0 WHERE - ( CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT ALL + col0 DIV - col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + col0 / - col1 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT + 65 AS col1 FROM tab1 cor0 WHERE + CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 65 AS col1 FROM tab1 cor0 WHERE + CAST ( - col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT MIN( ALL - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT + 53 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + 53 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL + 59 * - - 3 * 75 + - COUNT( * ) FROM tab0
----
13272

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL + 59 * - - 3 * 75 + - COUNT ( * ) FROM tab0
----
13272

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - SUM( - 77 ) AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( col0 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - SUM ( - 77 ) AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( col0 + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + MIN( col2 ) * + 45 FROM tab1 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT + MIN ( col2 ) * + 45 FROM tab1 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL 57 + + COUNT( * ) + 19 AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL 57 + + COUNT ( * ) + 19 AS col2 FROM tab2
----
79

query I rowsort
SELECT DISTINCT - col2 - ( 0 ) * col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col2 * + - col1 * - col1 AS col0 FROM tab1
----
1475
150212
18816

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL - col2 DIV + 56 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - col2 / + 56 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col2 FROM tab2
----
-94
-94
-94

query I rowsort
SELECT - - 48 * - 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e1b4bb08eb959b6a9255c073e577fbf2

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 8 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + COUNT( * ) + - 94 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-2520
SELECT + COUNT ( * ) + - 94 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-837

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2521
SELECT ALL - CAST( NULL AS DECIMAL ) * 85 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - CAST ( NULL AS REAL ) * 85 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2522
SELECT ALL - COUNT( * ) * + + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + + COUNT( 48 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - COUNT ( * ) * + + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + + COUNT ( 48 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT - col0 * + col1 + + col2 DIV + col0 FROM tab1 AS cor0
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-2524
SELECT - col0 * + col1 + + col2 / + col0 FROM tab1 AS cor0
----
-425
-4277
-713

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 * col2 - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2527
SELECT + col2, + col1 + + + col1 + + ( 34 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
10
43
47
162
99
36

skipif mysql # not compatible
query II rowsort label-2527
SELECT + col2, + col1 + + + col1 + + ( 34 ) / + col1 AS col1 FROM tab0 AS cor0
----
10
43
47
162
99
36

query I rowsort
SELECT + - 23 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18
-9
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL col0 * - - ( - CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL col0 * - - ( - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - col1 * 87 + - + col2 AS col2 FROM tab1 AS cor0
----
-1314
-4157
-494

query I rowsort
SELECT - col1 * ( + col1 ) * 77 AS col2 FROM tab0 AS cor0
----
-33957
-505197
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 - + - col1 * 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1, col2 col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT col1 * + 14 * - 84 FROM tab2
----
-59976
-78792
-90552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT DISTINCT + ( + SUM( ALL - col2 ) ) AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + 75 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + ( + SUM ( ALL - col2 ) ) AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + 75 * - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT ( col1 ) * - 66 FROM tab1
----
-3102
-330
-924

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2539
SELECT * FROM tab0 WHERE NOT - col0 + + col0 * 63 NOT BETWEEN NULL AND col1 - 70 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2539
SELECT * FROM tab0 WHERE NOT - col0 + + col0 * 63 NOT BETWEEN NULL AND col1 - 70 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 < - + 55 + + 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * - col1 col2 FROM tab2
----
-3723
-4891
-5621

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 - + 69 * 16 NOT IN ( - 69 * 38 + 16 )
----

query I rowsort
SELECT DISTINCT + AVG ( ALL col2 ) FROM tab0 AS cor0 WHERE ( + 80 * + + col0 * ( col2 ) * col1 ) <= ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + - COUNT( ALL - 71 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2545
SELECT + - COUNT ( ALL - 71 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + + 91 col1 FROM tab1 AS cor0
----
235
238
250

query I rowsort
SELECT - 94 + - 4 - + col1 * - 44 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL < ( + ( + 62 ) + col1 * + 18 )
----

query I rowsort
SELECT - - 51 + + - col2 * + + col2 * - col0 FROM tab2 AS cor0
----
102451
24385
252351

query I rowsort
SELECT DISTINCT col1 * - 4 AS col1 FROM tab2
----
-204
-268
-308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 WHERE - CAST( + col1 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL 66 DIV col0 DIV + + 56 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL 66 / col0 / + + 56 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT col2, col2 * - 78 - - 74 + + col2 AS col1 FROM tab2
----
23
-1697
40
-3006
58
-4392

onlyif mysql # aggregate syntax: 
query II rowsort label-2556
SELECT DISTINCT - - COUNT( * ) AS col2, + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9
81

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT - - COUNT ( * ) AS col2, + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9
81

query I rowsort
SELECT DISTINCT + 84 * + col0 FROM tab0 cor0
----
1260
7308
8148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2558
SELECT - CAST( NULL AS DECIMAL ) * AVG ( 19 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT - CAST ( NULL AS REAL ) * AVG ( 19 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 98 FROM tab0 cor0 WHERE - 32 <= + 76
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL + col0 * ( - col2 ) * - 35 + + - 14 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + col0 * ( - col2 ) * - 35 + + - 14 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT 59 DIV - SUM( col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT 59 / - SUM ( col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - 62 DIV - col0 AS col2 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 62 / - col0 AS col2 FROM tab0 cor0
----
0
0
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - + col0 + + ( + - 52 ) FROM tab2 AS cor0
----
-116
-127
-98

query I rowsort
SELECT DISTINCT - 96 + - - 38 FROM tab2
----
-58

query I rowsort
SELECT ALL col2 + - 88 AS col2 FROM tab1
----
-20
-29
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL <= - 27 )
----

query I rowsort
SELECT ALL - col1 + 80 - 41 + + 79 * + - col1 AS col1 FROM tab2
----
-4041
-5321
-6121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * + col2 * col1 * col0 * + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
217398735
3836700
950697

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * + col2 * col1 * col0 * + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
217398735
3836700
950697

query I rowsort
SELECT ALL + ( - col1 ) * + 12 * - - col2 FROM tab2 AS cor0
----
-14076
-36960
-46632

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL MIN( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL MIN ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - - 50 FROM tab2 cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2574
SELECT DISTINCT - MAX( + col2 ) AS col1, COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + 39 AND NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2574
SELECT DISTINCT - MAX ( + col2 ) AS col1, COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + 39 AND NULL
----
NULL
0

query II rowsort
SELECT ALL 43, + 23 AS col1 FROM tab0
----
43
23
43
23
43
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT 35 AS col0, COUNT( * ) AS col2 FROM tab1
----
35
3

skipif mysql # not compatible
query II rowsort label-2576
SELECT 35 AS col0, COUNT ( * ) AS col2 FROM tab1
----
35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL 58 + MIN( ALL col0 ) AS col1 FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL 58 + MIN ( ALL col0 ) AS col1 FROM tab2
----
104

query I rowsort
SELECT + col0 + - ( - 31 ) * col0 AS col1 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT + 38 + + 76 FROM tab0
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT 84 + + - COUNT( * ) + + COUNT( + col2 ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT 84 + + - COUNT ( * ) + + COUNT ( + col2 ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT COUNT( + 63 ) + + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT COUNT ( + 63 ) + + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT DISTINCT + - AVG ( + - col1 ) + COUNT( * ), 44 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2582
SELECT DISTINCT + - AVG ( + - col1 ) + COUNT ( * ), 44 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2583
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - + 97 * 17 FROM tab2 AS cor0 WHERE NOT ( NOT ( - 12 NOT BETWEEN + col0 AND ( NULL ) ) ) OR ( - col2 ) IS NOT NULL AND NULL = - col2
----
-1572
-1582
-1598

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2 + + ( - col2 ) col2, - 42 * - - col0 AS col0 FROM tab0 AS cor0
----
658
-630
860
-3654
9504
-4074

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( - - col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col1 col0 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT - col1 * col1 * + col2 DIV + - col2 AS col0 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-2590
SELECT - col1 * col1 * + col2 / + - col2 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT ( - + 14 ) + + col0 - + - col2 AS col2 FROM tab1
----
130
133
145

query I rowsort
SELECT DISTINCT - col1 - + 17 - + 97 FROM tab0
----
-115
-135
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT CAST( + col2 AS SIGNED ) col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2593
SELECT CAST ( + col2 AS INTEGER ) col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT + ( - - CAST( + MIN( + col1 ) AS SIGNED ) ) * - ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + ( - - CAST ( + MIN ( + col1 ) AS INTEGER ) ) * - ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT ALL - col1 AS col0, + ( + ( - 4 ) ) * + 28 - + 66 AS col1 FROM tab2
----
-51
-178
-67
-178
-77
-178

query I rowsort
SELECT ALL + + 83 * 82 FROM tab2 AS cor0
----
6806
6806
6806

query I rowsort
SELECT + col0 * + - col2 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT 28 AS col1, - col1 FROM tab0
----
28
-1
28
-21
28
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL MIN( + - 71 ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL MIN ( + - 71 ) AS col2 FROM tab1
----
-71

query II rowsort
SELECT ALL col2, 25 AS col0 FROM tab0
----
10
25
47
25
99
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2601
SELECT ALL + 23 AS col0, col2, - 68 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
9 values hashing to d1a585573ae97decbd4f835c0664f9de

skipif mysql # not compatible
query III rowsort label-2601
SELECT ALL + 23 AS col0, col2, - 68 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
9 values hashing to d1a585573ae97decbd4f835c0664f9de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81, - 5 col1 FROM tab1 AS cor0
----
81
-5
81
-5
81
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL - col2 - + col1 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - col2 - + col1 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 = 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT col2 * ( - + ( + 31 ) ) FROM tab1 AS cor0
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT SUM( + 38 ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-2607
SELECT SUM ( + 38 ) FROM tab0
----
114

query I rowsort
SELECT ALL + AVG ( DISTINCT ( col0 ) ) FROM tab1 WHERE NOT ( 13 * 54 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT COUNT( + ( - + col1 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2609
SELECT COUNT ( + ( - + col1 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 + + 63 AS col2 FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND + + ( - + 38 ) * - - col0 / - + 70
----
122
131
159

query I rowsort
SELECT - col2 + 73 AS col1 FROM tab1 cor0
----
-23
14
5

query I rowsort
SELECT DISTINCT + 74 + 55 FROM tab0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2613
SELECT DISTINCT - - COUNT( * ) - + 34 + - - 44 DIV COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - - COUNT ( * ) - + 34 + - - 44 / COUNT ( * ) FROM tab2 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col0 + + + 70 + - col2 AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + SUM( DISTINCT - col2 ) FROM tab1 cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT + SUM ( DISTINCT - col2 ) FROM tab1 cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT ALL - - COUNT( * ) * 88 * - CAST( + 61 AS SIGNED ) * - + MAX( 70 ) - + COUNT( * ) + 14 AS col0 FROM tab0 AS cor0
----
1127291

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - - COUNT ( * ) * 88 * - CAST ( + 61 AS INTEGER ) * - + MAX ( 70 ) - + COUNT ( * ) + 14 AS col0 FROM tab0 AS cor0
----
1127291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2617
SELECT - 13 - + COUNT( * ) / CAST( NULL AS SIGNED ) AS col1, MAX( + col0 ) FROM tab1 AS cor0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2617
SELECT - 13 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1, MAX ( + col0 ) FROM tab1 AS cor0
----
NULL
91

query I rowsort
SELECT - 83 * + ( - 73 ) + - col0 / col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT col1 >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - + col2 + col2 col2 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL + 51 * - SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
-10149

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + 51 * - SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
-10149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 - ( col0 ) + - col1 + + 22 col2 FROM tab0 AS cor0
----
-76
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + COUNT( ALL + 34 ) - + + 0 + ( - COUNT( * ) ) * 6 col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT + COUNT ( ALL + 34 ) - + + 0 + ( - COUNT ( * ) ) * 6 col0 FROM tab2 AS cor0
----
-15

query II rowsort
SELECT ALL 49 AS col2, - col1 + 36 * + col0 AS col0 FROM tab1 cor0 WHERE NOT col2 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT CAST( - - 88 AS SIGNED ) FROM tab2 cor0 WHERE - 23 / col2 IS NOT NULL
----
88
88
88

skipif mysql # not compatible
query I rowsort label-2624
SELECT CAST ( - - 88 AS INTEGER ) FROM tab2 cor0 WHERE - 23 / col2 IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL - MIN( ALL + 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - MIN ( ALL + 47 ) FROM tab2
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 67 + 82 < + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2627
SELECT * FROM tab1 WHERE NOT - - col2 * - + 29 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2627
SELECT * FROM tab1 WHERE NOT - - col2 * - + 29 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * 80 FROM tab0
----
1680
6480
80

query I rowsort
SELECT DISTINCT + + col2 * - + col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - CAST( NULL AS SIGNED ) >= - + 41
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2630
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - CAST ( NULL AS INTEGER ) >= - + 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT 92 DIV - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2631
SELECT 92 / - col0 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT MAX( + 13 ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2634
SELECT MAX ( + 13 ) AS col1 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2635
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT - CAST( + 44 AS SIGNED ) + + col0 + - 55 FROM tab0 AS cor0
----
-12
-2
-84

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - CAST ( + 44 AS INTEGER ) + + col0 + - 55 FROM tab0 AS cor0
----
-12
-2
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2637
SELECT * FROM tab2 cor0 WHERE + 74 IN ( ( + + col2 ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2637
SELECT * FROM tab2 cor0 WHERE + 74 IN ( ( + + col2 ), - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 + + 53 + + + ( - col2 ) AS col0 FROM tab2
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col1 + - - 54 <= - + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 + + col0 col2 FROM tab2
----
-1536
-3289
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 57 DIV + + col0 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2641
SELECT 57 / + + col0 AS col0 FROM tab0
----
0
0
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 38 - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 30 + + col0 AS col1 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT DISTINCT + col1 + - col0 + + col1 FROM tab1 AS cor0
----
-23
-75
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE 31 IS NULL
----

query I rowsort
SELECT ALL - 75 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT - 3 - - + COUNT( * ) * COUNT( * ) DIV + + MAX( - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 3 - - + COUNT ( * ) * COUNT ( * ) / + + MAX ( - col2 ) FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - MIN( + col1 ) + COUNT( * ) * + 82 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2649
SELECT - MIN ( + col1 ) + COUNT ( * ) * + 82 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + + 3 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT + - ( + col1 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + - ( + col1 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 70 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-70
-70
-70

query I rowsort
SELECT 88 * - ( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-4488
-5896
-6776

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 / + + 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + MIN( + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2656
SELECT + MIN ( + - col2 ) AS col0 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, ( col1 ) col0 FROM tab1
----
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * - col1 col1 FROM tab2
----
-3570
-4690
-5390

query I rowsort
SELECT ALL col1 / - col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + - col0 )
----

query I rowsort
SELECT DISTINCT - 1 * + + 93 FROM tab0
----
-93

query I rowsort
SELECT col0 / + 7 + - + col1 AS col2 FROM tab0 WHERE NOT - + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 47 AND + 25
----

query I rowsort
SELECT ALL + col2 * - 56 AS col1 FROM tab1 AS cor0
----
-3304
-3808
-5376

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col0, - col0, ( + col2 ) * + - col1 * - + ( + 84 ) )
----

query II rowsort
SELECT + 50 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
50
-15
50
-87
50
-97

query II rowsort
SELECT - + 44, col0 FROM tab2 AS cor0
----
-44
46
-44
64
-44
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT - 21 DIV - 76 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2667
SELECT - 21 / - 76 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + - col2, - 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT col0 + - 6 + - col0 + - - 35 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT col0 + - 6 + - col0 + - - 35 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2671
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 + + - 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + CAST ( NULL AS REAL ) * col1 + + - 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + ( - 51 ) AS col1 FROM tab1 AS cor0
----
-56
-65
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL + col0 + col0 * col2 DIV col2 * col1 AS col2 FROM tab1
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + col0 + col0 * col2 / col2 * col1 AS col2 FROM tab1
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 37 * col0 + + + 29 FROM tab0 AS cor0
----
3248
3618
584

query I rowsort
SELECT DISTINCT 60 + + col0 AS col0 FROM tab1
----
111
145
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL + CAST( - 72 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - col0 - - 74 FROM tab0
----
-13
-23
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT + COUNT( * ) DIV + 64 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + COUNT ( * ) / + 64 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 77 ) col1 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2681
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - - col1 AS SIGNED ) * - 37 + - - col0 + + + 48 / - col2 * col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2681
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) * - 37 + - - col0 + + + 48 / - col2 * col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 81 AS col1, ( + col2 ) FROM tab2 AS cor0
----
81
23
81
40
81
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - + MIN( - - 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2683
SELECT - + MIN ( - - 46 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT col1 * - ( - - col2 ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 1 * 0 * + col0 + col1 + - - 79 - + 58 FROM tab0 WHERE - + 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT COUNT( ALL - 11 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2686
SELECT COUNT ( ALL - 11 ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT - 19 DIV - - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 19 / - - col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 56 * - col1 * + 96 + + col1 * + col2 IN ( + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( col2 ) - + 47 - + 6 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT + col0 DIV - + 8 AS col2 FROM tab1
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-2690
SELECT + col0 / - + 8 AS col2 FROM tab1
----
-10
-11
-6

query II rowsort
SELECT + ( + col1 ) AS col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + col1 + - col0 + + col2 * - - 4 * col0 FROM tab1
----
19547
19980
24708

query II rowsort
SELECT ALL - 99, + col2 AS col2 FROM tab2 AS cor0
----
-99
23
-99
40
-99
58

query I rowsort
SELECT DISTINCT 69 * - col1 AS col2 FROM tab0 AS cor0
----
-1449
-5589
-69

query I rowsort
SELECT DISTINCT col2 + + 54 FROM tab0 AS cor0
----
101
153
64

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL AND NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2697
SELECT * FROM tab0 AS cor0 WHERE - col1 + - - col0 - + 72 NOT IN ( col2, col0 + - - 87 / - CAST( - col0 AS DECIMAL ), - col2, col1 ) AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2697
SELECT * FROM tab0 AS cor0 WHERE - col1 + - - col0 - + 72 NOT IN ( col2, col0 + - - 87 / - CAST ( - col0 AS REAL ), - col2, col1 ) AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - + 40 + 38 - + col0 - col0 AS col1 FROM tab2 AS cor0
----
-43
-53
-85

query I rowsort
SELECT + col2 + - 41 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT ALL + + 11, COUNT( * ) AS col0 FROM tab1 WHERE ( col2 > NULL )
----
11
0

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL + + 11, COUNT ( * ) AS col0 FROM tab1 WHERE ( col2 > NULL )
----
11
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 IN ( + + col0 * + 50 )
----

query I rowsort
SELECT ALL col2 * - + col0 * + col2 - - col2 FROM tab0
----
-33088
-8690
-950598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT 9 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT 9 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 - - 88 col2 FROM tab0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT ALL + 7 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + 7 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + 74 * + col1 + - 36 / col0 IN ( 50 + + ( - + col2 ), col1 - + ( - col0 ) + + - col1 + - 32 + + + col0 * - col1 * + + 46 + - 23, col0 - + 16 )
----

query I rowsort
SELECT + 15 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 * 85 - - 91 FROM tab0 AS cor0
----
-1694
-6794
6

query I rowsort
SELECT DISTINCT - ( ( - ( - col0 ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ( + MIN( DISTINCT - - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2710
SELECT ( + MIN ( DISTINCT - - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT col1 DIV - 87 * + 37 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT col1 / - 87 * + 37 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT CAST( NULL AS SIGNED ) * - 28 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT CAST ( NULL AS INTEGER ) * - 28 * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 * + + 86 AS col1 FROM tab0
----
4816
4816
4816

query II rowsort
SELECT 66 AS col2, + col1 + col0 + - ( 9 ) + - + col2 AS col1 FROM tab1
----
66
-40
66
22
66
61

query I rowsort
SELECT col0 * + - 34 AS col1 FROM tab2
----
-1564
-2176
-2550

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT - 91 + + col1 AS col0 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 49 - + + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + col1 < + col0 + 23
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT SUM( + col2 ) * MIN( - - 47 ) FROM tab2 AS cor0
----
5687

skipif mysql # not compatible
query I rowsort label-2720
SELECT SUM ( + col2 ) * MIN ( - - 47 ) FROM tab2 AS cor0
----
5687

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( - col0 * col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + 18 * SUM( col2 ) FROM tab2 AS cor0
----
2178

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 18 * SUM ( col2 ) FROM tab2 AS cor0
----
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT CAST( + - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2723
SELECT CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - ( + - col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL + + 98 - + - 22 - - 26 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + + 98 - + - 22 - - 26 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198

query I rowsort
SELECT col2 - + col0 + 0 * - + col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 29 FROM tab0 WHERE + col2 + + col2 + - col0 IS NULL
----

query I rowsort
SELECT - 36 + - 58 AS col1 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT + MAX( DISTINCT + col0 ) - - 42 * + 77 FROM tab0
----
3331

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + MAX ( DISTINCT + col0 ) - - 42 * + 77 FROM tab0
----
3331

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT ALL + COUNT( * ), 93 AS col2 FROM tab2
----
3
93

skipif mysql # not compatible
query II rowsort label-2730
SELECT ALL + COUNT ( * ), 93 AS col2 FROM tab2
----
3
93

query I rowsort
SELECT DISTINCT 21 * - col2 FROM tab2
----
-1218
-483
-840

query II rowsort
SELECT ALL - 66 AS col1, col0 + - 63 FROM tab0 AS cor0
----
-66
-48
-66
24
-66
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 96 + + ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2734
SELECT ALL CAST( + col2 AS SIGNED ) * ( col2 ), col2 + - - col1 * - 28 AS col0 FROM tab2 AS cor0
----
1600
-2116
3364
-1818
529
-1405

skipif mysql # not compatible
query II rowsort label-2734
SELECT ALL CAST ( + col2 AS INTEGER ) * ( col2 ), col2 + - - col1 * - 28 AS col0 FROM tab2 AS cor0
----
1600
-2116
3364
-1818
529
-1405

query I rowsort
SELECT + 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + - ( + ( + 73 ) ) * - 31 FROM tab0 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + + SUM( + ( + col2 ) ) col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2737
SELECT + + SUM ( + ( + col2 ) ) col0 FROM tab2 cor0
----
121

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 - - col1 + - - col2 * - - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col1 AS col0, + 72 AS col1 FROM tab1 cor0 WHERE NOT NULL >= + ( - col0 ) + - - col2
----

query I rowsort
SELECT ALL - + 33 AS col2 FROM tab1 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL SUM( ALL + + ( + + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL SUM ( ALL + + ( + + col2 ) ) FROM tab2
----
121

query I rowsort
SELECT 25 * - col1 + ( - 33 ) FROM tab2
----
-1308
-1708
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2743
SELECT + col0, col1 / + - 10 * - CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2743
SELECT + col0, col1 / + - 10 * - CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 col0 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE NULL BETWEEN 18 AND + col2
----

query I rowsort
SELECT DISTINCT col0 + + + 80 AS col0 FROM tab2
----
126
144
155

query III rowsort
SELECT * FROM tab1 WHERE - 41 * - ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 * + 19, col0 FROM tab1 AS cor0
----
-266
51
-893
91
-95
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 6
----

query I rowsort
SELECT + - 9 + col1 FROM tab1 AS cor0
----
-4
38
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2751
SELECT DISTINCT - col1 DIV - col0 + - - 3 DIV CAST( - 19 AS SIGNED ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - col1 / - col0 + - - 3 / CAST ( - 19 AS INTEGER ) FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + + 40 + - COUNT( * ) col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT + + 40 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT + COUNT( ALL + + CAST( col2 AS SIGNED ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2753
SELECT + COUNT ( ALL + + CAST ( col2 AS INTEGER ) ) col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 - + - 23 + - 95 * col0 AS col1 FROM tab2
----
-4296
-5980
-7035

query II rowsort
SELECT DISTINCT col2 * - 7 AS col2, col2 AS col0 FROM tab1
----
-413
59
-476
68
-672
96

query I rowsort
SELECT DISTINCT - 87 - - col0 AS col1 FROM tab2
----
-12
-23
-41

query I rowsort
SELECT DISTINCT + col0 - 7 FROM tab1
----
44
78
84

query I rowsort
SELECT DISTINCT - - ( 75 ) FROM tab0 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT 42 * - COUNT( * ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT 42 * - COUNT ( * ) FROM tab1 AS cor0
----
-126

query I rowsort
SELECT ALL - - 23 * col2 FROM tab1 cor0
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * col0 col2 FROM tab1
----
2397
3995
4277

query II rowsort
SELECT - 0 AS col0, - 29 AS col1 FROM tab0
----
0
-29
0
-29
0
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + 17 * - SUM( 42 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-6426

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT ALL + 17 * - SUM ( 42 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-6426

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - 8 * SUM( ALL - col1 ) AS col0 FROM tab2
----
1560

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - 8 * SUM ( ALL - col1 ) AS col0 FROM tab2
----
1560

query I rowsort
SELECT DISTINCT - col1 * + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - MIN( + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + - MIN ( + col0 ) AS col0 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 89 AS col1, COUNT( * ) FROM tab2 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-2767
SELECT 89 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL + 16 * - + 98 * + COUNT( * ) FROM tab1 AS cor0
----
-4704

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + 16 * - + 98 * + COUNT ( * ) FROM tab1 AS cor0
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + col0 * + 15 / + col0 + - - 76 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2769
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + col0 * + 15 / + col0 + - - 76 IS NULL
----
3

query II rowsort
SELECT - 91 AS col2, + 26 FROM tab2 cor0
----
-91
26
-91
26
-91
26

query I rowsort
SELECT - 64 * - - 39 FROM tab2
----
-2496
-2496
-2496

query I rowsort
SELECT - 82 * + + ( + col2 ) FROM tab1
----
-4838
-5576
-7872

query II rowsort
SELECT DISTINCT + ( + 73 ), + 51 + + - col1 AS col1 FROM tab1
----
73
37
73
4
73
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + COUNT( * ) * - 87 AS col1 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-2774
SELECT + COUNT ( * ) * - 87 AS col1 FROM tab2
----
-261

query I rowsort
SELECT DISTINCT + col2 * - 44 FROM tab0
----
-2068
-4356
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL 56 * + COUNT( * ) AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL 56 * + COUNT ( * ) AS col1 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL COUNT( DISTINCT + col2 ) * + 7 AS col0 FROM tab0 WHERE NOT + col1 = + ( + col0 )
----
21

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL COUNT ( DISTINCT + col2 ) * + 7 AS col0 FROM tab0 WHERE NOT + col1 = + ( + col0 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT ALL col1 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL col1 / + - col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + COUNT( * ) * + ( 41 ) AS col0 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + COUNT ( * ) * + ( 41 ) AS col0 FROM tab2 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT + 24 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 24 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 + + col2 FROM tab0 cor0
----
132
43
80

query I rowsort
SELECT ALL + col1 * + col0 - - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL col1 * - 65 + + col2 AS col1 FROM tab1
----
-266
-2987
-814

query II rowsort
SELECT DISTINCT col2 + + - 56 * - - col0, col1 AS col1 FROM tab0
----
-4862
21
-5333
1
-793
81

query II rowsort
SELECT ALL + + col0, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT - ( - + col1 ), col2 FROM tab0 AS cor0 WHERE col0 < - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - + SUM( ALL col1 ) * 0 * + + 12 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT - + SUM ( ALL col1 ) * 0 * + + 12 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT 17 - + MAX( + 68 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2788
SELECT 17 - + MAX ( + 68 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 18 BETWEEN + 89 AND 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + COUNT( - col1 ) - 38 + - + COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2790
SELECT + COUNT ( - col1 ) - 38 + - + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + - ( 76 ) - + + MIN( DISTINCT ( + - ( - 0 ) ) ) AS col0 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2791
SELECT + - ( 76 ) - + + MIN ( DISTINCT ( + - ( - 0 ) ) ) AS col0 FROM tab1 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT COUNT( ALL + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT COUNT ( ALL + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 - + + col2 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 - col1 * - - col2 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT ALL + col1 - + 23 FROM tab2
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT CAST( + col2 AS SIGNED ) col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2796
SELECT CAST ( + col2 AS INTEGER ) col2 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL NOT BETWEEN ( NULL ) AND + - col1 )
----

query I rowsort
SELECT ALL + ( 3 ) AS col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - ( 18 ) AS col2 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT - + 76 <> + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 65 col2 FROM tab0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + MAX( 9 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + MAX ( 9 ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT ALL - ( COUNT( * ) ) DIV - SUM( - + 62 ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - ( COUNT ( * ) ) / - SUM ( - + 62 ) AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - 46 * + 27 * ( + COUNT( * ) ) FROM tab2
----
-3726

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - 46 * + 27 * ( + COUNT ( * ) ) FROM tab2
----
-3726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * + col2 col1 FROM tab2
----
2139
3720
5394

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT col1 + + col0 + + col2 DIV + col2 AS col1 FROM tab0
----
109
97
99

skipif mysql # not compatible
query I rowsort label-2806
SELECT col1 + + col0 + + col2 / + col2 AS col1 FROM tab0
----
109
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2807
SELECT 41 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT 41 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col2 + - col1 + + 26 AS col0 FROM tab0
----
-2264
-95
-9776

query I rowsort
SELECT + - col0 * + 89 * - 4 FROM tab0 AS cor0
----
30972
34532
5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT MIN( ALL - - CAST( + 9 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2810
SELECT MIN ( ALL - - CAST ( + 9 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + COUNT( * ) * + 84 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2811
SELECT + COUNT ( * ) * + 84 FROM tab2
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT 91 DIV 22 col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT 91 / 22 col1 FROM tab0
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT DISTINCT col1 DIV col1 DIV - col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT col1 / col1 / - col2 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2815
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2815
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 83 * + col2 FROM tab0 AS cor0
----
3901
8217
830

query I rowsort
SELECT ( 12 ) * - - 43 + col2 AS col1 FROM tab0
----
526
563
615

query I rowsort
SELECT ALL - ( - ( - col0 ) ) * - + col2 * ( - col0 ) * + - col1 FROM tab2
----
12615680
21858750
2482068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT ALL - CAST( col0 AS SIGNED ) AS col2, ( 37 ) FROM tab1
----
-51
37
-85
37
-91
37

skipif mysql # not compatible
query II rowsort label-2819
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2, ( 37 ) FROM tab1
----
-51
37
-85
37
-91
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2820
SELECT + CAST( NULL AS SIGNED ), 76 + - col1 col2 FROM tab0 AS cor0
----
NULL
-5
NULL
55
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2820
SELECT + CAST ( NULL AS INTEGER ), 76 + - col1 col2 FROM tab0 AS cor0
----
NULL
-5
NULL
55
NULL
75

query I rowsort
SELECT DISTINCT - 62 + - col0 + - 17 * + - 54 + + 54 AS col0 FROM tab0 AS cor0
----
813
823
895

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2822
SELECT + + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col1 AS col1, - ( + col1 ) * - col1 * col2 FROM tab1 AS cor0
----
-14
18816
-47
150212
-5
1475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL + - col0 + + - CAST( NULL AS SIGNED ) + - 88 + ( ( - 32 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + - col0 + + - CAST ( NULL AS INTEGER ) + - 88 + ( ( - 32 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 36, col0 AS col2 FROM tab2 AS cor0
----
36
46
36
64
36
75

query I rowsort
SELECT ALL + col1 * + 3 FROM tab0
----
243
3
63

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT + 69 * + - col2 + col0 + - - 99 FROM tab2 cor0
----
-1442
-2597
-3828

query III rowsort
SELECT * FROM tab1 cor0 WHERE 74 IS NULL
----

query I rowsort
SELECT + 78 + + col0 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2831
SELECT 83 AS col1, col1 DIV + col1 + + col2 AS col1 FROM tab0
----
83
100
83
11
83
48

skipif mysql # not compatible
query II rowsort label-2831
SELECT 83 AS col1, col1 / + col1 + + col2 AS col1 FROM tab0
----
83
100
83
11
83
48

query I rowsort
SELECT - - 47 * - + 44 - 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 194b4f6a46785343a0394df56ea410c8

query II rowsort
SELECT ALL - - 33, + 4 AS col2 FROM tab2 AS cor0
----
33
4
33
4
33
4

query I rowsort
SELECT ALL - - col2 - - col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT - 27 * - + 17 AS col2 FROM tab1 AS cor0
----
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COUNT( * ) * + - 88 AS col1 FROM tab0 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2837
SELECT COUNT ( * ) * + - 88 AS col1 FROM tab0 cor0
----
-264

query II rowsort
SELECT ALL - 57, + col1 AS col0 FROM tab0 AS cor0
----
-57
1
-57
21
-57
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 col2, 2 AS col2 FROM tab2 AS cor0
----
46
2
46
2
46
2

query I rowsort
SELECT ( - 83 ) AS col2 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT col1 DIV + 11 AS col2, - 49 FROM tab1
----
0
-49
1
-49
4
-49

skipif mysql # not compatible
query II rowsort label-2841
SELECT col1 / + 11 AS col2, - 49 FROM tab1
----
0
-49
1
-49
4
-49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + ( - col2 ) * - col2 + - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - MAX( DISTINCT col0 ) col0 FROM tab2 WHERE NOT + 10 * col1 = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT ALL - MAX ( DISTINCT col0 ) col0 FROM tab2 WHERE NOT + 10 * col1 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL COUNT( ALL - + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COUNT ( ALL - + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col0 * - 43 * + 91 AS col1 FROM tab2 AS cor0
----
-179998
-250432
-293475

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT + + ( + MAX( - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2846
SELECT + + ( + MAX ( - col2 ) ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND - + 12 + - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - MAX( DISTINCT - + 46 ) * + 44 + - 35 AS col0 FROM tab0
----
1989

skipif mysql # not compatible
query I rowsort label-2848
SELECT - MAX ( DISTINCT - + 46 ) * + 44 + - 35 AS col0 FROM tab0
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL MAX( + ( - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL MAX ( + ( - col0 ) ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( ( NOT col0 - - col1 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE col2 / - col1 * + - CAST( - col1 AS SIGNED ) * col0 * + + ( + - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE col2 / - col1 * + - CAST ( - col1 AS INTEGER ) * col0 * + + ( + - col1 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = 78
----

query I rowsort
SELECT DISTINCT + - 0 + 92 FROM tab2 AS cor0
----
92

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - + col2 NOT BETWEEN 50 AND + col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 41 + ( + ( - 97 ) ) AS col1 FROM tab1 AS cor0
----
-138
-138
-138

query I rowsort
SELECT ALL col0 * + - col2 + + col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT 92 + 67 AS col2 FROM tab1
----
159
159
159

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 + + + col0 < col0
----
59
68
96

query I rowsort
SELECT - col2 * + 42 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT + CAST( - - SUM( + 15 ) AS SIGNED ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + CAST ( - - SUM ( + 15 ) AS INTEGER ) FROM tab0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) <= NULL
----

query II rowsort
SELECT ALL - 58 AS col1, - 42 * 17 + + ( + + 81 ) FROM tab2 AS cor0
----
-58
-633
-58
-633
-58
-633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT - CAST( NULL AS SIGNED ) - + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT - CAST ( NULL AS INTEGER ) - + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 - + - col0 + + 64 + col2 AS col1 FROM tab1
----
235
238
250

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2866
SELECT * FROM tab2 WHERE - - col1 + + + CAST( NULL AS SIGNED ) + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2866
SELECT * FROM tab2 WHERE - - col1 + + + CAST ( NULL AS INTEGER ) + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2867
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 55 - - ( - CAST( - - col2 AS SIGNED ) ) - + 26 AND 43
----

skipif mysql # not compatible
query III rowsort label-2867
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 55 - - ( - CAST ( - - col2 AS INTEGER ) ) - + 26 AND 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL - COUNT( + 80 ) - + - ( - + COUNT( * ) ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - COUNT ( + 80 ) - + - ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT + - col1 * + col2 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) >= - - col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col2 FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) * - 29 + - 39 + - - col0 IS NOT NULL
----

query I rowsort
SELECT + 88 * col2 FROM tab0 cor0
----
4136
8712
880

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NOT ( NOT 46 * - 69 IS NOT NULL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + COUNT( - 66 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2876
SELECT + COUNT ( - 66 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + - col2 * col1 IS NULL
----

query II rowsort
SELECT - col0 AS col2, 72 * + col1 AS col2 FROM tab0
----
-15
5832
-87
1512
-97
72

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab0, tab1 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + COUNT( * ) * - - COUNT( * ) + 55 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2881
SELECT + COUNT ( * ) * - - COUNT ( * ) + 55 FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL 95 FROM tab1 cor0 WHERE + col0 BETWEEN NULL AND 73
----

query I rowsort
SELECT - col2 * - 10 AS col1 FROM tab2
----
230
400
580

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE 35 / - ( col1 ) = NULL
----

query I rowsort
SELECT ALL + col2 * 61 AS col0 FROM tab1 WHERE 19 IS NOT NULL
----
3599
4148
5856

query I rowsort
SELECT DISTINCT 59 + + 95 FROM tab0
----
154

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 92 + - 27 AND ( - 11 ) * + 77 + + 80
----

query I rowsort
SELECT DISTINCT 3 * + 94 FROM tab2
----
282

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + 30 * - 45 AS col1 FROM tab0
----
-1350
-1350
-1350

query I rowsort
SELECT DISTINCT 7 - - ( col0 + col1 ) FROM tab1
----
145
72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + MIN( + col0 ) - COUNT( * ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2893
SELECT + MIN ( + col0 ) - COUNT ( * ) AS col2 FROM tab1
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 26 / + col2 ) NOT BETWEEN NULL AND ( + ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - 79 + COUNT( * ) AS col0 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - 79 + COUNT ( * ) AS col0 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 42 + + COUNT( * ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 42 + + COUNT ( * ) AS col2 FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 55 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * 91 AS col2 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT col0 + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-2900
SELECT col0 + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT 9 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2901
SELECT 9 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - 69 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2902
SELECT - 69 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2904
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col2 - + 47 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col2 - + 47 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT CAST( NULL AS SIGNED ) * 5 AS col2 FROM tab1 WHERE + col2 + col1 IN ( ( col0 ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-2905
SELECT CAST ( NULL AS INTEGER ) * 5 AS col2 FROM tab1 WHERE + col2 + col1 IN ( ( col0 ) * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2906
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) - + col1 ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2906
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) - + col1 ) IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2907
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 19 NOT BETWEEN - CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 19 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND col2
----

query I rowsort
SELECT - 99 * col2 AS col1 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 44 )
----

query I rowsort
SELECT 54 * col2 FROM tab1 cor0
----
3186
3672
5184

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - 89 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + - COUNT( * ) * + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2915
SELECT + - COUNT ( * ) * + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + - MAX( ALL col0 ) * 31 FROM tab2 AS cor0
----
-2325

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + - MAX ( ALL col0 ) * 31 FROM tab2 AS cor0
----
-2325

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT 8 + col0 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + MAX( ALL - ( col2 ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + MAX ( ALL - ( col2 ) ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT 43 * - 21 * 48 AS col0 FROM tab0
----
-43344

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 73 ) NOT BETWEEN ( 27 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL MIN( ALL + + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL MIN ( ALL + + col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT col0 * + + 15 FROM tab1
----
1275
1365
765

query I rowsort
SELECT ( - 37 ) AS col2 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT DISTINCT + col2 * + + 45 * + col1 AS col1 FROM tab0
----
171315
4455
9450

query I rowsort
SELECT ALL 99 * - ( - col0 ) FROM tab0 WHERE col1 NOT IN ( - col1 + + col2 )
----
1485
8613
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT - col2 DIV - - 82 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT - col2 / - - 82 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + SUM( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2927
SELECT + SUM ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 46 + ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + - col1 * 56 ) IN ( 12 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL + COUNT( * ) * 64 FROM tab0, tab2 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL + COUNT ( * ) * 64 FROM tab0, tab2 AS cor0
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT CAST( NULL AS SIGNED ) * - 73 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT CAST ( NULL AS INTEGER ) * - 73 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 55 * + 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3f6b6214a88ff036f83f4f6f7ac1f492

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT SUM( - col0 ) * - 17 FROM tab1 AS cor0
----
3859

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT SUM ( - col0 ) * - 17 FROM tab1 AS cor0
----
3859

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE col1 NOT BETWEEN - - col1 + col2 AND col1
----
-46
-64
-75

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( col1 )
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE + col0 IN ( - col1 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - MAX( + ( + col1 ) ) + - - MAX( ALL col0 ) AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - MAX ( + ( + col1 ) ) + - - MAX ( ALL col0 ) AS col0 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT - SUM( DISTINCT - + col0 ) AS col2, - ( + ( COUNT( * ) ) ) + 20 AS col0 FROM tab0
----
199
17

skipif mysql # not compatible
query II rowsort label-2941
SELECT - SUM ( DISTINCT - + col0 ) AS col2, - ( + ( COUNT ( * ) ) ) + 20 AS col0 FROM tab0
----
199
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT + 80 + - COUNT( * ) + + COUNT( col0 ) + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + 80 + - COUNT ( * ) + + COUNT ( col0 ) + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT + SUM( - + ( + col1 ) ) - + - 99 + + 31 * 95 FROM tab1
----
2978

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT + SUM ( - + ( + col1 ) ) - + - 99 + + 31 * 95 FROM tab1
----
2978

query I rowsort
SELECT - col2 * - ( - 74 ) AS col2 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT ALL 24 * col2 + - - col2 AS col0 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT DISTINCT col2 - - col2 * - + col0 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - 73 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 58 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL - MIN( 42 ) * - 13 FROM tab0 AS cor0
----
546

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - MIN ( 42 ) * - 13 FROM tab0 AS cor0
----
546

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + + col2 NOT IN ( - ( - - col2 ) * - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 76 ) + - col2 AS col0 FROM tab1 AS cor0 WHERE - 77 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL SUM( DISTINCT - + 94 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL SUM ( DISTINCT - + 94 ) AS col2 FROM tab0 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col0 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - 56 * col1 + col2 FROM tab1 cor0 WHERE NOT + col1 + - 55 IS NULL
----
-221
-2564
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + COUNT( * ) * 91 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2957
SELECT + COUNT ( * ) * 91 FROM tab0 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT + CAST( + - 3 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - - ( + 99 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT + CAST ( + - 3 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - - ( + 99 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 96 AS col1 FROM tab1
----
5664
6528
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 28 col0, - col2 + + col1 FROM tab1
----
28
-21
28
-54
28
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-2961
SELECT DISTINCT col1, - 61 DIV + + 66 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-2961
SELECT DISTINCT col1, - 61 / + + 66 FROM tab0
----
1
0
21
0
81
0

query II rowsort
SELECT 42 AS col1, - col2 AS col0 FROM tab2
----
42
-23
42
-40
42
-58

query II rowsort
SELECT + col0 AS col1, + col1 AS col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT 65 * + + col0 * 25 * col2 AS col2 FROM tab2
----
1719250
4160000
7068750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT + + 4 FROM tab2 WHERE NOT - col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2965
SELECT + + 4 FROM tab2 WHERE NOT - col0 <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col0 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT CAST( NULL AS SIGNED ) + - col2 col0 FROM tab0 WHERE NOT + - col1 <= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2967
SELECT CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab0 WHERE NOT + - col1 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - + col0 * - col2 * 26 * - col2 * + - col2 AS col2 FROM tab1 AS cor0
----
1173159936
453887590
743946112

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT ALL col1 DIV - 32 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL col1 / - 32 FROM tab0 cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2970
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 25 * + col0 / - col0 * - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2970
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 25 * + col0 / - col0 * - col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2971
SELECT - col0 + - 25 AS col0, col2 * + 47 * + ( - 56 ) + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-112
-26320
-122
-260567
-40
-123701

skipif mysql # not compatible
query II rowsort label-2971
SELECT - col0 + - 25 AS col0, col2 * + 47 * + ( - 56 ) + + col2 / col0 AS col0 FROM tab0 AS cor0
----
-112
-26320
-122
-260567
-40
-123701

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2972
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col1 AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2972
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT + CAST( - 12 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + CAST ( - 12 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 - col1 + - + col0 + - 19 + ( + col1 ) * - ( col2 ) col1 FROM tab0 AS cor0
----
-118
-2626
1511

query I rowsort
SELECT 26 + + - col2 FROM tab1
----
-33
-42
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL 72 + - col2 DIV col1 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN + - col2 AND + col2 DIV + col2 DIV - col1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL 72 + - col2 / col1 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN + - col2 AND + col2 / + col2 / - col1
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT 52 * col2 + + - ( 81 ) * - CAST( + col0 AS SIGNED ) - col1 / col2 AS col1 FROM tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-2977
SELECT 52 * col2 + + - ( 81 ) * - CAST ( + col0 AS INTEGER ) - col1 / col2 AS col1 FROM tab1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2 + + 75 * - 96 - + 3 + - + 64 + col2 / + col0
----

query I rowsort
SELECT DISTINCT col1 * - 54 AS col0 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT 36 * - - col0 + - col1 * + 35 FROM tab1 WHERE 70 * col2 IS NOT NULL
----
1346
1631
2885

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT - + 12 AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + ( - 23 ) FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT 14 * 93 - + col0 + + - col2 AS col2 FROM tab2 AS cor0
----
1169
1198
1233

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT ALL 75 AS col0, COUNT( * ) FROM tab1 WHERE NULL = NULL
----
75
0

skipif mysql # not compatible
query II rowsort label-2985
SELECT ALL 75 AS col0, COUNT ( * ) FROM tab1 WHERE NULL = NULL
----
75
0

query I rowsort
SELECT - 3 + + col1 FROM tab0
----
-2
18
78

query I rowsort
SELECT col2 + + col1 * ( col0 ) FROM tab0
----
1262
1837
196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * - col1 NOT BETWEEN NULL AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT - - COUNT( * ) AS col1, - COUNT( * ) - - 66 FROM tab0 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-2989
SELECT - - COUNT ( * ) AS col1, - COUNT ( * ) - - 66 FROM tab0 AS cor0
----
3
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + col0 ) * - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + col0 ) * - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 WHERE ( ( CAST( + - 43 AS SIGNED ) ) NOT IN ( ( - 59 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 WHERE ( ( CAST ( + - 43 AS INTEGER ) ) NOT IN ( ( - 59 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 27 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col1 + + 97 + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT 47 DIV + 70 * - + 24 * + 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT 47 / + 70 * - + 24 * + 85 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT ALL 56 * col0 + 44, + col2 AS col1 FROM tab0
----
4916
10
5476
99
884
47

query I rowsort
SELECT 6 + 48 * + col2 AS col2 FROM tab2 WHERE NOT col1 / + col1 + + 34 * col0 + col1 + + col2 NOT BETWEEN col1 AND ( - + col1 + col2 )
----

query II rowsort
SELECT 34 + + col0 * + col2 * - col0 + - - 6 AS col1, - col1 FROM tab1
----
-249656
-14
-426235
-5
-563068
-47

query I rowsort
SELECT col2 + 76 AS col1 FROM tab2
----
116
134
99

query I rowsort
SELECT DISTINCT + col1 * + col0 * + + ( + 17 ) FROM tab0
----
1649
20655
31059

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT + ( - SUM( + 59 ) ) AS col2 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT + ( - SUM ( + 59 ) ) AS col2 FROM tab2
----
-177

query II rowsort
SELECT - - col1, 16 AS col1 FROM tab1 cor0
----
14
16
47
16
5
16

query I rowsort
SELECT - col1 * - col0 - + - 10 FROM tab1
----
4287
435
724

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - 67 + COUNT( * ) + + SUM( - + col1 ) col1 FROM tab2
----
-259

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT - 67 + COUNT ( * ) + + SUM ( - + col1 ) col1 FROM tab2
----
-259

query I rowsort
SELECT + ( + + col1 ) + col0 - col1 + + + 9 AS col1 FROM tab2
----
55
73
84

query I rowsort
SELECT + 40 + - - 76 FROM tab2 AS cor0
----
116
116
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 93 + + col2 + + - col2 col1 FROM tab0 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT + MIN( DISTINCT - + 31 ) FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3009
SELECT + MIN ( DISTINCT - + 31 ) FROM tab2 cor0
----
-31

query I rowsort
SELECT - 2 * + - ( + col0 ) * + col2 + + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - 79 FROM tab2 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3013
SELECT ALL * FROM tab2 WHERE NOT + + col2 NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3013
SELECT ALL * FROM tab2 WHERE NOT + + col2 NOT IN ( - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) NOT IN ( - - 42 + col1, - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - SUM( + + 51 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-3015
SELECT - SUM ( + + 51 ) FROM tab2
----
-153

query I rowsort
SELECT - 8 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + ( + col0 ) col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 55 / - - col2 + + 83 * - + col1 * - + ( - 23 ) + - col2 + - col2 ) IN ( - col0 + + 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 34 AS col2 FROM tab1
----
1598
170
476

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MIN( - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3020
SELECT + MIN ( - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL + 32 AS col0 FROM tab2 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL MAX( + ( 1 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL MAX ( + ( 1 ) ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE 72 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 14 ) BETWEEN NULL AND 69
----

query I rowsort
SELECT ALL + 33 + - col1 AS col0 FROM tab1 AS cor0
----
-14
19
28

query I rowsort
SELECT DISTINCT + col0 + + - 91 AS col1 FROM tab1
----
-40
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT ( + + COUNT( ALL - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT ( + + COUNT ( ALL - col0 ) ) FROM tab2
----
3

query I rowsort
SELECT + 53 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
53
53
53

query II rowsort
SELECT + col2 + + + col2 + col0 + + col1 AS col2, col2 AS col0 FROM tab0 AS cor0
----
128
10
190
47
296
99

query I rowsort
SELECT - col0 + - + 64 * - ( col0 ) * + col2 FROM tab1 AS cor0
----
313293
320875
395941

query I rowsort
SELECT - col2 + col0 - + col2 FROM tab1 AS cor0
----
-141
-33
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + 39 + + - COUNT( * ) col0 FROM tab2 cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT + 39 + + - COUNT ( * ) col0 FROM tab2 cor0
----
36

query I rowsort
SELECT - ( - 59 ) + col2 AS col0 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT - + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL COUNT( * ) + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL COUNT ( * ) + 61 FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 - + col1 IS NULL
----

query I rowsort
SELECT - - 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3039
SELECT col0, + col2 FROM tab0 WHERE - col0 IN ( + 29 * - - col2 - + col0 + col1 + + - col2 + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query II rowsort label-3039
SELECT col0, + col2 FROM tab0 WHERE - col0 IN ( + 29 * - - col2 - + col0 + col1 + + - col2 + CAST ( NULL AS INTEGER ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT DISTINCT - 7 col1, COUNT( * ) FROM tab1
----
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3040
SELECT DISTINCT - 7 col1, COUNT ( * ) FROM tab1
----
-7
3

query I rowsort
SELECT + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE NOT col2 + + - col0 BETWEEN - CAST( NULL AS SIGNED ) + col1 AND - col1
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE NOT col2 + + - col0 BETWEEN - CAST ( NULL AS INTEGER ) + col1 AND - col1
----
-23
-40
-58

query I rowsort
SELECT + + col0 - col1 + 21 + - 30 + + + 35 * - col1 * + - col2 - - col2 FROM tab2 AS cor0
----
107818
136067
41064

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 95 ) IS NOT NULL
----

query I rowsort
SELECT col0 - + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT - col2 * + col1 + - col1 + + col2 FROM tab2 AS cor0 WHERE col2 BETWEEN + + 86 + col0 + - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3046
SELECT - col2 * + col1 + - col1 + + col2 FROM tab2 AS cor0 WHERE col2 BETWEEN + + 86 + col0 + - + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - ( 22 ) + 6 FROM tab2 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + 41 col1 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT + 83 * - + 65 FROM tab0
----
-5395
-5395
-5395

query II rowsort
SELECT DISTINCT + 86 AS col2, - 26 + 89 + 10 AS col0 FROM tab1
----
86
73

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL MIN( + 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL MIN ( + 58 ) FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL COUNT( DISTINCT + 39 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL COUNT ( DISTINCT + 39 ) FROM tab2
----
1

query I rowsort
SELECT ( + - 61 ) FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + 31 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-3056
SELECT + 31 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3057
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 * + + 7 + + + col0 + + col1 - - col1 + - col2 * + col0 * + col2 * + 4 * - 27 * + col1 * ( + col2 ) * + + CAST( - + col2 AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3057
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 * + + 7 + + + col0 + + col1 - - col1 + - col2 * + col0 * + col2 * + 4 * - 27 * + col1 * ( + col2 ) * + + CAST ( - + col2 AS INTEGER ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT SUM( DISTINCT + - 38 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT SUM ( DISTINCT + - 38 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

query II rowsort
SELECT 29 * - col2, col0 AS col1 FROM tab0
----
-1363
15
-2871
97
-290
87

query I rowsort
SELECT ALL + col2 * + 70 FROM tab2 AS cor0
----
1610
2800
4060

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 WHERE NOT 44 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT - 24 * ( COUNT( * ) ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT - 24 * ( COUNT ( * ) ) FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3063
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + CAST( NULL AS DECIMAL ), col2 )
----

skipif mysql # not compatible
query III rowsort label-3063
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + CAST ( NULL AS REAL ), col2 )
----

query I rowsort
SELECT - col0 * ( 64 ) + - + 75 AS col2 FROM tab1 AS cor0
----
-3339
-5515
-5899

query I rowsort
SELECT 22 * + - col1 AS col1 FROM tab2 AS cor0
----
-1122
-1474
-1694

query III rowsort
SELECT DISTINCT 61 AS col2, col1, col2 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + 86 AS col1 FROM tab0
----
101
173
183

query II rowsort
SELECT + 49 * - 39 + 45, col0 FROM tab2
----
-1866
46
-1866
64
-1866
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT ( COUNT( * ) ) * 63 + - COUNT( * ) * + COUNT( DISTINCT - col2 ) AS col0 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT ( COUNT ( * ) ) * 63 + - COUNT ( * ) * + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0
----
180

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 IN ( col1 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + ( - 25 ) + + 35 - + 78 * + col1 * - 84 * + - col0 * 38 * + col1 * 91 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + + COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-14
-47
-5

query I rowsort
SELECT 87 + - - col0 + + - col0 AS col0 FROM tab1
----
87
87
87

query I rowsort
SELECT + 74 AS col0 FROM tab1 WHERE NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + MIN( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + MIN ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT 49 IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - MIN( ALL - - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3079
SELECT - MIN ( ALL - - col2 ) FROM tab2
----
-23

query II rowsort
SELECT - col0, 38 * + - col1 AS col1 FROM tab1
----
-51
-532
-85
-190
-91
-1786

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT col1 DIV col1 * + ( + 91 ) AS col1 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3081
SELECT col1 / col1 * + ( + 91 ) AS col1 FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3082
SELECT MIN( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL + 59 * - col2 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3085
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + CAST( NULL AS SIGNED ) / col2
----

skipif mysql # not compatible
query III rowsort label-3085
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + CAST ( NULL AS INTEGER ) / col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT - 2 * + - col2 DIV 47 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 2 * + - col2 / 47 FROM tab0 AS cor0
----
0
2
4

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL - 37 + + + COUNT( * ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - 37 + + + COUNT ( * ) AS col0 FROM tab2
----
-34

query I rowsort
SELECT ALL - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT DISTINCT + ( - + MAX( DISTINCT + 99 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + ( - + MAX ( DISTINCT + 99 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT - CAST( NULL AS SIGNED ) / - col0 + + col1 - + 47 + - col0 / col0 + - - col1 * col0 + - 11 + col2 * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT - CAST ( NULL AS INTEGER ) / - col0 + + col1 - + 47 + - col0 / col0 + - - col1 * col0 + - 11 + col2 * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col1 * - 23 = - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 79 * - + col2 * col0 FROM tab2
----
-202240
-343650
-83582

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3094
SELECT DISTINCT col1 * - + 22 + + 21 + - col1 + + 30 * CAST( NULL AS DECIMAL ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3094
SELECT DISTINCT col1 * - + 22 + + 21 + - col1 + + 30 * CAST ( NULL AS REAL ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + MAX( DISTINCT - + 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3096
SELECT + MAX ( DISTINCT - + 56 ) FROM tab0 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab1
----
56
56
56

query II rowsort
SELECT ALL - 9 * - 96, 64 AS col0 FROM tab2
----
864
64
864
64
864
64

query I rowsort
SELECT DISTINCT + col2 + - 68 FROM tab2
----
-10
-28
-45

query II rowsort
SELECT ALL col1 + - col2, 41 * + col1 AS col1 FROM tab1
----
-21
1927
-54
205
-82
574

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 49 * - - COUNT( * ) + - - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3101
SELECT 49 * - - COUNT ( * ) + - - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
150

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col0 + + - col2 * - col0 * - col0 + col1 - col2 FROM tab1 AS cor0
----
-248383
-425949
-559842

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT ALL - - COUNT( * ) AS col0, + SUM( DISTINCT - - col0 ) + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
3
190

skipif mysql # not compatible
query II rowsort label-3103
SELECT ALL - - COUNT ( * ) AS col0, + SUM ( DISTINCT - - col0 ) + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
3
190

query I rowsort
SELECT DISTINCT - ( 70 ) AS col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT + + col2 * + col1 * 3 AS col1 FROM tab1 AS cor0
----
4032
885
9588

query II rowsort
SELECT 49 AS col1, col0 FROM tab1 AS cor0
----
49
51
49
85
49
91

query II rowsort
SELECT col0 AS col2, + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col2, col2 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT 96 BETWEEN + col0 AND - + 36 * + 46 + - col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3109
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT 96 BETWEEN + col0 AND - + 36 * + 46 + - col1
----
-3

query I rowsort
SELECT + col2 * - - col2 * + - col2 AS col1 FROM tab1
----
-205379
-314432
-884736

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * col2 - + col2 * + 39 * col2 + + + col2 * + col0 BETWEEN NULL AND + - col2 * col0
----

query I rowsort
SELECT + 24 * + - 26 * col1 FROM tab2
----
-31824
-41808
-48048

query I rowsort
SELECT ( - + col1 ) * - 13 FROM tab2 WHERE NOT - + 27 * + 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT DISTINCT - 34 * + 53 * - 0 DIV + COUNT( * ) + + 79 * - COUNT( * ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 34 * + 53 * - 0 / + COUNT ( * ) + + 79 * - COUNT ( * ) FROM tab2 AS cor0
----
-237

query I rowsort
SELECT + 92 AS col0 FROM tab2 cor0
----
92
92
92

query II rowsort
SELECT + 95 * col2, - 27 AS col0 FROM tab1 AS cor0
----
5605
-27
6460
-27
9120
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 46 ), + 80 col2 FROM tab2 AS cor0 WHERE NOT 44 * col1 + + col2 + + + 67 IS NULL
----
-46
80
-46
80
-46
80

query I rowsort
SELECT DISTINCT + 88 * - col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT + - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT - - COUNT( * ) * + + 84 AS col2 FROM tab1 AS cor0 WHERE col1 + - + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - - COUNT ( * ) * + + 84 AS col2 FROM tab1 AS cor0 WHERE col1 + - + col2 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - col0 + + col2 < NULL ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT - COUNT( * ) DIV - 71 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - COUNT ( * ) / - 71 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT MAX( ALL 77 ) / - MAX( ALL 36 ) col2 FROM tab2 AS cor0 WHERE NULL <> + 93
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT MAX ( ALL 77 ) / - MAX ( ALL 36 ) col2 FROM tab2 AS cor0 WHERE NULL <> + 93
----
NULL

query I rowsort
SELECT DISTINCT + ( + 21 ) AS col0 FROM tab2 AS cor0
----
21

query II rowsort
SELECT ALL col1 + + 61 AS col2, + 29 FROM tab2
----
112
29
128
29
138
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + ( - + 28 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3128
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + ( - + 28 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3129
SELECT ALL col2 + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL col2 + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 86 * 95 AS col0 FROM tab1
----
482030
555560
784320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - ( + col2 ) col0 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT MIN( DISTINCT - + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-81

query II rowsort
SELECT + col2, col0 + - col1 - - col2 AS col1 FROM tab1
----
59
139
68
112
96
133

query I rowsort
SELECT DISTINCT + + col0 + - 56 FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 WHERE col1 * + col2 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT 73 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 >= + col1
----
87
21
10
97
1
99

query I rowsort
SELECT - - 21 * - 0 + - 59 + + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 56 * col1 IS NULL
----
-8
26
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3141
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > - - col2
----

skipif mysql # not compatible
query III rowsort label-3141
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > - - col2
----

query I rowsort
SELECT ALL - + 2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL MIN( + + ( 95 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 = + col0
----
95

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL MIN ( + + ( 95 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 = + col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3144
SELECT 63 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-3144
SELECT 63 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT + col0 * + 88 AS col1 FROM tab0
----
1320
7656
8536

query I rowsort
SELECT 48 * - col0 * 13 FROM tab1
----
-31824
-53040
-56784

query I rowsort
SELECT - ( + col2 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM tab2 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT + 7 FROM tab1 WHERE NOT - - col0 IS NULL
----
7
7
7

query I rowsort
SELECT ALL - - 78 AS col2 FROM tab0 WHERE NULL IS NULL
----
78
78
78

query I rowsort
SELECT 96 * - - col2 AS col1 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - + col0 BETWEEN ( ( + col0 ) ) AND NULL
----

query I rowsort
SELECT ALL 24 * + - ( - - 81 ) + + ( - col1 ) AS col1 FROM tab1
----
-1949
-1958
-1991

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL OR NOT col0 = + 90 * col0 * - 76 / + 84 * - + ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL OR NOT col0 = + 90 * col0 * - 76 / + 84 * - + ( col1 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + - + 2 col0 FROM tab0 cor0
----
-23
-3
-83

query I rowsort
SELECT - 34 * ( + col2 ) + - col0 - 93 AS col2 FROM tab0 cor0
----
-1706
-3556
-520

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3160
SELECT + MAX( - - col2 ) DIV + 78 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT + MAX ( - - col2 ) / + 78 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col0 * col0 * 70 AS col1 FROM tab2 AS cor0
----
148120
286720
393750

query I rowsort
SELECT - 99 - - - col0 + + col1 FROM tab2 AS cor0
----
-107
-86
-94

query I rowsort
SELECT ALL + col2 + - - col1 AS col2 FROM tab0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= + col2
----

query I rowsort
SELECT col0 + + - 93 AS col1 FROM tab1
----
-2
-42
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT 40 + - ( - + MIN( 26 ) ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT 40 + - ( - + MIN ( 26 ) ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT CAST( NULL AS SIGNED ) + - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * 12 + - col2 AS col2, - 51 AS col2 FROM tab2
----
589
-51
746
-51
884
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT - col0 * 30 DIV col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - col0 * 30 / col0 FROM tab1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col1 FROM tab2
----
48
48
48

query I rowsort
SELECT ALL col0 * + - 78 * col1 AS col2 FROM tab0
----
-142506
-7566
-94770

query II rowsort
SELECT - 48 AS col2, - col0 AS col1 FROM tab1
----
-48
-51
-48
-85
-48
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT DISTINCT + 32 DIV - - col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + 32 / - - col1 AS col0 FROM tab1
----
0
2
6

query I rowsort
SELECT ALL - 35 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3176
SELECT ALL - col0 AS col2, + CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3176
SELECT ALL - col0 AS col2, + CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - col0 * + col2 + 96 + + col0 <= col1 + + - col1 * col2 + + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 33
----

query II rowsort
SELECT + + ( 28 ) AS col2, + col0 AS col0 FROM tab0 AS cor0
----
28
15
28
87
28
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3180
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND - - col2 + col2 + + + CAST( NULL AS SIGNED ) * col0 * - - ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-3180
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND - - col2 + col2 + + + CAST ( NULL AS INTEGER ) * col0 * - - ( - col1 )
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, col0 * - + col2 FROM tab1 WHERE NOT - 79 <> + col0
----

query I rowsort
SELECT ALL - col1 + - 30 FROM tab0 WHERE NOT NULL IN ( col2, col1 )
----

query II rowsort
SELECT 17 + - 7 AS col0, + ( + 8 ) * + col2 FROM tab1
----
10
472
10
544
10
768

query I rowsort
SELECT - col1 + - - 65 * + col0 AS col2 FROM tab0
----
5634
6304
894

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( * ) * + ( + - COUNT( * ) ) + - 53 AS col2 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( * ) * + ( + - COUNT ( * ) ) + - 53 AS col2 FROM tab1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT + 17 DIV + COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 17 / + COUNT ( * ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT MIN( ALL + ( 94 ) ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3187
SELECT MIN ( ALL + ( 94 ) ) AS col2 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT ALL MAX( DISTINCT + + 18 ) AS col0, + 45 + - 10 AS col0 FROM tab0 AS cor0
----
18
35

skipif mysql # not compatible
query II rowsort label-3188
SELECT ALL MAX ( DISTINCT + + 18 ) AS col0, + 45 + - 10 AS col0 FROM tab0 AS cor0
----
18
35

query I rowsort
SELECT 67 FROM tab0 AS cor0 WHERE NOT NULL < + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col0 - + col2
----

query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT 26 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL COUNT( - 66 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL COUNT ( - 66 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - col0 * + 16 + - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT + + COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + + COUNT ( + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 5 + + 17 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL 22 + - col0 - + col0 * + col2 FROM tab0
----
-698
-935
-9678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT ALL CAST( 9 AS SIGNED ) + + + col2 + - col2 * - col1 col0 FROM tab0
----
207
229
3863

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3199
SELECT ALL CAST ( 9 AS INTEGER ) + + + col2 + - col2 * - col1 col0 FROM tab0
----
207
229
3863

query I rowsort
SELECT - + 86 * - + col2 + - col0 FROM tab2 WHERE 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT ALL + col0 DIV + + col1 + + 3 AS col2 FROM tab0
----
100
3
7

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + col0 / + + col1 + + 3 AS col2 FROM tab0
----
100
3
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + col1 col1 FROM tab2
----
141
142
97

query I rowsort
SELECT col2 - ( - col2 ) + - + col0 * col2 AS col1 FROM tab0
----
-611
-850
-9405

onlyif mysql # DIV for integer division: 
query II rowsort label-3204
SELECT 82 DIV col2 * - - col2 - - col0 AS col2, + col2 - col0 col0 FROM tab0
----
167
-77
62
32
97
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3204
SELECT 82 / col2 * - - col2 - - col0 AS col2, + col2 - col0 col0 FROM tab0
----
167
-77
62
32
97
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3205
SELECT DISTINCT col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT col0 - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + ( - 20 ) ) AS col0 FROM tab2 AS cor0
----
-20

query II rowsort
SELECT - col2 * + - col1 AS col2, - 79 AS col1 FROM tab2 AS cor0
----
1173
-79
3080
-79
3886
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT 72 DIV - - 72 + - + MAX( DISTINCT - 76 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
77

skipif mysql # not compatible
query I rowsort label-3208
SELECT 72 / - - 72 + - + MAX ( DISTINCT - 76 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
77

query I rowsort
SELECT ALL col1 * ( - col0 ) AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - ( 25 ) col1 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL 87 * COUNT( * ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL 87 * COUNT ( * ) FROM tab2 AS cor0
----
261

query I rowsort
SELECT - 22 AS col2 FROM tab1 cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - MIN( DISTINCT col1 ) * - COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3215
SELECT - MIN ( DISTINCT col1 ) * - COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT DISTINCT CAST( - - MIN( ALL col2 ) AS SIGNED ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT CAST ( - - MIN ( ALL col2 ) AS INTEGER ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL - 43 * COUNT( DISTINCT - col2 ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - 43 * COUNT ( DISTINCT - col2 ) FROM tab0
----
-129

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL BETWEEN col1 * - + col2 AND - + col1 )
----

query I rowsort
SELECT DISTINCT 28 + 92 AS col2 FROM tab0 AS cor0
----
120

query I rowsort
SELECT - + col1 + + - 69 FROM tab2 AS cor0
----
-120
-136
-146

query II rowsort
SELECT ( + col2 ) + + - col2, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT ALL + 58 AS col2 FROM tab1 WHERE NOT NULL < 51 - + - col2
----

query I rowsort
SELECT DISTINCT + 43 - + col0 FROM tab0 cor0
----
-44
-54
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT ALL - col0 * col0 DIV + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121
-122
-27

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - col0 * col0 / + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121
-122
-27

query I rowsort
SELECT + + col1 - - 42 AS col1 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT - COUNT( * ) - + 47, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-3226
SELECT - COUNT ( * ) - + 47, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-50
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3227
SELECT 97 - col2, - CAST( NULL AS SIGNED ) * + - 35 * + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
39
NULL
57
NULL
74
NULL

skipif mysql # not compatible
query II rowsort label-3227
SELECT 97 - col2, - CAST ( NULL AS INTEGER ) * + - 35 * + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
39
NULL
57
NULL
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - - SUM( ALL + - 15 ) + - MAX( col1 ) + - + 32 FROM tab0 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-3228
SELECT - - SUM ( ALL + - 15 ) + - MAX ( col1 ) + - + 32 FROM tab0 AS cor0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT MIN( col0 ) + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3229
SELECT MIN ( col0 ) + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
18

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col0 + - 45 FROM tab1
----
-4413
-555
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT MAX( ALL + + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3231
SELECT MAX ( ALL + + 6 ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE NOT 21 + + 64 + - col0 = - - 63 * + 3 + - ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 95 * - col0 * - 61 AS col1 FROM tab0 AS cor0
----
-504165
-562115
-86925

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 4 * - - col1 FROM tab1 AS cor0
----
188
20
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + CAST( + 46 AS SIGNED ) col0 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3236
SELECT ALL + CAST ( + 46 AS INTEGER ) col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT + col2 + - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

query I rowsort
SELECT DISTINCT - col2 * + col2 * + - col0 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT ALL + + col1 * - col0 * + 36 AS col0 FROM tab1 AS cor0
----
-15300
-153972
-25704

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL + 91 * - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + 91 * - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT + 21 * - 32 + + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-672
-672
-672

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL + COUNT( * ) + - + CAST( + + MAX( 98 ) AS SIGNED ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + COUNT ( * ) + - + CAST ( + + MAX ( 98 ) AS INTEGER ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - col0 + + + 22 * + 42 AS col0 FROM tab1 cor0
----
-1677
-6301
-7357

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3246
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / 92 NOT BETWEEN NULL AND - CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / 92 NOT BETWEEN NULL AND - CAST ( + + col2 AS INTEGER )
----

query II rowsort
SELECT ALL col0 AS col2, ( col2 ) * - col0 + + 51 AS col2 FROM tab0
----
15
-654
87
-819
97
-9552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3248
SELECT - CAST( - - col0 AS SIGNED ) + - - 31 DIV + CAST( col0 AS SIGNED ) - - 11 FROM tab1
----
-40
-74
-80

skipif mysql # not compatible
query I rowsort label-3248
SELECT - CAST ( - - col0 AS INTEGER ) + - - 31 / + CAST ( col0 AS INTEGER ) - - 11 FROM tab1
----
-40
-74
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3249
SELECT - 52 DIV + + 61 + COUNT( * ) - - + COUNT( * ) + + 81 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 52 / + + 61 + COUNT ( * ) - - + COUNT ( * ) + + 81 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - COUNT( * ) * + 23 AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - COUNT ( * ) * + 23 AS col1 FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT DISTINCT - col0 DIV - + 57 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - col0 / - + 57 AS col2 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + MIN( + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + MIN ( + - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3253
SELECT + ( - col2 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT + ( - col2 ) * CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( - - 82 ) FROM tab1 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 88 + + 91 + - ( + col0 ) col0 FROM tab1
----
-20
-23
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT COUNT( * ) + - ( - 32 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3256
SELECT COUNT ( * ) + - ( - 32 ) AS col1 FROM tab2
----
35

query I rowsort
SELECT + col1 * - 17 AS col1 FROM tab2 AS cor0
----
-1139
-1309
-867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3258
SELECT - col2 * + 28, - CAST( + + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1316
-81
-2772
-1
-280
-21

skipif mysql # not compatible
query II rowsort label-3258
SELECT - col2 * + 28, - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1316
-81
-2772
-1
-280
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 * - col2 col1 FROM tab0 cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3260
SELECT ALL - col2 AS col2, + col2 * 5 DIV - - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
5
-47
5
-99
5

skipif mysql # not compatible
query II rowsort label-3260
SELECT ALL - col2 AS col2, + col2 * 5 / - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
5
-47
5
-99
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT 8 * + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3261
SELECT 8 * + COUNT ( * ) FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3262
SELECT CAST( + - col2 AS SIGNED ), + col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-3262
SELECT CAST ( + - col2 AS INTEGER ), + col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL <> - 25 - - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT - - MIN( + - 24 ) AS col2 FROM tab2 WHERE - col1 >= - - col2 * - ( ( col0 ) ) + - 32 + col0
----
-24

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - - MIN ( + - 24 ) AS col2 FROM tab2 WHERE - col1 >= - - col2 * - ( ( col0 ) ) + - 32 + col0
----
-24

query I rowsort
SELECT ALL + 24 AS col2 FROM tab2 WHERE NULL <= - col2
----

query II rowsort
SELECT ALL col1 AS col2, - col0 * + col2 AS col0 FROM tab0
----
1
-9603
21
-870
81
-705

query I rowsort
SELECT ALL + ( col0 ) * + ( col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT + + col2, 72 FROM tab2 AS cor0
----
23
72
40
72
58
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, col1 + - - 46 AS col0 FROM tab1 AS cor0
----
59
51
68
93
96
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + + MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3271
SELECT + + MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - - SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3272
SELECT - - SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - + ( - 97 ) * + + COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3274
SELECT - + ( - 97 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
291

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / - col2 * - 40 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT DISTINCT - col2 DIV + + col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT - col2 / + + col2 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT col2 - + col0 AS col1, 18 * - 32 FROM tab2
----
-17
-576
-23
-576
-24
-576

query I rowsort
SELECT - col1 + ( + 4 ) + + col0 FROM tab0
----
-62
100
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT DISTINCT - 29 DIV + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - 29 / + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT SUM( 51 ), ( - - ( - ( + + SUM( - 97 ) ) ) ) AS col2 FROM tab1 AS cor0
----
153
291

skipif mysql # not compatible
query II rowsort label-3281
SELECT SUM ( 51 ), ( - - ( - ( + + SUM ( - 97 ) ) ) ) AS col2 FROM tab1 AS cor0
----
153
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - - COUNT( * ) + - + COUNT( * ) + + 58 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-3282
SELECT - - COUNT ( * ) + - + COUNT ( * ) + + 58 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

query I rowsort
SELECT DISTINCT 8 + 18 FROM tab1 WHERE - col0 + col0 + - 47 IS NOT NULL
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - - COUNT( * ) - + 65 AS col2 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3284
SELECT - - COUNT ( * ) - + 65 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT + 10 * + - ( col1 ) * + - col2 FROM tab1 AS cor0
----
13440
2950
31960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col2 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT ( + col1 ) * - 56 * - col2 + - col1 * - - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
178409
222105
68289

query I rowsort
SELECT col1 * + col1 * - + col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 55 * - - col2 + - 54 IN ( - ( + 59 ) + col2, col2, - 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - MIN( DISTINCT - + 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3290
SELECT - MIN ( DISTINCT - + 89 ) FROM tab2 AS cor0
----
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL + MAX( ALL CAST( - ( + col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + MAX ( ALL CAST ( - ( + col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3293
SELECT DISTINCT - - CAST( + - col1 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - - CAST ( + - col1 AS REAL ) AS col1 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 WHERE NOT - 95 * col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 WHERE NOT - 95 * col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT - col1 DIV - + 3 AS col2 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-3295
SELECT - col1 / - + 3 AS col2 FROM tab1
----
1
15
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 9 col1 FROM tab2
----
46
9
64
9
75
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3297
SELECT DISTINCT COUNT( * ) AS col0, AVG ( - 3 ) + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3297
SELECT DISTINCT COUNT ( * ) AS col0, AVG ( - 3 ) + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 74 col0 FROM tab1 cor0
----
-1036
-3478
-370

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 19
----

query I rowsort
SELECT - + col1 + - col0 * - - col1 FROM tab2 WHERE NOT ( + 45 ) + - + col0 NOT BETWEEN col1 AND + 95 + + 3
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 49 / col2 IS NOT NULL
----

query II rowsort
SELECT + + ( + + 46 ) AS col0, - 41 FROM tab1 cor0
----
46
-41
46
-41
46
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col1 col0, - col1 FROM tab0 AS cor0
----
-66
-81
66
-21
96
-1

query II rowsort
SELECT + - col0 + + - col0 AS col0, col1 * - + col0 - + 75 FROM tab2 AS cor0
----
-128
-5003
-150
-5100
-92
-2421

query I rowsort
SELECT DISTINCT + + col2 + col0 * - col0 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT + col1 + - 55 + + col0 FROM tab1 AS cor0
----
10
35
83

query II rowsort
SELECT DISTINCT col0, + col2 + + col0 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT COUNT( * ) * 99 * + + 47 AS col0 FROM tab2
----
13959

skipif mysql # not compatible
query I rowsort label-3308
SELECT COUNT ( * ) * 99 * + + 47 AS col0 FROM tab2
----
13959

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT 98 * col0 FROM tab2
----
4508
6272
7350

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab2 WHERE NOT NULL BETWEEN 0 AND col0 + + col1
----

query I rowsort
SELECT ALL col1 - + - 81 FROM tab0
----
102
162
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 3
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT DISTINCT + 21, - MAX( col2 ) AS col2 FROM tab2 AS cor0
----
21
-58

skipif mysql # not compatible
query II rowsort label-3314
SELECT DISTINCT + 21, - MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
21
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL + MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + MAX ( + col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT - - 49 + + col0 AS col1 FROM tab2 cor0
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT - 55 * SUM( DISTINCT + 37 * col1 ) AS col0 FROM tab1
----
-134310

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - 55 * SUM ( DISTINCT + 37 * col1 ) AS col0 FROM tab1
----
-134310

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL 32 + + SUM( DISTINCT - 63 ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 32 + + SUM ( DISTINCT - 63 ) AS col1 FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3319
SELECT DISTINCT + col0 + col2 DIV + col1 AS col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + col0 + col2 / + col1 AS col1 FROM tab1
----
57
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE col1 * col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE col1 * col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT 22 * col0 AS col2 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + 11 * + COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3323
SELECT + 11 * + COUNT ( * ) FROM tab1
----
33

query I rowsort
SELECT ALL 88 - col0 * col0 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT 76 + + 81 DIV col1 AS col2 FROM tab1 WHERE ( - col0 + - col1 ) IS NOT NULL
----
77
81
92

skipif mysql # not compatible
query I rowsort label-3325
SELECT 76 + + 81 / col1 AS col2 FROM tab1 WHERE ( - col0 + - col1 ) IS NOT NULL
----
77
81
92

query I rowsort
SELECT - ( - ( 42 ) ) FROM tab1
----
42
42
42

query I rowsort
SELECT - col0 + 23 FROM tab2
----
-23
-41
-52

query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT - COUNT( col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - COUNT ( col0 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL SUM( + 83 ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL SUM ( + 83 ) FROM tab2
----
249

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col1 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT + col0 * col2 + CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT + col0 * col2 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < 39
----

query I rowsort
SELECT ALL - 31 + 95 * 33 AS col0 FROM tab1
----
3104
3104
3104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3336
SELECT DISTINCT * FROM tab1 WHERE - CAST( - col1 AS SIGNED ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3336
SELECT DISTINCT * FROM tab1 WHERE - CAST ( - col1 AS INTEGER ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT - MIN( ALL col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT - MIN ( ALL col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ( + 63 ) AS col1 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 + - col0 * 51 NOT BETWEEN NULL AND - col2 + + 80
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * 58 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 12 + col2 FROM tab2
----
35
52
70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 / 90 + - col1 * - 38 ) NOT BETWEEN col0 + col1 AND NULL
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col1 FROM tab2 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT - COUNT( * ) + + 32 * - 89 FROM tab1 AS cor0
----
-2851

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - COUNT ( * ) + + 32 * - 89 FROM tab1 AS cor0
----
-2851

query I rowsort
SELECT 52 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT 56 * 1 AS col0 FROM tab1 AS cor0
----
56

query I rowsort
SELECT 43 + 23 AS col0 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL - ( + COUNT( * ) ) + + COUNT( * ) * + ( + 97 ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - ( + COUNT ( * ) ) + + COUNT ( * ) * + ( + 97 ) FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT + MIN( DISTINCT col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + MIN ( DISTINCT col2 ) FROM tab2
----
23

query I rowsort
SELECT col0 + col1 * 82 AS col0 FROM tab0
----
179
1809
6657

query III rowsort
SELECT * FROM tab2 WHERE NOT - 57 / col2 + col2 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE + 78 IN ( 15 )
----

skipif mysql # not compatible
query I rowsort label-3352
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE + 78 IN ( 15 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE + 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE col2 / col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3356
SELECT CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3357
SELECT - 93 DIV - COUNT( + col0 + col1 ) AS col0 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 93 / - COUNT ( + col0 + col1 ) AS col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT + 91 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT COUNT( ALL 16 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3359
SELECT COUNT ( ALL 16 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col0 + - 75 * col1 col1 FROM tab2 AS cor0
----
-1679
-1709
600

query I rowsort
SELECT col2 - - + col0 * col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 WHERE NULL >= + ( col2 ) / 66
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3363
SELECT col2 + + - 42 DIV CAST( + 49 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3363
SELECT col2 + + - 42 / CAST ( + 49 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 65 - + + col1 FROM tab2
----
-116
-132
-142

query I rowsort
SELECT ALL - col2 - - + 98 AS col0 FROM tab2
----
40
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - MAX( - - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - MAX ( - - col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - col1 - 55 AS col1 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NULL
----
-106
-122
-132

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + ( + col0 ) NOT BETWEEN NULL AND ( - col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL - MIN( DISTINCT + 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - MIN ( DISTINCT + 57 ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT - - CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT ALL + + 57 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + + 57 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 * + - 45 + 12 FROM tab2 AS cor0
----
-2688

query II rowsort
SELECT ALL col0 AS col1, - 91 FROM tab2
----
46
-91
64
-91
75
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 91 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - ( - 98 ) AS col2 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - + 70 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + COUNT( * ) * + + 79 col0 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3377
SELECT + COUNT ( * ) * + + 79 col0 FROM tab0 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3378
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL OR NULL NOT IN ( - col1 + + CAST( NULL AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3378
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL OR NULL NOT IN ( - col1 + + CAST ( NULL AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + ( - + ( col2 ) ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - + SUM( - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3380
SELECT - + SUM ( - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT ALL + ( - 81 ) - + col1 AS col0 FROM tab0 WHERE NOT ( col1 ) IN ( - 24 * - 90 )
----
-102
-162
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + - col0 + - 76 * + 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) + - COUNT( * ) + - 9 + + 11 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - COUNT ( * ) + - 9 + + 11 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT ALL 16 DIV - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL 16 / - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 89 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / + + 31 + - - col0 / - col0 NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 60 + + 7 BETWEEN ( + + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 * - col1 + + col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 * - col1 + + col2 col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + 59 AS col2 FROM tab1 AS cor0
----
-2773
-295
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT 66 * + COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT 66 * + COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT ALL 84 * - - 84 FROM tab1
----
7056
7056
7056

query I rowsort
SELECT - col0 + - col1 * col2 FROM tab0 cor0
----
-196
-297
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 24 + + ( - - MAX( + col2 ) ) AS col2 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-3393
SELECT 24 + + ( - - MAX ( + col2 ) ) AS col2 FROM tab2 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - ( - + COUNT( * ) ) * + + SUM( ALL - + col1 ) + - 63 FROM tab0 AS cor0
----
-372

skipif mysql # not compatible
query I rowsort label-3394
SELECT - ( - + COUNT ( * ) ) * + + SUM ( ALL - + col1 ) + - 63 FROM tab0 AS cor0
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL + + CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + col1 / - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 + + 20 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL col2 / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - 58 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL - COUNT( * ) + + + 76 AS col2 FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - COUNT ( * ) + + + 76 AS col2 FROM tab1 cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3402
SELECT ALL + - col2 DIV CAST( col1 AS SIGNED ) + - col0 AS col1 FROM tab0 cor0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + - col2 / CAST ( col1 AS INTEGER ) + - col0 AS col1 FROM tab0 cor0
----
-15
-196
-87

query I rowsort
SELECT ALL + col1 + ( - 13 ) * + + 81 AS col1 FROM tab2 AS cor0
----
-1002
-976
-986

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE ( ( - col0 ) * + + ( col1 ) * col2 ) BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 30 col0 FROM tab2
----
21
37
47

query I rowsort
SELECT DISTINCT 56 + 21 AS col2 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT 83 - - COUNT( * ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT 83 - - COUNT ( * ) AS col0 FROM tab0
----
86

query II rowsort
SELECT + col1, + col1 * - - 33 FROM tab0
----
1
33
21
693
81
2673

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3409
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( 13 + - - CAST( NULL AS SIGNED ) ) < col2 )
----

skipif mysql # not compatible
query III rowsort label-3409
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( 13 + - - CAST ( NULL AS INTEGER ) ) < col2 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( + col0 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col2 BETWEEN + col2 AND col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - col2 + - + col2 + + col1
----

query I rowsort
SELECT ALL - - col0 * + 15 + - col1 FROM tab1 AS cor0
----
1270
1318
751

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - 83, + 91 AS col0 FROM tab0 AS cor0
----
-83
91
-83
91
-83
91

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - col0 IN ( + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT col2 DIV col1 * - - col1 + - 66 + - - col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1149
130
1761

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT col2 / col1 * - - col1 + - 66 + - - col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1149
130
1761

query I rowsort
SELECT DISTINCT 95 - - 10 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT 20 * - 66 FROM tab0
----
-1320
-1320
-1320

query I rowsort
SELECT ALL + col1 * - 7 FROM tab2
----
-357
-469
-539

query I rowsort
SELECT DISTINCT - col0 * - 52 AS col1 FROM tab2
----
2392
3328
3900

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 48
----

query I rowsort
SELECT ALL + + 1 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + 35 * + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + 35 * + COUNT ( * ) FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT DISTINCT - col0 + + + 5 + - col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - col0 + + + 5 + - col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - - col1 * + - 44 + col2 AS col0 FROM tab2
----
-2175
-2815
-3284

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT col2 DIV ( + ( - 45 ) ) * - + col0 * - - 14 FROM tab2 AS cor0
----
0
0
1050

skipif mysql # not compatible
query I rowsort label-3427
SELECT col2 / ( + ( - 45 ) ) * - + col0 * - - 14 FROM tab2 AS cor0
----
0
0
1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT ALL COUNT( * ) DIV - - 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL COUNT ( * ) / - - 1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT - - ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3429
SELECT - - ( COUNT ( * ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT + col2 - - col1 AS col1, - 48 FROM tab2 AS cor0
----
117
-48
125
-48
74
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT + MIN( - col1 ) col0 FROM tab0 AS cor0 WHERE - CAST( - col1 AS SIGNED ) * - col1 * + col1 IS NOT NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT + MIN ( - col1 ) col0 FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) * - col1 * + col1 IS NOT NULL
----
-81

query I rowsort
SELECT DISTINCT 98 * + 49 + + - 25 AS col0 FROM tab1 AS cor0
----
4777

query I rowsort
SELECT col1 AS col2 FROM tab2 cor0 WHERE col2 >= + 29
----
67
77

query I rowsort
SELECT - col1 + - + 22 FROM tab0 AS cor0
----
-103
-23
-43

query I rowsort
SELECT DISTINCT 85 + - col1 * 85 * + - col1 + + col2 + - 7 + - col1 FROM tab1 WHERE col2 / - + 70 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) - + + 59 AS col1 FROM tab0
----
-12
-49
40

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col1 NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL - col1 + col0 DIV - col2 AS col0 FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - col1 + col0 / - col2 AS col0 FROM tab1
----
-14
-48
-6

query II rowsort
SELECT DISTINCT - col1 * + + col1 - + + col2 AS col0, + ( col0 ) * ( + ( col1 ) ) - ( + + 67 ) FROM tab0
----
-100
30
-451
1760
-6608
1148

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT col0 DIV + 64 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT col0 / + 64 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3442
SELECT - col2 FROM tab0 WHERE NOT - - 66 NOT BETWEEN - ( - CAST( col2 AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3442
SELECT - col2 FROM tab0 WHERE NOT - - 66 NOT BETWEEN - ( - CAST ( col2 AS REAL ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL ( - - ( - + MIN( + + ( col2 ) ) ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL ( - - ( - + MIN ( + + ( col2 ) ) ) ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3445
SELECT DISTINCT + col1 AS col0, col0 * - col2 + 63 + - + col0 DIV + ( - + col0 ) FROM tab0 AS cor0
----
1
-9539
21
-806
81
-641

skipif mysql # not compatible
query II rowsort label-3445
SELECT DISTINCT + col1 AS col0, col0 * - col2 + 63 + - + col0 / + ( - + col0 ) FROM tab0 AS cor0
----
1
-9539
21
-806
81
-641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) / + - col2 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3446
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) / + - col2 col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL ( col0 ) AS col1, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col1, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= - 82
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 + - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT ALL - + 29 AS col0, + SUM( - col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29
-202

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL - + 29 AS col0, + SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29
-202

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 81, col1 )
----

query I rowsort
SELECT DISTINCT - col2 * 74 * - - 68 FROM tab1
----
-296888
-342176
-483072

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT MAX( + col2 ) * - 50 + - 82 * COUNT( * ) AS col0 FROM tab1
----
-5046

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT MAX ( + col2 ) * - 50 + - 82 * COUNT ( * ) AS col0 FROM tab1
----
-5046

query I rowsort
SELECT ALL - 2 * - col1 * + 59 AS col2 FROM tab0
----
118
2478
9558

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + col0 BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT + COUNT( * ) DIV - + 16 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT + COUNT ( * ) / - + 16 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 + col2 * + + col2 BETWEEN col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - 70 + + - COUNT( * ) * 87 FROM tab1
----
-331

skipif mysql # not compatible
query I rowsort label-3459
SELECT - 70 + + - COUNT ( * ) * 87 FROM tab1
----
-331

query I rowsort
SELECT DISTINCT - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - COUNT( * ) + - 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= ( NULL )
----
-32

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - COUNT ( * ) + - 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= ( NULL )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT + - ( COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE NOT + 97 * - col1 * - 9 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + - ( COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE NOT + 97 * - col1 * - 9 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL - + SUM( + 70 ) AS col0 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - + SUM ( + 70 ) AS col0 FROM tab1 AS cor0
----
-210

onlyif mysql # DIV for integer division: 
query II rowsort label-3465
SELECT - + 69 DIV - col1 - + col1 * col0 col2, col2 * + 6 FROM tab1 cor0
----
-412
354
-4276
408
-710
576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3465
SELECT - + 69 / - col1 - + col1 * col0 col2, col2 * + 6 FROM tab1 cor0
----
-412
354
-4276
408
-710
576

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - + col0 * + + col2 + + + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 52 * + col2 * + col2 BETWEEN NULL AND 60
----

query I rowsort
SELECT ALL - col2 + + 18 FROM tab2 AS cor0
----
-22
-40
-5

query I rowsort
SELECT 73 - - col1 + col2 AS col2 FROM tab1
----
137
183
188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 IN ( - - 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL - CAST( - - col0 AS SIGNED ) * + col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - CAST ( - - col0 AS INTEGER ) * + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 50 * + + col2 / 88 ) BETWEEN NULL AND col2 + ( col0 )
----

query I rowsort
SELECT DISTINCT - + 88 AS col2 FROM tab2 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + + MIN( DISTINCT 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3476
SELECT + + MIN ( DISTINCT 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT ( + 39 ) AS col1 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - 21 + COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 21 + COUNT ( * ) FROM tab1
----
-18

query I rowsort
SELECT - col0 * - - col2 + col2 AS col2 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT CAST( NULL AS SIGNED ) + - col0 * col2 * 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT CAST ( NULL AS INTEGER ) + - col0 * col2 * 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT - 84 DIV - col2 + + ( + + col0 ) AS col1 FROM tab0 cor0
----
16
95
97

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 84 / - col2 + + ( + + col0 ) AS col1 FROM tab0 cor0
----
16
95
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 2
----

query I rowsort
SELECT DISTINCT col2 * - + col2 * col0 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ALL + col0 * col0 * - col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3485
SELECT - CAST( 5 AS SIGNED ) * - - COUNT( * ) + + COUNT( * ) col1 FROM tab1
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3485
SELECT - CAST ( 5 AS INTEGER ) * - - COUNT ( * ) + + COUNT ( * ) col1 FROM tab1
----
-12

query I rowsort
SELECT ( - 38 ) AS col1 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3487
SELECT - COUNT( * ) * + + COUNT( * ), + CAST( 92 AS SIGNED ) AS col1 FROM tab0
----
-9
92

skipif mysql # not compatible
query II rowsort label-3487
SELECT - COUNT ( * ) * + + COUNT ( * ), + CAST ( 92 AS INTEGER ) AS col1 FROM tab0
----
-9
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + COUNT( * ) * + 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3488
SELECT + COUNT ( * ) * + 54 FROM tab1
----
162

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3490
SELECT + - ( + - 18 ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-3490
SELECT + - ( + - 18 ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54
3

query I rowsort
SELECT 31 + - col1 FROM tab1 AS cor0
----
-16
17
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 * - CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT - MIN( - - 26 ) AS col1 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - MIN ( - - 26 ) AS col1 FROM tab1 cor0
----
-26

query I rowsort
SELECT DISTINCT - col1 + col1 - - col2 AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 98 ) IN ( - col2 + + col1, + 5, + col0, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 88 + + + col1, 51 col1 FROM tab0 cor0
----
109
51
169
51
89
51

query I rowsort
SELECT ALL col1 + - + 93 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL + COUNT( - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + COUNT ( - - col0 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * 4 col2 FROM tab1
----
104
104
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL COUNT( - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT 89 DIV COUNT( * ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3501
SELECT 89 / COUNT ( * ) AS col0 FROM tab1
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 80 ) < 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3503
SELECT DISTINCT col2 DIV col2 + col0 * + col1 + col0, - 81 col1 FROM tab2 AS cor0
----
2393
-81
4993
-81
5101
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3503
SELECT DISTINCT col2 / col2 + col0 * + col1 + col0, - 81 col1 FROM tab2 AS cor0
----
2393
-81
4993
-81
5101
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT CAST( + 7 AS SIGNED ) + - col0 FROM tab0
----
-8
-80
-90

skipif mysql # not compatible
query I rowsort label-3504
SELECT CAST ( + 7 AS INTEGER ) + - col0 FROM tab0
----
-8
-80
-90

query I rowsort
SELECT DISTINCT - ( + 35 ) * - col1 + - col1 FROM tab1 AS cor0
----
1598
170
476

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3506
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( - col2 AS SIGNED ) * + 36 AND + + CAST( + 54 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3506
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( - col2 AS INTEGER ) * + 36 AND + + CAST ( + 54 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3507
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + 17 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + 17 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 35 - + + col1 * - 77 AS col1 FROM tab0 AS cor0
----
3472
4662
6762

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT DISTINCT - - COUNT( * ), ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3509
SELECT DISTINCT - - COUNT ( * ), ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3510
SELECT DISTINCT + col2 DIV - - CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT DISTINCT + col2 / - - CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3512
SELECT CAST( - - 69 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - 43 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3512
SELECT CAST ( - - 69 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + ( - + SUM( col2 ) ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3513
SELECT + ( - + SUM ( col2 ) ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL + COUNT( ALL - - 61 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + COUNT ( ALL - - 61 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 42 / col2 + - col2 AS col0 FROM tab2 WHERE 34 / col2 + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * 68 * + col2 FROM tab0
----
-47940
-59160
-653004

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - 89 * + - col1
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL + SUM( 18 ) * - 15 FROM tab2 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + SUM ( 18 ) * - 15 FROM tab2 AS cor0
----
-810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - - col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - 1 * + + 61 - + col1
----

query II rowsort
SELECT - col2 + - - col1 - - col0 AS col2, + col1 + - 70 FROM tab2 AS cor0
----
101
7
74
-19
84
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + - SUM( + col1 ) * + 19 * - COUNT( * ) FROM tab2 AS cor0
----
11115

skipif mysql # not compatible
query I rowsort label-3524
SELECT + - SUM ( + col1 ) * + 19 * - COUNT ( * ) FROM tab2 AS cor0
----
11115

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3526
SELECT DISTINCT - col0 * - 84 * col1 + + CAST( NULL AS DECIMAL ) * - + 43 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3526
SELECT DISTINCT - col0 * - 84 * col1 + + CAST ( NULL AS REAL ) * - + 43 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - + col1 + + + col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + - COUNT( * ) FROM tab1 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT + - COUNT ( * ) FROM tab1 WHERE - - col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN ( + 44 ) AND NULL
----

query I rowsort
SELECT ALL col2 - 38 + + 21 * + 50 FROM tab2
----
1035
1052
1070

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT 37 DIV + col0 + - 39 AS col2 FROM tab0
----
-37
-39
-39

skipif mysql # not compatible
query I rowsort label-3533
SELECT 37 / + col0 + - 39 AS col2 FROM tab0
----
-37
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT CAST( - - col0 AS SIGNED ) + - 33 FROM tab1
----
18
52
58

skipif mysql # not compatible
query I rowsort label-3534
SELECT CAST ( - - col0 AS INTEGER ) + - 33 FROM tab1
----
18
52
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT DISTINCT - col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT col2 + col1 + + 45 DIV - col0 + - - 73 * 24 AS col0 FROM tab1
----
1816
1862
1867

skipif mysql # not compatible
query I rowsort label-3536
SELECT col2 + col1 + + 45 / - col0 + - - 73 * 24 AS col0 FROM tab1
----
1816
1862
1867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 / - col2 col0 FROM tab2 WHERE NOT NULL IN ( 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT - col0 DIV - - col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT - col0 / - - col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + ( + ( - CAST( + col2 AS SIGNED ) ) ) + - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-3539
SELECT + ( + ( - CAST ( + col2 AS INTEGER ) ) ) + - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL + col0 + + ( - - 79 ) * + + 29 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
116887
153572
176471

query I rowsort
SELECT + 81 * col1 FROM tab2
----
4131
5427
6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL 40 * col1 FROM tab2 cor0
----
2040
2680
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 45 col0 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT COUNT( * ) * + 78 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3545
SELECT COUNT ( * ) * + 78 FROM tab1 AS cor0
----
234

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 70 * 95 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT DISTINCT COUNT( ALL + + col2 ) * - + 47 * - CAST( 51 AS SIGNED ) FROM tab2
----
7191

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT COUNT ( ALL + + col2 ) * - + 47 * - CAST ( 51 AS INTEGER ) FROM tab2
----
7191

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - MIN( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3550
SELECT - MIN ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL MAX( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT + - MIN( - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3552
SELECT + - MIN ( - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL < - col1 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 / + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 51 * col2 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT DISTINCT - COUNT( * ) * 62, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-186
3

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT - COUNT ( * ) * 62, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-186
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 * - + 39 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + 12 + + SUM( - + 36 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3558
SELECT + 12 + + SUM ( - + 36 ) AS col0 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + ( - - MAX( + + col2 ) ) * + 58 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
5739

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + ( - - MAX ( + + col2 ) ) * + 58 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab0 cor0
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * - ( + col2 ) + - col2 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT SUM( ALL - 28 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3563
SELECT SUM ( ALL - 28 ) FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) + + + 26 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) + + + 26 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 - + - col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 92
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col1 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - MIN( DISTINCT - - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - MIN ( DISTINCT - - 96 ) FROM tab0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( 74 * - + col1 NOT BETWEEN NULL AND + col0 ) )
----

query II rowsort
SELECT + + col1 AS col2, + col1 * - col0 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

query III rowsort
SELECT * FROM tab0 WHERE NOT + 79 >= + col1
----
15
81
47

query II rowsort
SELECT DISTINCT - 2 * 71 AS col1, - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-142
-10
-142
-47
-142
-99

query I rowsort
SELECT - 83 FROM tab2 cor0 WHERE NOT 99 IS NULL
----
-83
-83
-83

query II rowsort
SELECT ALL ( - col2 ), + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + - ( - + MIN( + + col0 ) ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3575
SELECT + - ( - + MIN ( + + col0 ) ) AS col2 FROM tab2 cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT col2 DIV 57 col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3576
SELECT col2 / 57 col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + MIN( ALL + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + MIN ( ALL + + col0 ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ( + col0 ) DIV - 3 FROM tab1
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-3579
SELECT ( + col0 ) / - 3 FROM tab1
----
-17
-28
-30

query I rowsort
SELECT + col0 * col2 * - 30 FROM tab2
----
-130500
-31740
-76800

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL 77 * + COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 77 * + COUNT ( * ) FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT COUNT( - - 55 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3582
SELECT COUNT ( - - 55 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT DISTINCT - SUM( 55 ) * + COUNT( * ) AS col2, - 34 FROM tab1
----
-495
-34

skipif mysql # not compatible
query II rowsort label-3583
SELECT DISTINCT - SUM ( 55 ) * + COUNT ( * ) AS col2, - 34 FROM tab1
----
-495
-34

query III rowsort
SELECT * FROM tab1 WHERE NOT + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT ( - MAX( + col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT ( - MAX ( + col0 ) ) FROM tab0 AS cor0
----
-97

query II rowsort
SELECT + 44 AS col0, + 94 FROM tab2 AS cor0
----
44
94
44
94
44
94

query I rowsort
SELECT DISTINCT col2 + - col2 - + col0 * + col2 * + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + 89 < NULL
----

query I rowsort
SELECT ALL + + 86 * + col2 + + 23 FROM tab1 AS cor0
----
5097
5871
8279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT COUNT( * ) * CAST( + 89 AS SIGNED ) - - 20 * + + 84 FROM tab0 cor0
----
1947

skipif mysql # not compatible
query I rowsort label-3589
SELECT COUNT ( * ) * CAST ( + 89 AS INTEGER ) - - 20 * + + 84 FROM tab0 cor0
----
1947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + col0 col2 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT - 62 + + col0 AS col2, + ( col2 ) * ( 98 ) FROM tab2
----
-16
2254
13
5684
2
3920

query I rowsort
SELECT - 11 + - 90 * - col1 FROM tab0
----
1879
7279
79

query II rowsort
SELECT col2 + + - col0, col1 FROM tab2
----
-17
67
-23
51
-24
77

query I rowsort
SELECT DISTINCT - 94 + - col0 AS col1 FROM tab1
----
-145
-179
-185

query II rowsort
SELECT ALL col1 + + 31 AS col1, - col0 FROM tab0
----
112
-15
32
-97
52
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3596
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - CAST( - 48 AS SIGNED ) AND - 43 * col2
----

skipif mysql # not compatible
query III rowsort label-3596
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - CAST ( - 48 AS INTEGER ) AND - 43 * col2
----

query I rowsort
SELECT - 46 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL CAST( NULL AS SIGNED ) * col1 - + - 63 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL CAST ( NULL AS INTEGER ) * col1 - + - 63 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 50 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-50
-50
-50

query I rowsort
SELECT ( - + ( col1 ) ) * + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - - COUNT( * ) * - + COUNT( ALL + - 98 ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3601
SELECT - - COUNT ( * ) * - + COUNT ( ALL + - 98 ) FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT 13 * + col1 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT 13 * + col1 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT MIN( ALL - 21 ) * + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1491

skipif mysql # not compatible
query I rowsort label-3603
SELECT MIN ( ALL - 21 ) * + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1491

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 NOT BETWEEN NULL AND - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3605
SELECT + 33 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

skipif mysql # not compatible
query II rowsort label-3605
SELECT + 33 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

query II rowsort
SELECT - + col0, + col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT DISTINCT + - ( CAST( - 8 AS SIGNED ) ) * + ( - col1 ) - col2 FROM tab0 AS cor0
----
-107
-178
-695

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT + - ( CAST ( - 8 AS INTEGER ) ) * + ( - col1 ) - col2 FROM tab0 AS cor0
----
-107
-178
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + 35 ) * + col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 * + 53 + + + 0 + + 0 NOT IN ( - col0, col2 + - - col0 + + col1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 * ( - col1 ) + - - col0 col0 FROM tab2 WHERE NOT - + col1 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - 61 DIV col0 * - - 99 AS col2 FROM tab0
----
-396
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - 61 / col0 * - - 99 AS col2 FROM tab0
----
-396
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 37 col1 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT + 22 * 35 * + col2 * - + col0 AS col0 FROM tab1
----
-3769920
-3861550
-4764760

query I rowsort
SELECT - 40 * col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT ALL + MAX( - - col2 ) AS col0, + COUNT( * ) AS col2 FROM tab1
----
96
3

skipif mysql # not compatible
query II rowsort label-3616
SELECT ALL + MAX ( - - col2 ) AS col0, + COUNT ( * ) AS col2 FROM tab1
----
96
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - + 55 AS col2 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT + 26 DIV COUNT( - - col1 ) + - 5 + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT + 26 / COUNT ( - - col1 ) + - 5 + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 27 * + ( + 33 ) + col1 * 30 FROM tab1 AS cor0
----
-471
-741
519

query I rowsort
SELECT DISTINCT + + col1 + + + col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT CAST( - - col0 AS SIGNED ) + col0 + 88 AS col1 FROM tab1 cor0
----
190
258
270

skipif mysql # not compatible
query I rowsort label-3622
SELECT CAST ( - - col0 AS INTEGER ) + col0 + 88 AS col1 FROM tab1 cor0
----
190
258
270

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT ALL ( + SUM( ALL - col1 ) ), + 48 AS col1 FROM tab1 AS cor0
----
-66
48

skipif mysql # not compatible
query II rowsort label-3623
SELECT ALL ( + SUM ( ALL - col1 ) ), + 48 AS col1 FROM tab1 AS cor0
----
-66
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + - col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + - 11 + - - col1 FROM tab0 AS cor0 WHERE - 73 <= NULL
----

query II rowsort
SELECT DISTINCT col2 + + col0, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
196
1
62
81
97
21

query I rowsort
SELECT ALL - + 87 AS col2 FROM tab2 cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + - SUM( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT + - SUM ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT DISTINCT + + COUNT( 82 ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + COUNT ( 82 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + + col2 AS col0 FROM tab1 AS cor0
----
4425
5100
7200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col2 IN ( + 33, col2, 46, + 11 + - col1, - col0 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL 39 + + MAX( - col1 ) * 0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL 39 + + MAX ( - col1 ) * 0 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) DIV 76 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) / 76 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + COUNT( + + 20 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3634
SELECT + COUNT ( + + 20 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 - + 57 FROM tab1
----
-10
-43
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT + 45 - - 32 * - - COUNT( * ) * + 80 FROM tab0
----
7725

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 45 - - 32 * - - COUNT ( * ) * + 80 FROM tab0
----
7725

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + SUM( ALL 4 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col0 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT + SUM ( ALL 4 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col0 * + 45
----
NULL

query I rowsort
SELECT ALL + col1 * + col1 * 37 AS col0 FROM tab0 AS cor0
----
16317
242757
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT 78 DIV - 38 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT 78 / - 38 FROM tab1
----
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - + col0 * + 66 * + col2 + + + 40 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 54 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - COUNT( * ) + - SUM( + col1 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - COUNT ( * ) + - SUM ( + col1 ) FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 33 AND - col1 - col0 + - - col2
----

query II rowsort
SELECT DISTINCT + + ( col1 ) AS col1, + col0 + 81 FROM tab1 AS cor0
----
14
132
47
172
5
166

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 40 NOT BETWEEN - col0 * col2 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3646
SELECT + col0 DIV col1 * - + CAST( + 39 AS SIGNED ) AS col0 FROM tab1
----
-117
-39
-663

skipif mysql # not compatible
query I rowsort label-3646
SELECT + col0 / col1 * - + CAST ( + 39 AS INTEGER ) AS col0 FROM tab1
----
-117
-39
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 99 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3647
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 99 FROM tab0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * 88 col2 FROM tab2
----
2728
2728
2728

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 70 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT COUNT( * ) + - + 61 AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-3651
SELECT COUNT ( * ) + - + 61 AS col1 FROM tab0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + + col0 col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT 68 + - - col0 AS col0 FROM tab1 AS cor0
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL SUM( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL SUM ( ALL + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - ( + col2 ) )
----

query I rowsort
SELECT ALL + ( - col2 ) - + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 / col0 IS NULL ) OR NOT NULL > NULL
----

query I rowsort
SELECT - + 66 - col2 * + - 21 AS col2 FROM tab0 AS cor0
----
144
2013
921

query I rowsort
SELECT + - 97 - + + 87 FROM tab0 AS cor0
----
-184
-184
-184

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT col1 - + + 70 DIV + col2 AS col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-3660
SELECT col1 - + + 70 / + col2 AS col1 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT 27 - - col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
28
28
29

skipif mysql # not compatible
query I rowsort label-3661
SELECT 27 - - col0 / + col2 AS col2 FROM tab2 AS cor0
----
28
28
29

query I rowsort
SELECT - ( + - col0 ) - + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - - ( - - 21 ) * - col1 FROM tab0 AS cor0
----
-1701
-21
-441

query II rowsort
SELECT + 31 + + 44 AS col1, + 49 AS col2 FROM tab0 AS cor0
----
75
49
75
49
75
49

query II rowsort
SELECT 42 + - 45, col0 AS col2 FROM tab2 AS cor0
----
-3
46
-3
64
-3
75

query I rowsort
SELECT + col1 * + col0 + + + 13 + - col1 FROM tab0 AS cor0
----
109
1147
1819

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( ( + col1 ) ) + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL MAX( DISTINCT col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL MAX ( DISTINCT col1 ) AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT SUM( DISTINCT + + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT SUM ( DISTINCT + + col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + col2 * - 34 * - col1 * - col2 FROM tab1
----
-4386816
-591770
-7389152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3672
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3673
SELECT + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT ( - MIN( ALL - 42 ) ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT ( - MIN ( ALL - 42 ) ) AS col1 FROM tab2
----
42

query II rowsort
SELECT DISTINCT 96 AS col2, 58 FROM tab1
----
96
58

query I rowsort
SELECT ALL - - 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT + MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL + col0 * + col2 * CAST( + - 52 AS SIGNED ) col1 FROM tab1 AS cor0
----
-254592
-260780
-321776

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT ALL + col0 * + col2 * CAST ( + - 52 AS INTEGER ) col1 FROM tab1 AS cor0
----
-254592
-260780
-321776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT - - COUNT( * ) DIV - - 74 * - 49 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - - COUNT ( * ) / - - 74 * - 49 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col2, 15 + + col0 * + col2 AS col0 FROM tab0 cor0
----
10
885
47
720
99
9618

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT - col2 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) = col1
----

skipif mysql # not compatible
query I rowsort label-3682
SELECT - col2 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) = col1
----

query I rowsort
SELECT 67 + - - col2 * col2 FROM tab1
----
3548
4691
9283

query II rowsort
SELECT DISTINCT 90 AS col1, 37 - + ( - 73 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
90
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 col1, + 28 + + col2 AS col0 FROM tab1
----
4896
124
5015
87
6188
96

query I rowsort
SELECT 16 * + - col1 * 39 FROM tab0
----
-13104
-50544
-624

query I rowsort
SELECT DISTINCT 95 * ( - 20 ) FROM tab2
----
-1900

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 86 IN ( - col1 * - col2, - 32, - + ( col1 ), col0 / + + col2 + - col1, - 6 + + + 56, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 4 + 85 * + col0 AS col1 FROM tab2 AS cor0
----
3906
5436
6371

query I rowsort
SELECT ALL - 17 - - 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT 80 + col0 FROM tab1
----
131
165
171

query I rowsort
SELECT DISTINCT + 62 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
62

query I rowsort
SELECT ALL 52 - + + col1 AS col0 FROM tab1
----
38
47
5

query III rowsort
SELECT * FROM tab2 WHERE 55 >= NULL
----

query I rowsort
SELECT DISTINCT - 69 / - - col2 * 62 FROM tab1 WHERE NOT NULL NOT IN ( + - 4, - ( - + col1 ) * - + col2 )
----

query I rowsort
SELECT DISTINCT - 75 - + col2 + ( - col0 ) + - + 97 * 68 * col1 FROM tab2 cor0
----
-336540
-442140
-508071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3697
SELECT ALL + 79 AS col0, + CAST( NULL AS SIGNED ) * - MAX( col0 ) FROM tab1 AS cor0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL + 79 AS col0, + CAST ( NULL AS INTEGER ) * - MAX ( col0 ) FROM tab1 AS cor0
----
79
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL + - CAST( - col1 AS SIGNED ) + - + 13 - + col0 FROM tab1 AS cor0
----
-50
-57
-93

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + - CAST ( - col1 AS INTEGER ) + - + 13 - + col0 FROM tab1 AS cor0
----
-50
-57
-93

query I rowsort
SELECT 64 FROM tab0 AS cor0 WHERE 50 IS NULL
----

query II rowsort
SELECT + col1, + 55 + - + col0 AS col2 FROM tab2 cor0
----
51
9
67
-20
77
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 * + + 16 col2 FROM tab1 AS cor0
----
-59
1360
-68
1456
-96
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab2
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT - 99 DIV col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3703
SELECT - 99 / col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * - 17 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT col1 DIV - 31 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT col1 / - 31 AS col1 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> - col2 * col0 OR - 33 * + 63 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT - 42 AS col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * 6 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - 42 AS col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * 6 IS NULL
----

query I rowsort
SELECT + - 44 FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col1 - - col2 + + col0 * - - 5 * + - col1 FROM tab0 cor0
----
-12589
-387
-9566

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NOT + 47 IS NOT NULL
----

query I rowsort
SELECT + 50 * + 52 FROM tab1 cor0
----
2600
2600
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + COUNT( * ) * 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3713
SELECT + COUNT ( * ) * 13 FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT ALL - 56 DIV + col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - 56 / + col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - col2 + 84 AS col0 FROM tab1 AS cor0
----
-12
16
25

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT + + 9 + + COUNT( * ) + - - 35 * - 97 AS col0 FROM tab0 cor0
----
-3383

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + + 9 + + COUNT ( * ) + - - 35 * - 97 AS col0 FROM tab0 cor0
----
-3383

query I rowsort
SELECT - - ( + 68 ) AS col2 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - + SUM( ALL - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3719
SELECT - + SUM ( ALL - + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + col0 * - 84 AS col1 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT col1 * - 71 FROM tab1
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL 58 + - 81 - - + 93 * - SUM( - - col1 ) FROM tab0
----
-9602

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL 58 + - 81 - - + 93 * - SUM ( - - col1 ) FROM tab0
----
-9602

onlyif mysql # DIV for integer division: 
query II rowsort label-3723
SELECT DISTINCT 68, - col0 DIV - - col1 AS col2 FROM tab1
----
68
-1
68
-17
68
-3

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT 68, - col0 / - - col1 AS col2 FROM tab1
----
68
-1
68
-17
68
-3

query I rowsort
SELECT DISTINCT + 23 * - + 41 AS col2 FROM tab1
----
-943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT col1 + + CAST( + 92 AS SIGNED ) FROM tab2
----
143
159
169

skipif mysql # not compatible
query I rowsort label-3725
SELECT col1 + + CAST ( + 92 AS INTEGER ) FROM tab2
----
143
159
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + + 13 col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL ( - + col0 ) + + col2 - - col2 * - + col0 FROM tab0 AS cor0
----
-673
-947
-9601

query II rowsort
SELECT ALL col1 AS col0, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL + + 76 + MAX( ALL - col0 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL + + 76 + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT + ( + col2 ) + + + col1 + + ( - + col2 ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query I rowsort
SELECT DISTINCT - 4 * - - col1 - - - 1 FROM tab1
----
-189
-21
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT ALL 51 DIV col2 * - col2 + + - ( col0 ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 51 / col2 * - col2 + + - ( col0 ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 78 * + col1 AS col0 FROM tab2 WHERE - 2 IS NOT NULL
----
-3978
-5226
-6006

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( 52 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT DISTINCT + CAST( 80 AS SIGNED ) FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + CAST ( 80 AS INTEGER ) FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col0 * + + 68 AS col2, 13 FROM tab0 AS cor0
----
1020
13
5916
13
6596
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + 78 * + - MIN( - 31 ) AS col1 FROM tab1 cor0
----
2418

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 78 * + - MIN ( - 31 ) AS col1 FROM tab1 cor0
----
2418

query I rowsort
SELECT col2 * + 19 * + 73 FROM tab2 cor0
----
31901
55480
80446

query II rowsort
SELECT col0 AS col1, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 39 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT col2, + col1 + + CAST( - 63 AS SIGNED ) + + 72 FROM tab1
----
59
14
68
56
96
23

skipif mysql # not compatible
query II rowsort label-3742
SELECT col2, + col1 + + CAST ( - 63 AS INTEGER ) + + 72 FROM tab1
----
59
14
68
56
96
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT + - CAST( NULL AS SIGNED ) + + + col1 + + col2 * col2 * 82 col1 FROM tab2 WHERE NOT - ( - col1 ) * + col1 + + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3743
SELECT + - CAST ( NULL AS INTEGER ) + + + col1 + + col2 * col2 * 82 col1 FROM tab2 WHERE NOT - ( - col1 ) * + col1 + + col2 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 43, 20 AS col1 FROM tab0
----
43
20
43
20
43
20

query I rowsort
SELECT ALL - col0 - + + col2 FROM tab2 cor0 WHERE + 81 * - col1 IS NULL
----

query II rowsort
SELECT + col2 AS col2, 68 FROM tab2 AS cor0
----
23
68
40
68
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT - + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - MAX( ALL + col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT - MAX ( ALL + col1 ) col0 FROM tab1
----
-47

query I rowsort
SELECT 31 FROM tab2 WHERE NULL IS NULL
----
31
31
31

query III rowsort
SELECT * FROM tab2 WHERE NOT 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 + col2 * 25 <> ( col1 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 + col2 * 25 <> ( col1 * + col0 )
----

query I rowsort
SELECT + col2 * col1 + + 95 AS col0 FROM tab0
----
194
305
3902

query I rowsort
SELECT ALL col2 * - 63 AS col2 FROM tab2 WHERE NOT ( - col0 ) >= col1
----
-1449
-2520
-3654

query I rowsort
SELECT - ( + col0 ) * - col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + 11 + col2 AS col0 FROM tab0
----
110
21
58

query I rowsort
SELECT ALL + 10 * col0 + col2 FROM tab1
----
606
909
978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3758
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 52 + CAST( COUNT( * ) AS DECIMAL ) FROM tab0 WHERE ( - 0 + - 36 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 52 + CAST ( COUNT ( * ) AS REAL ) FROM tab0 WHERE ( - 0 + - 36 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - 99 + COUNT( * ) AS col2 FROM tab0 WHERE + 11 BETWEEN ( NULL ) AND + col2
----
-99

skipif mysql # not compatible
query I rowsort label-3759
SELECT - 99 + COUNT ( * ) AS col2 FROM tab0 WHERE + 11 BETWEEN ( NULL ) AND + col2
----
-99

query I rowsort
SELECT DISTINCT 81 * col0 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col2 * ( + 48 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT DISTINCT + 41 DIV + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + 41 / + COUNT ( * ) FROM tab1
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) NOT IN ( col1 * 85 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( - CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col0 * + 81 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT - col0 - + col2 DIV + col2 AS col1 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-3766
SELECT - col0 - + col2 / + col2 AS col1 FROM tab0
----
-16
-88
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT + col2 NOT IN ( col2 * + 64 )
----

query I rowsort
SELECT 38 - 19 AS col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + COUNT( * ) + 64 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3770
SELECT + COUNT ( * ) + 64 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
3

query I rowsort
SELECT - 19 + + col0 AS col2 FROM tab0 cor0 WHERE + ( - col1 ) NOT BETWEEN ( 60 - - col1 ) AND NULL
----
-4
68
78

query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 53 * col1 col0 FROM tab1 AS cor0
----
-180
-2400
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( * ) + 23 AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) + 23 AS col2 FROM tab1 AS cor0
----
26

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN 85 - - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT - col0 + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT - col0 + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL + COUNT( ALL - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + COUNT ( ALL - col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3779
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( col1 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3779
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( col1 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 21 * - col2 AS col1 FROM tab1 AS cor0
----
-1239
-1428
-2016

query I rowsort
SELECT 73 * + 17 FROM tab1 AS cor0
----
1241
1241
1241

query I rowsort
SELECT ALL - col0 * - 48 AS col2 FROM tab0 AS cor0 WHERE NULL > ( 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 99 + 49 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT 88 * MAX( + 47 * col0 ) FROM tab1 AS cor0
----
376376

skipif mysql # not compatible
query I rowsort label-3784
SELECT 88 * MAX ( + 47 * col0 ) FROM tab1 AS cor0
----
376376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 * col0 col2 FROM tab1 WHERE NOT - col0 NOT IN ( - ( + col0 ) / - 61 )
----

query I rowsort
SELECT DISTINCT - col2 * - col0 * + 63 FROM tab1
----
308448
315945
389844

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT SUM( ALL + col0 ) * + 55 FROM tab1
----
12485

skipif mysql # not compatible
query I rowsort label-3787
SELECT SUM ( ALL + col0 ) * + 55 FROM tab1
----
12485

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT col0 + - 19 * + 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL - 56 DIV + 60 * col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - 56 / + 60 * col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 38 * + + col1 FROM tab0
----
3078
38
798

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 3 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - col1 DIV + 72 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - col1 / + 72 AS col2 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL - MAX( - - 40 ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - MAX ( - - 40 ) AS col0 FROM tab2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL CAST( NULL AS SIGNED ) * 31 - 73 * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL CAST ( NULL AS INTEGER ) * 31 - 73 * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 33 * - 20 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 / col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 / + col0 IN ( col2 * - col1 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + SUM( DISTINCT col2 ) + + MAX( 14 ) col0 FROM tab1 cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT ALL + SUM ( DISTINCT col2 ) + + MAX ( 14 ) col0 FROM tab1 cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT ( + col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 64 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3801
SELECT ( + col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3802
SELECT ALL * FROM tab2 WHERE NOT ( col0 * CAST( NULL AS SIGNED ) ) <> + 49 * + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3802
SELECT ALL * FROM tab2 WHERE NOT ( col0 * CAST ( NULL AS INTEGER ) ) <> + 49 * + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - MAX( ALL 17 ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

skipif mysql # not compatible
query I rowsort label-3803
SELECT - MAX ( ALL 17 ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

query II rowsort
SELECT - col2, col2 * + col0 AS col0 FROM tab2
----
-23
1058
-40
2560
-58
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE col1 + 80 + col2 * 8 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3805
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE col1 + 80 + col2 * 8 IS NULL
----

query I rowsort
SELECT DISTINCT + 49 * - col0 + + col0 FROM tab0 AS cor0
----
-4176
-4656
-720

query II rowsort
SELECT + 69, 85 AS col2 FROM tab0 AS cor0
----
69
85
69
85
69
85

query I rowsort
SELECT ALL + 1 + col2 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
100
211
3808

query I rowsort
SELECT + col1 - + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - + 68 + - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - + 68 + - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 49 + 82 col2 FROM tab0 AS cor0
----
-4181
-4671
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - COUNT( * ) + COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT ALL - COUNT ( * ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 78 + + ( + - 68 ) FROM tab1
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL ( + 68 ) + COUNT( * ) + + 83 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL ( + 68 ) + COUNT ( * ) + + 83 FROM tab1
----
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + + + 87 * + col1 col1 FROM tab0
----
153
1893
7113

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND 80 - col1
----

query I rowsort
SELECT DISTINCT 83 * - - 6 AS col2 FROM tab2
----
498

query I rowsort
SELECT + ( ( - + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 43 + + 26 ) < 94 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 50 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + col0 * col1 / - - col2 ) AND NULL
----

query I rowsort
SELECT ALL 38 * - - col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT DISTINCT 51 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 51 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + col1 * + 18 + - 2 * - col2 * - - col2 FROM tab2 AS cor0
----
1976
4586
7934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT ALL COUNT( * ) + 97 col2 FROM tab2 AS cor0 WHERE ( col1 ) * + ( - 75 ) * CAST( - col2 + - col2 AS SIGNED ) + - 81 <= + col1 / + col1 + col0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT ALL COUNT ( * ) + 97 col2 FROM tab2 AS cor0 WHERE ( col1 ) * + ( - 75 ) * CAST ( - col2 + - col2 AS INTEGER ) + - 81 <= + col1 / + col1 + col0
----
97

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + - 0 + + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 88 col0 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) NOT BETWEEN ( + col1 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) NOT BETWEEN ( + col1 ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab1 cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - - col0 / + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 * - + col2 col1 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT ALL - - 83 * + + col0 FROM tab1 AS cor0
----
4233
7055
7553

query II rowsort
SELECT ALL + col0, + col1 AS col2 FROM tab0 cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL ( + ( + ( - - col2 ) ) ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT MAX( col2 ) AS col0 FROM tab2 WHERE NOT ( NOT + col1 IN ( + + ( + CAST( NULL AS SIGNED ) ) / 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT MAX ( col2 ) AS col0 FROM tab2 WHERE NOT ( NOT + col1 IN ( + + ( + CAST ( NULL AS INTEGER ) ) / 28 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3835
SELECT * FROM tab2 WHERE NOT - - col1 < - 34 + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3835
SELECT * FROM tab2 WHERE NOT - - col1 < - 34 + - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT DISTINCT + + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 * - - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + 24 + - + ( - COUNT( * ) ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 24 + - + ( - COUNT ( * ) ) AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT COUNT( * ) col1 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-3842
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( NULL < NULL )
----
0

query I rowsort
SELECT + col2 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE 52 * + col2 BETWEEN + - col1 AND - + col2 * ( - col2 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT + col1 FROM tab1 AS cor0 WHERE col0 + - col1 + - col2 * CAST( - col2 AS SIGNED ) * + col2 NOT BETWEEN NULL AND - 52 + - col1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3845
SELECT + col1 FROM tab1 AS cor0 WHERE col0 + - col1 + - col2 * CAST ( - col2 AS INTEGER ) * + col2 NOT BETWEEN NULL AND - 52 + - col1
----
14
47
5

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - 70 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - 25 + + col1 AS col0, - 58 FROM tab0 AS cor0
----
106
-58
26
-58
46
-58

query I rowsort
SELECT ALL ( col2 ) + col0 - - + 9 AS col1 FROM tab2 AS cor0
----
113
142
78

query I rowsort
SELECT ALL col1 * + + col2 * + + 56 + 3 AS col1 FROM tab0 cor0
----
11763
213195
5547

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3850
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 11 + CAST( - - 75 AS SIGNED ) * - col1 * - - col2 / - - col2 AND ( 58 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-3850
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 11 + CAST ( - - 75 AS INTEGER ) * - col1 * - - col2 / - - col2 AND ( 58 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + COUNT( + 29 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3851
SELECT + COUNT ( + 29 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 * + - col0 * + col0 + - col1 FROM tab1
----
-249710
-426280
-563155

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE ( col2 ) IN ( 98 * - 4 ) OR ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE ( col2 ) IN ( 98 * - 4 ) OR ( - col0 ) IS NULL
----
0

query I rowsort
SELECT ALL col2 - + - col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3855
SELECT col2 - CAST( NULL AS DECIMAL ) / + ( + + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT col2 - CAST ( NULL AS REAL ) / + ( + + col0 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + 49 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 49 - col0 AS col1 FROM tab2
----
-15
-26
3

query I rowsort
SELECT DISTINCT + 26 * + 90 AS col1 FROM tab2 cor0
----
2340

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 / + + 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * - 81 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT COUNT( * ) DIV - 40 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( * ) / - 40 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 + ( - col0 ) * + col0 ) NOT IN ( - col2 - + 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 4 ) = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 47 + ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( 74 ) * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT + CAST( - + 59 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + CAST ( - + 59 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT - - col0 * CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - - col0 * CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + MAX( + - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3870
SELECT + MAX ( + - col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT col1 DIV + - col2 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT col1 / + - col2 AS col0 FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 17 + + - col2 NOT IN ( col2 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT DISTINCT COUNT( * ) / - AVG ( + col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT COUNT ( * ) / - AVG ( + col0 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT + CAST( + col1 AS SIGNED ) * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1122
3003
3819

skipif mysql # not compatible
query I rowsort label-3874
SELECT + CAST ( + col1 AS INTEGER ) * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT DISTINCT - + 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE 76 + - - col0 + - col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3877
SELECT 84 AS col2, ( 70 ) * - + COUNT( * ) + + CAST( NULL AS SIGNED ) + 19 + ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3877
SELECT 84 AS col2, ( 70 ) * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 19 + ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
84
NULL

query I rowsort
SELECT col2 - + 73 AS col0 FROM tab1 AS cor0
----
-14
-5
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * + 76 col0 FROM tab0 AS cor0
----
912
912
912

query II rowsort
SELECT + col1 - - 93 AS col1, - col2 FROM tab0 AS cor0
----
114
-10
174
-47
94
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + - col2 col0 FROM tab0 AS cor0
----
-105
-142
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col1 FROM tab2 AS cor0
----
-5
-5
-5

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT 59 + - - 87 * + + col1 AS col1 FROM tab0
----
146
1886
7106

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2 WHERE - - col0 IS NOT NULL
----
55

query I rowsort
SELECT DISTINCT + col1 - + col2 - + col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3888
SELECT ALL + 3 * - CAST( NULL AS DECIMAL ) / ( - col1 ) + + ( col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + 3 * - CAST ( NULL AS REAL ) / ( - col1 ) + + ( col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - col2 - + col2 FROM tab0
----
-13
-197
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - COUNT( - 44 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( - 44 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 57 * 71 = NULL
----

query II rowsort
SELECT 40 AS col0, + col1 AS col1 FROM tab2
----
40
51
40
67
40
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col1 + col2 + - - 35 / - col0 * 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT SUM( ALL + col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3894
SELECT DISTINCT SUM ( ALL + col0 ) col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT - - MAX( - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - - MAX ( - 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - COUNT( 54 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - COUNT ( 54 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + - 35 FROM tab1 AS cor0
----
24
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 63 FROM tab2 AS cor0
----
46
-63
64
-63
75
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3899
SELECT CAST( NULL AS DECIMAL ) + - - 18 + + col0 - - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT CAST ( NULL AS REAL ) + - - 18 + + col0 - - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - ( - col1 ) FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 15 <> NULL
----

query I rowsort
SELECT + 53 FROM tab0 WHERE NULL IS NULL
----
53
53
53

query I rowsort
SELECT DISTINCT - col1 * - - ( + ( col2 ) ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL - 52 + - + COUNT( + 36 ) + - + 90 * + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3904
SELECT ALL - 52 + - + COUNT ( + 36 ) + - + 90 * + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * - col0 * + 19 AS col0 FROM tab1 AS cor0
----
137275
157339
49419

query I rowsort
SELECT ALL + - col2 + - ( - - 27 ) FROM tab0 AS cor0
----
-126
-37
-74

query I rowsort
SELECT + 69 + + col1 * col2 * - col1 AS col0 FROM tab1
----
-1406
-150143
-18747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + + - 8 - col0 * + ( col0 ) col2 FROM tab0
----
-315
-7659
-9499

query I rowsort
SELECT col0 * + 54 + - col2 + - 55 - + col2 AS col0 FROM tab1
----
2507
4417
4723

query I rowsort
SELECT + col0 * - col0 * - col0 + + - col1 FROM tab0
----
3294
658482
912672

query I rowsort
SELECT ALL col0 - - + col1 + + - col0 AS col0 FROM tab0 WHERE + col0 + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 40 ) AS col0 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT - + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( - 20 ), col0 + + 42 )
----

query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3916
SELECT ALL 36 + - col1 * col1 * + 88 col1, col2 * - - col2 / - CAST( NULL AS DECIMAL ) FROM tab1
----
-17212
NULL
-194356
NULL
-2164
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3916
SELECT ALL 36 + - col1 * col1 * + 88 col1, col2 * - - col2 / - CAST ( NULL AS REAL ) FROM tab1
----
-17212
NULL
-194356
NULL
-2164
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col2 - - col0 AS col1 FROM tab0
----
-15
62
-87
97
-97
196

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + 42 ) NOT BETWEEN NULL AND - col0
----
87
21
10
97
1
99

query II rowsort
SELECT ( + 84 ), + col1 FROM tab2
----
84
51
84
67
84
77

query II rowsort
SELECT 22, - 45 AS col2 FROM tab0
----
22
-45
22
-45
22
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT ALL COUNT( DISTINCT + + col2 ) DIV - 73 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL COUNT ( DISTINCT + + col2 ) / - 73 FROM tab2
----
0

query II rowsort
SELECT col1, + 29 - + col1 AS col0 FROM tab2
----
51
-22
67
-38
77
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - - ( + + ( + - MAX( - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - - ( + + ( + - MAX ( - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - - ( MIN( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3924
SELECT - - ( MIN ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3925
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1, - 39 FROM tab0 AS cor0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-3925
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, - 39 FROM tab0 AS cor0
----
NULL
-39

query I rowsort
SELECT DISTINCT - 61 - ( - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 71 IN ( - col0 ) )
----

query I rowsort
SELECT - - ( - 13 ) FROM tab1 AS cor0
----
-13
-13
-13

query II rowsort
SELECT 43 * + col1 AS col1, 1 AS col2 FROM tab2
----
2193
1
2881
1
3311
1

query I rowsort
SELECT ALL + col0 + - 55 AS col1 FROM tab0 WHERE NOT - col1 <= NULL
----

query II rowsort
SELECT - - 2, col0 + + col2 FROM tab0 WHERE NOT + + 62 - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + + col0 * - + col0 + 30 + + col1, - col0 * col0 FROM tab2 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col0 + - col1 + - 74 * col2 FROM tab2 AS cor0
----
-1748
-3024
-4367

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT ALL * FROM tab0 cor0 WHERE - col2 + ( CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT ALL * FROM tab0 cor0 WHERE - col2 + ( CAST ( NULL AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT - 42 AS col0 FROM tab2 WHERE NULL IN ( + col2, 59 )
----

query I rowsort
SELECT ALL - col0 + - col2 * + + col0 + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( + - 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT DISTINCT - COUNT( * ), + 92 + + 86 + - - 97 AS col1 FROM tab2 AS cor0
----
-3
275

skipif mysql # not compatible
query II rowsort label-3938
SELECT DISTINCT - COUNT ( * ), + 92 + + 86 + - - 97 AS col1 FROM tab2 AS cor0
----
-3
275

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT - 41 DIV - ( + + ( + 46 ) ) + ( - col1 ) + + 76 + + - col2 FROM tab1 AS cor0
----
-34
-39
12

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 41 / - ( + + ( + 46 ) ) + ( - col1 ) + + 76 + + - col2 FROM tab1 AS cor0
----
-34
-39
12

query I rowsort
SELECT + col1 + + 2 AS col0 FROM tab2 AS cor0
----
53
69
79

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN 55 + + col0 AND col2
----
-14
-47
-5

query I rowsort
SELECT + 6 + + + col2 FROM tab2 cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - COUNT( * ) + + ( + ( 65 ) ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3943
SELECT - COUNT ( * ) + + ( + ( 65 ) ) AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT DISTINCT - CAST( - 81 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( col2 * col0 + + + 72 * col0 ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( col2 * col0 + + + 72 * col0 ) IS NULL
----
81

query I rowsort
SELECT DISTINCT + + 12 + col0 - + ( + 50 ) * + col2 FROM tab2 AS cor0
----
-1092
-1924
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - - 54 * SUM( col1 ) FROM tab2 AS cor0
----
10530

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - 54 * SUM ( col1 ) FROM tab2 AS cor0
----
10530

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT ALL - - col0 DIV - col1 + - col2 - + col1 * + - col0 - + col1 - + 64 DIV col0 FROM tab1 AS cor0
----
344
4161
600

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - col0 / - col1 + - col2 - + col1 * + - col0 - + col1 - + 64 / col0 FROM tab1 AS cor0
----
344
4161
600

query I rowsort
SELECT DISTINCT - 87 - col0 + - col0 AS col1 FROM tab2
----
-179
-215
-237

query I rowsort
SELECT col1 - - - 1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT MAX( + - col2 ) - + 64 AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3950
SELECT MAX ( + - col2 ) - + 64 AS col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT + col1 - col1 * col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT ALL - col2 - ( - + 27 ) FROM tab2 AS cor0
----
-13
-31
4

query I rowsort
SELECT DISTINCT - + 52 AS col1 FROM tab2 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT 85 DIV - - 79 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3954
SELECT 85 / - - 79 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 13 * + col2 AS col1 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( * ) * + 90 AS col2 FROM tab2 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( * ) * + 90 AS col2 FROM tab2 cor0
----
-270

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL 80 * COUNT( * ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL 80 * COUNT ( * ) FROM tab2
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT ALL + col1 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + col1 / + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ALL - 97 DIV + COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 97 / + COUNT ( * ) FROM tab0
----
-32

query II rowsort
SELECT ALL col2 * ( + + 98 ), - col1 AS col2 FROM tab1
----
5782
-5
6664
-47
9408
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 BETWEEN NULL AND + 35 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT MAX( DISTINCT col2 ) + - SUM( ALL - + col2 ) AS col0 FROM tab1 WHERE - 39 * 25 - - 93 IS NOT NULL
----
319

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT MAX ( DISTINCT col2 ) + - SUM ( ALL - + col2 ) AS col0 FROM tab1 WHERE - 39 * 25 - - 93 IS NOT NULL
----
319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT ( + CAST( SUM( DISTINCT col2 ) AS SIGNED ) ) col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT ( + CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) ) col2 FROM tab0 cor0
----
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 FROM tab1 AS cor0
----
-182
-20
-2162

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * + 70 IS NOT NULL )
----

query II rowsort
SELECT ALL 19 AS col0, col0 AS col0 FROM tab0
----
19
15
19
87
19
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT COUNT( * ) DIV + + 11 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT COUNT ( * ) / + + 11 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + COUNT( - 78 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3973
SELECT + COUNT ( - 78 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( col0 ) col0, 26 col2 FROM tab2 AS cor0
----
-46
26
-64
26
-75
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT MIN( DISTINCT - - col0 ) + - COUNT( * ) + ( + 34 ) AS col0 FROM tab1 cor0
----
82

skipif mysql # not compatible
query I rowsort label-3975
SELECT MIN ( DISTINCT - - col0 ) + - COUNT ( * ) + ( + 34 ) AS col0 FROM tab1 cor0
----
82

query I rowsort
SELECT + col2 + - 39 FROM tab1 AS cor0
----
20
29
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 * - col2 + + 19 * 0 * - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3979
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 24 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3979
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 24 IN ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + 69 * - ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT - col1 + - - col0 DIV + ( - - col2 ) AS col0 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT - col1 + - - col0 / + ( - - col2 ) AS col0 FROM tab0
----
-1
-13
-81

query II rowsort
SELECT - ( - 24 ), - col0 AS col1 FROM tab1
----
24
-51
24
-85
24
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + 21 * - col0 FROM tab1 cor0
----
-1071
-1785
-1911

query I rowsort
SELECT - - col1 - - col2 * + 99 * + 11 * + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
-111513523
-26499675
-274754633

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 97 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-102464
-24380
-252375

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + ( + SUM( ( - col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE + 40 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + ( + SUM ( ( - col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE + 40 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 24 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + - col1 col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL CAST( NULL AS SIGNED ) col1 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-3991
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 11 FROM tab1 cor0 WHERE - 52 IN ( col0, + 53, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + 46
----

query I rowsort
SELECT DISTINCT + 96 * 91 FROM tab1 AS cor0
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL + MAX( DISTINCT 25 ) * - + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + MAX ( DISTINCT 25 ) * - + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 2 + col1 AND + + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL MIN( - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL MIN ( - col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT - - 38 DIV - col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT - - 38 / - col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 * 87 * col0 AS col2 FROM tab1
----
226287
628575
720447

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 11 / ( + 57 ) NOT IN ( + col1, + col1 )
----

query I rowsort
SELECT DISTINCT 29 * + - ( - + 36 ) * - col2 FROM tab0
----
-103356
-10440
-49068

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT - col2 DIV - 30 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT - col2 / - 30 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT - col1 * + col1 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT - col1 * + col1 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * 33 col1, + col0 FROM tab0
----
2673
15
33
97
693
87

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT - 48 + - - col1 + + col2 * col2 DIV - + col2 col2 FROM tab1
----
-102
-130
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4007
SELECT - 48 + - - col1 + + col2 * col2 / - + col2 col2 FROM tab1
----
-102
-130
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 + + - col1 col1 FROM tab1
----
38
47
5

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + col2 + + 78 NOT BETWEEN + 58 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT COUNT( + 10 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4010
SELECT COUNT ( + 10 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ( - 78 ) AS col2 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - 30 * + + 90 FROM tab2 AS cor0
----
-2700
-2700
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 29 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 85 col1 FROM tab0 AS cor0
----
-38
-75
14

query I rowsort
SELECT + col2 + + 52 AS col0 FROM tab0 AS cor0
----
151
62
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 37 + - col1 ) IS NULL
----

query I rowsort
SELECT 42 * - col1 + + col0 + + col1 FROM tab0
----
-3306
-774
56

query I rowsort
SELECT + col1 * - 28 + 80 FROM tab2
----
-1348
-1796
-2076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT col1 / - - col1 + col1 + + - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT col1 / - - col1 + col1 + + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 62 + + + 21 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ALL - 21 + - col2 FROM tab0
----
-120
-31
-68

query I rowsort
SELECT col2 FROM tab0 WHERE - col2 <> NULL
----

query I rowsort
SELECT ( - ( + + col2 ) ) + - - col0 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT col0 + ( + 76 ) * - col1 + - col1 FROM tab2 AS cor0
----
-3881
-5084
-5865

query I rowsort
SELECT + + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - + col2 * - col1 + + + 31 + col2 AS col2 FROM tab2 AS cor0
----
1227
3151
3975

query I rowsort
SELECT + 62 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT COUNT( * ) * - 69 AS col0 FROM tab2 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4028
SELECT COUNT ( * ) * - 69 AS col0 FROM tab2 cor0
----
-207

query I rowsort
SELECT ALL - col0 * + + 27 AS col2 FROM tab1 AS cor0
----
-1377
-2295
-2457

query I rowsort
SELECT col2 * + ( + - col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - - col1 * + + 26 * col2 FROM tab2 AS cor0
----
101036
30498
80080

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT COUNT( + + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT COUNT ( + + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL 6 * - - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 6 * - - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * 79 + + col2 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 <> + - col1 + + col0
----

query II rowsort
SELECT col0, + 91 AS col2 FROM tab2
----
46
91
64
91
75
91

query II rowsort
SELECT DISTINCT 58, - col0 AS col1 FROM tab1
----
58
-51
58
-85
58
-91

query II rowsort
SELECT 19, col2 AS col1 FROM tab0 cor0
----
19
10
19
47
19
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT - 46, MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-46
-81

skipif mysql # not compatible
query II rowsort label-4040
SELECT - 46, MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-46
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-4041
SELECT + 89, + 22 DIV - 9 AS col2 FROM tab2 AS cor0
----
89
-2
89
-2
89
-2

skipif mysql # not compatible
query II rowsort label-4041
SELECT + 89, + 22 / - 9 AS col2 FROM tab2 AS cor0
----
89
-2
89
-2
89
-2

query I rowsort
SELECT - 67 * - col1 AS col1 FROM tab1 cor0
----
3149
335
938

query I rowsort
SELECT ALL + - 11 + col0 - + - 2 AS col2 FROM tab1 AS cor0
----
42
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL COUNT( DISTINCT col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4044
SELECT ALL COUNT ( DISTINCT col2 ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT SUM( DISTINCT - - 85 ) + - COUNT( * ) + + 72 AS col1 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-4046
SELECT SUM ( DISTINCT - - 85 ) + - COUNT ( * ) + + 72 AS col1 FROM tab1
----
154

query II rowsort
SELECT 43 + + col1 AS col1, col2 AS col1 FROM tab1
----
48
59
57
96
90
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + MIN( ALL + col0 ) + COUNT( + 55 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4048
SELECT + MIN ( ALL + col0 ) + COUNT ( + 55 ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT 4 * + 30 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT 4 * + 30 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + + ( + 78 ) + - - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4050
SELECT + + ( + 78 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= col0
----

query I rowsort
SELECT DISTINCT - - 65 * + col1 * 38 AS col0 FROM tab1 cor0
----
116090
12350
34580

query I rowsort
SELECT ALL - col1 + - - 74 * col1 AS col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4054
SELECT ALL - 11 DIV + 89 + + CAST( + - 79 AS SIGNED ) FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - 11 / + 89 + + CAST ( + - 79 AS INTEGER ) FROM tab0 AS cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 11 IS NULL
----

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND - + col1
----

query I rowsort
SELECT ALL - col0 - - + col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 80 - - 71 * col2 FROM tab1
----
4269
4908
6896

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT ALL col1 DIV + ( col1 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL col1 / + ( col1 ) AS col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + COUNT( * ) * 7 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4060
SELECT + COUNT ( * ) * 7 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT 63 DIV + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT 63 / + col0 FROM tab0
----
0
4

query I rowsort
SELECT col0 - - - col0 + - col1 * 97 * - col0 FROM tab2
----
227562
478016
487425

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 89 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4063
SELECT 89 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT DISTINCT col0 + - - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT ALL + + col1 * + - col2 + col0 + + + ( - + 10 ) + col2 DIV + - col1 FROM tab1 AS cor0
----
-1309
-231
-3116

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + + col1 * + - col2 + col0 + + + ( - + 10 ) + col2 / + - col1 FROM tab1 AS cor0
----
-1309
-231
-3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL - 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + 92 * 34 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT SUM( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT SUM ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - + 96 AS col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT - MAX( - col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - MAX ( - col1 ) AS col2 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL 77 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT ALL 82, + col0 + - col0 AS col0 FROM tab1 AS cor0
----
82
0
82
0
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + MAX( ALL ( 55 ) ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + MAX ( ALL ( 55 ) ) AS col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT 13 * + col1 * col0 * 56 + col1 FROM tab1 AS cor0
----
309405
3113703
519806

query II rowsort
SELECT ALL - 2 AS col0, + col0 + 10 + col1 + - - 17 * - 63 FROM tab0 AS cor0
----
-2
-953
-2
-963
-2
-965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT CAST( + 0 AS SIGNED ) * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( + 0 AS INTEGER ) * col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 * - 29 col1, + 6 AS col1 FROM tab1
----
-2291
6
-2291
6
-2291
6

query I rowsort
SELECT + + 83 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
83
83
83

query II rowsort
SELECT ALL + col1 * col0, + 36 AS col0 FROM tab2
----
2346
36
4928
36
5025
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT col1 + ( col2 ) - col1 - - - 33 DIV + col2 AS col1 FROM tab0 AS cor0
----
47
7
99

skipif mysql # not compatible
query I rowsort label-4081
SELECT col1 + ( col2 ) - col1 - - - 33 / + col2 AS col1 FROM tab0 AS cor0
----
47
7
99

query I rowsort
SELECT ALL - col1 + - 90 FROM tab2 AS cor0
----
-141
-157
-167

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + 21
----

query III rowsort
SELECT * FROM tab1 WHERE 78 < 2
----

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT - SUM( DISTINCT 67 ) AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - SUM ( DISTINCT 67 ) AS col0 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT - - col0 * - + ( + CAST( NULL AS SIGNED ) ) + col1 + col0 * - + 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - col0 * - + ( + CAST ( NULL AS INTEGER ) ) + col1 + col0 * - + 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT - COUNT( * ) * + 99 * 34 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT - COUNT ( * ) * + 99 * 34 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT 86 + + - col2 DIV 24 * - + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
133
482
86

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT 86 + + - col2 / 24 * - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
133
482
86

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3422
-4556
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 - 18 col0 FROM tab2 cor0
----
38
38
38

query I rowsort
SELECT - - ( - - col0 ) - + - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + - COUNT( * ) + + 7 AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4093
SELECT + - COUNT ( * ) + + 7 AS col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL 60 + - 73 * col0 AS col1 FROM tab1
----
-3663
-6145
-6583

query III rowsort
SELECT * FROM tab2 WHERE col0 < + - col0
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT - 47 - + + col0 FROM tab0
----
-134
-144
-62

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 56 - + COUNT( * ) AS col2 FROM tab0
----
-507

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 56 - + COUNT ( * ) AS col2 FROM tab0
----
-507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + 20 - col2, col2 * + - col1 + + col0 col2, col0 FROM tab1
----
9 values hashing to 8abc377e5f4ce841055a601712c82bf3

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4101
SELECT col2 DIV - col2 AS col1 FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4101
SELECT col2 / - col2 AS col1 FROM tab0 WHERE + - CAST ( NULL AS REAL ) IS NULL
----
-1
-1
-1

query I rowsort
SELECT ALL + - col1 * - col0 + - - 1 FROM tab0 AS cor0
----
1216
1828
98

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col2 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT + COUNT( - + 90 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + COUNT ( - + 90 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL + + col2, col1 - 60, col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to d6e2c83bfc30f794a6df4c018c2c2c5c

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 - + col0 AS col1 FROM tab2 AS cor0
----
-51
-69
-67
-133
-77
-104

query I rowsort
SELECT col0 + 8 FROM tab1 cor0
----
59
93
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 - - col1 - + ( - + ( - ( + + col1 ) ) ) / + col2 + - + col1 / + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 - - col1 - + ( - + ( - ( + + col1 ) ) ) / + col2 + - + col1 / + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT ALL COUNT( * ) DIV + 33 + 4 AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL COUNT ( * ) / + 33 + 4 AS col2 FROM tab1
----
4

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL MAX( ALL + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL MAX ( ALL + col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - SUM( ALL 88 ) AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-4113
SELECT - SUM ( ALL 88 ) AS col1 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - SUM( ALL - 67 ) AS col1 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4114
SELECT - SUM ( ALL - 67 ) AS col1 FROM tab2 AS cor0
----
201

query I rowsort
SELECT col1 + col1 * + col1 * col1 AS col0 FROM tab0
----
2
531522
9282

query I rowsort
SELECT DISTINCT + + col0 + 40 FROM tab2 AS cor0
----
104
115
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = col2
----

query II rowsort
SELECT ALL - col2 AS col0, col1 + - + 35 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
16
-40
42
-58
32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 25 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 57 + ( + + col1 ) FROM tab1 AS cor0
----
104
62
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT - COUNT( * ) AS col2, 62 + 57 FROM tab0 AS cor0 WHERE ( NOT 1 IS NULL )
----
-3
119

skipif mysql # not compatible
query II rowsort label-4121
SELECT - COUNT ( * ) AS col2, 62 + 57 FROM tab0 AS cor0 WHERE ( NOT 1 IS NULL )
----
-3
119

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL > col1 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL - SUM( DISTINCT + - col0 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - SUM ( DISTINCT + - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 55 * col1 + col2 + 47 AS col0 FROM tab0 AS cor0
----
1212
201
4549

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT ( NULL ) < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT MIN( - - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4126
SELECT MIN ( - - col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT col0 * - col1 - 44 FROM tab0
----
-1259
-141
-1871

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT 70 - - + col0 - 37 - + col1 DIV - col2 AS col2 FROM tab2
----
109
81
98

skipif mysql # not compatible
query I rowsort label-4128
SELECT 70 - - + col0 - 37 - + col1 / - col2 AS col2 FROM tab2
----
109
81
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NULL NOT IN ( + col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + COUNT( * ) * - 47 - - 83 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4130
SELECT + COUNT ( * ) * - 47 - - 83 FROM tab0
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 5, + col2 AS col2 FROM tab0
----
5
10
5
47
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT - MIN( + + col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4133
SELECT - MIN ( + + col1 ) col2 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col2 + + - col2
----

query II rowsort
SELECT ALL col1, 21 AS col1 FROM tab2 AS cor0 WHERE col1 + 83 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 22 * ( + col1 ) = - col0 * + + col2
----

query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT - + CAST( + col2 AS SIGNED ) * - - ( - 73 ) FROM tab0 AS cor0
----
3431
7227
730

skipif mysql # not compatible
query I rowsort label-4139
SELECT - + CAST ( + col2 AS INTEGER ) * - - ( - 73 ) FROM tab0 AS cor0
----
3431
7227
730

query I rowsort
SELECT - col0 * - - 82 AS col1 FROM tab2 AS cor0
----
-3772
-5248
-6150

query I rowsort
SELECT DISTINCT 43 + 50 AS col1 FROM tab2
----
93

query I rowsort
SELECT ALL + ( 25 ) FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4143
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) / - COUNT( * ) * + + COUNT( - 36 ) + - COUNT( - CAST( col1 AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL ( + CAST ( NULL AS REAL ) ) / - COUNT ( * ) * + + COUNT ( - 36 ) + - COUNT ( - CAST ( col1 AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MIN( ALL 17 ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-4144
SELECT MIN ( ALL 17 ) AS col2 FROM tab0
----
17

query II rowsort
SELECT ALL - col0 AS col1, 38 FROM tab2
----
-46
38
-64
38
-75
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 * - 64
----

query I rowsort
SELECT - col2 + + - col0 * + col1 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # DIV for integer division: 
query II rowsort label-4148
SELECT - col2 + - 64 DIV - col2, col2 FROM tab0 AS cor0
----
-4
10
-46
47
-99
99

skipif mysql # not compatible
query II rowsort label-4148
SELECT - col2 + - 64 / - col2, col2 FROM tab0 AS cor0
----
-4
10
-46
47
-99
99

query I rowsort
SELECT ALL + - 75 FROM tab2 WHERE NULL IS NULL
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL - - CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 WHERE col2 BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 WHERE col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( 36 ) - + 7 - + + col0 AS col1 FROM tab0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - - 8 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 93 - col0 < col0
----
16

skipif mysql # not compatible
query I rowsort label-4152
SELECT - - 8 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 93 - col0 < col0
----
16

query I rowsort
SELECT ALL + col1 - - 35 FROM tab2 AS cor0
----
102
112
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4154
SELECT - col1 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - col1 - - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 18, + col1 * 59 * + col0 AS col0 FROM tab0 AS cor0
----
-18
107793
-18
5723
-18
71685

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - COUNT( + col1 ) + 46 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4156
SELECT - COUNT ( + col1 ) + 46 FROM tab2 AS cor0
----
43

query I rowsort
SELECT ALL - col0 * - 83 + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
4137
6996
7485

query I rowsort
SELECT ALL + + ( + col1 ) * + + 45 + - - 98 AS col0 FROM tab2 cor0
----
2393
3113
3563

query I rowsort
SELECT col1 * - + 86 * + ( + 89 ) + + 74 * + col2 * + + 83 FROM tab1 cor0
----
324108
482476
57918

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + MIN( ALL + col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4160
SELECT ALL + MIN ( ALL + col1 ) col1 FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT DISTINCT col1 * - col0 col0 FROM tab0 WHERE NOT col0 - + 1 IN ( - CAST( NULL AS SIGNED ), + col1, + + 74 * + ( + col0 ) + - - col2, + + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT DISTINCT col1 * - col0 col0 FROM tab0 WHERE NOT col0 - + 1 IN ( - CAST ( NULL AS INTEGER ), + col1, + + 74 * + ( + col0 ) + - - col2, + + col0 )
----

query I rowsort
SELECT DISTINCT - ( 16 ) AS col0 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - + MAX( DISTINCT - 80 ) * COUNT( * ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - + MAX ( DISTINCT - 80 ) * COUNT ( * ) FROM tab2 AS cor0
----
240

query I rowsort
SELECT DISTINCT - + col2 * + + col0 * col2 AS col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + 6 * 90 FROM tab1 AS cor0
----
540

query I rowsort
SELECT DISTINCT - 68 + col1 * + col2 FROM tab1 WHERE NOT + col2 IS NULL
----
1276
227
3128

query II rowsort
SELECT ALL 2 AS col0, - 71 * col2 * col1 FROM tab0
----
2
-14910
2
-270297
2
-7029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col0 FROM tab0
----
-36

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - - 30 * - MIN( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-900

skipif mysql # not compatible
query I rowsort label-4171
SELECT - - 30 * - MIN ( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + - 62 )
----

query I rowsort
SELECT + + col0 * + col1 * col1 FROM tab1 cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - 61 * - col0 AS col0 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT + ( - - col0 ) + + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 18 * + col1 AS col0 FROM tab0 AS cor0
----
1458
18
378

query I rowsort
SELECT ALL - col0 * + - ( - col0 ) FROM tab2 AS cor0 WHERE col0 = + ( - + col2 )
----

query I rowsort
SELECT ALL - - 56 + + col1 AS col0 FROM tab1 AS cor0
----
103
61
70

query I rowsort
SELECT - col1 + col2 - - 72 * - col2 * + 14 AS col2 FROM tab2 AS cor0
----
-23212
-40357
-58473

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL 7, + col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
7
14
7
47
7
5

query I rowsort
SELECT DISTINCT - 42 + - col2 * - - col1 FROM tab0 AS cor0
----
-141
-252
-3849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * - + col1 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 52 * 47 FROM tab2
----
2444
2444
2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL CAST( NULL AS SIGNED ) + + + ( 56 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL CAST ( NULL AS INTEGER ) + + + ( 56 ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 72 * + 37 AS col0, - col2 FROM tab1
----
-2664
-59
-2664
-68
-2664
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT ALL + col2 + 30 DIV - + 65 * - col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + col2 + 30 / - + 65 * - col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + COUNT( * ) * + - 39 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + COUNT ( * ) * + - 39 FROM tab0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL + col1 DIV - 7 FROM tab2
----
-11
-7
-9

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + col1 / - 7 FROM tab2
----
-11
-7
-9

query I rowsort
SELECT DISTINCT 53 * 52 * + + col0 FROM tab2
----
126776
176384
206700

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT - 87 DIV + ( - col1 ) FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 87 / + ( - col1 ) FROM tab1 AS cor0
----
1
17
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT ALL + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / - col2 * - + 63 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT 9 * - 85 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT 9 * - 85 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT COUNT( * ) * - 25 AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4195
SELECT COUNT ( * ) * - 25 AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + + SUM( - - ( + - 18 ) ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + + SUM ( - - ( + - 18 ) ) FROM tab2 cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4198
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN + + CAST( - 95 AS SIGNED ) AND - col1 * + col0 + 89 + - col0
----

skipif mysql # not compatible
query III rowsort label-4198
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN + + CAST ( - 95 AS INTEGER ) AND - col1 * + col0 + 89 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT + 75 DIV + COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 75 / + COUNT ( * ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT COUNT( * ) * - 89 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-4200
SELECT COUNT ( * ) * - 89 FROM tab0
----
-267

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( + 46 ) > ( 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT - 91 DIV + - col1 FROM tab0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 91 / + - col1 FROM tab0
----
1
4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT - - col1 + - 67 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - col1 + - 67 IS NULL
----
-3

query II rowsort
SELECT DISTINCT + col0, - ( - col0 ) AS col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL - - COUNT( * ), + 76 col0 FROM tab1 AS cor0
----
3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4205
SELECT ALL - - COUNT ( * ), + 76 col0 FROM tab1 AS cor0
----
3
76

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + + COUNT( * ) col1 FROM tab0 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-4207
SELECT + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 60 - - 33 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NULL WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL ( col1 ) * - col1 + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + - - col0 >= + + col1
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + - - col0 >= + + col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4212
SELECT - - CAST( COUNT( * ) AS SIGNED ) AS col0, MIN( col2 ) FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-4212
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) AS col0, MIN ( col2 ) FROM tab2 AS cor0
----
3
23

query I rowsort
SELECT DISTINCT col0 + + 76 FROM tab2 AS cor0
----
122
140
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT ALL - CAST( NULL AS SIGNED ) * + - 6 + - 29 + + col2 + - col1 + col0 / col2 * + 71 col1, 61 FROM tab1 AS cor0
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4214
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 6 + - 29 + + col2 + - col1 + col0 / col2 * + 71 col1, 61 FROM tab1 AS cor0
----
NULL
61
NULL
61
NULL
61

query I rowsort
SELECT ALL col1 * + - col2 + + - 47 + + + 25 * col2 FROM tab1
----
-1543
1009
1133

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col0 - col0 NOT BETWEEN NULL AND + col2 * + col2 )
----

query I rowsort
SELECT ALL + col2 * col1 + col0 FROM tab2
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + SUM( - + 47 ) AS col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + SUM ( - + 47 ) AS col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL 35 DIV col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 35 / col2 FROM tab0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT - - col2 DIV + 96 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - - col2 / + 96 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT + col1 DIV - 19 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT + col1 / - 19 AS col1 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 WHERE NOT ( - 7 ) IS NULL
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT + col2 DIV 66 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4223
SELECT + col2 / 66 AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE col0 <= + 16
----

query I rowsort
SELECT 92 FROM tab1 WHERE NOT + col1 > ( 86 )
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 76 col1 FROM tab1
----
123
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT col0 + + CAST( 37 AS SIGNED ) FROM tab0
----
124
134
52

skipif mysql # not compatible
query I rowsort label-4227
SELECT col0 + + CAST ( 37 AS INTEGER ) FROM tab0
----
124
134
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT MIN( col0 ) DIV SUM( col2 * col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT MIN ( col0 ) / SUM ( col2 * col2 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT DISTINCT col2 DIV + 55 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT col2 / + 55 FROM tab2
----
0
1

query I rowsort
SELECT ALL col0 + col1 * - 92 FROM tab1
----
-1237
-375
-4233

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - 81 )
----

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 78 FROM tab1
----
-4818
-4937
-6110

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT 54 + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT 54 + COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( 53 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 78 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 / + col2 + + 71 AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) = NULL
----

query I rowsort
SELECT + 80 * 61 + + 84 FROM tab0
----
4964
4964
4964

query I rowsort
SELECT DISTINCT + ( - 28 ) * - 99 - + col1 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
2695
2705
2721

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( 13 - 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - col2 * - col0 ) - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - col2 * - col0 ) - col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col2 + - 77 AS col1 FROM tab0
----
-782
-947
-9680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4243
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL = + col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 WHERE NULL = + col0 + col2
----
NULL

query I rowsort
SELECT ALL - col1 + - 29 FROM tab1
----
-34
-43
-76

query III rowsort
SELECT ALL * FROM tab2 WHERE - 27 NOT BETWEEN - col2 * 61 + 14 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4246
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col0 + CAST( NULL AS SIGNED ) * col1 ) AND - col2 * 48
----

skipif mysql # not compatible
query III rowsort label-4246
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col0 + CAST ( NULL AS INTEGER ) * col1 ) AND - col2 * 48
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN NULL AND + 61
----

query I rowsort
SELECT + 48 + 48 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL + MAX( col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 29 + 7 >= - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 - + col0 / - col0 >= ( + col1 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT + COUNT( * ) - 29 AS col1 FROM tab1 WHERE NULL <> ( - col1 )
----
-29

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + COUNT ( * ) - 29 AS col1 FROM tab1 WHERE NULL <> ( - col1 )
----
-29

query I rowsort
SELECT ALL 74 * col2 FROM tab2
----
1702
2960
4292

query I rowsort
SELECT col1 + 32 AS col0 FROM tab1 WHERE col0 * 87 - col2 * + col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - COUNT( * ) + 77 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4255
SELECT - COUNT ( * ) + 77 FROM tab1 AS cor0
----
74

query I rowsort
SELECT + 54 + col0 FROM tab2 cor0
----
100
118
129

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) * col1 >= + col0 + - col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - 15 ) + + col2 AS col0 FROM tab0 AS cor0
----
-5
32
84

query I rowsort
SELECT 80 FROM tab1 AS cor0 WHERE + col2 < ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + 19 ) ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > ( col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE col2 NOT IN ( + col0 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab2 WHERE 15 - + 59 IS NULL
----

query I rowsort
SELECT ALL + col1 + - + 4 AS col2 FROM tab1
----
1
10
43

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT MIN( - 36 ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4266
SELECT MIN ( - 36 ) AS col1 FROM tab0
----
-36

query I rowsort
SELECT 63 - - - col1 FROM tab2
----
-14
-4
12

query I rowsort
SELECT DISTINCT - + col2 + + col2 + 52 AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + 91 + 20 * + SUM( - col1 ) FROM tab0 AS cor0
----
-1969

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 91 + 20 * + SUM ( - col1 ) FROM tab0 AS cor0
----
-1969

query I rowsort
SELECT DISTINCT - col2 * + + ( - ( col1 ) ) * - col0 + - col2 * col0 FROM tab2
----
-199680
-295800
-55016

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab1 WHERE NULL <= + - col0
----

query II rowsort
SELECT DISTINCT col1, + 35 FROM tab2
----
51
35
67
35
77
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL COUNT( * ) AS col0, MIN( DISTINCT - 87 ) FROM tab2
----
3
-87

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL COUNT ( * ) AS col0, MIN ( DISTINCT - 87 ) FROM tab2
----
3
-87

query I rowsort
SELECT - ( + col1 ) * - 7 FROM tab2 AS cor0
----
357
469
539

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT ALL + 81 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4277
SELECT * FROM tab2 cor0 WHERE NOT col0 <> ( + - CAST( 68 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4277
SELECT * FROM tab2 cor0 WHERE NOT col0 <> ( + - CAST ( 68 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - 88 + - + 77 + - col1 AS col0 FROM tab0 AS cor0
----
-15
-246
-87
-186
-97
-166

query I rowsort
SELECT 17 * - - col1 * 69 FROM tab2 AS cor0
----
59823
78591
90321

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + - MAX( ALL + - col2 ) * + + ( + 81 ) FROM tab2 AS cor0
----
1863

skipif mysql # not compatible
query I rowsort label-4280
SELECT + - MAX ( ALL + - col2 ) * + + ( + 81 ) FROM tab2 AS cor0
----
1863

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 + 10 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT SUM( - - 17 ) DIV 8 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4282
SELECT SUM ( - - 17 ) / 8 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL + CAST( - col0 AS SIGNED ) * - + col0 AS col1 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + CAST ( - col0 AS INTEGER ) * - + col0 AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + col1 * - + 77 AS col2 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT CAST( NULL AS SIGNED ) / - MAX( DISTINCT - 52 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT CAST ( NULL AS INTEGER ) / - MAX ( DISTINCT - 52 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + - col2 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + + 30 + - - SUM( ALL + col2 ) FROM tab2 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-4288
SELECT + + 30 + - - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
151

query II rowsort
SELECT + col1 + - + 76, - col2 AS col2 FROM tab0 cor0
----
-55
-10
-75
-99
5
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + 11 + - ( - COUNT( * ) ) - MIN( col2 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + 11 + - ( - COUNT ( * ) ) - MIN ( col2 ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT - COUNT( * ) DIV 56 * - COUNT( * ) + + ( 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4291
SELECT - COUNT ( * ) / 56 * - COUNT ( * ) + + ( 76 ) FROM tab2 AS cor0
----
76

query II rowsort
SELECT DISTINCT 26 * 44 + - col1 AS col2, col2 + + 64 AS col2 FROM tab2 cor0
----
1067
104
1077
122
1093
87

query I rowsort
SELECT + ( - - 50 ) FROM tab0 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT 42 - + col2 + - 15 DIV - 29 * - col0 FROM tab1 AS cor0
----
-17
-26
-54

skipif mysql # not compatible
query I rowsort label-4294
SELECT 42 - + col2 + - 15 / - 29 * - col0 FROM tab1 AS cor0
----
-17
-26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + 26 - MAX( - 32 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4295
SELECT + 26 - MAX ( - 32 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL col2 + - col1 * - - col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4297
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - + CAST( NULL AS SIGNED ) AND col0 AND NOT ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4297
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - + CAST ( NULL AS INTEGER ) AND col0 AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 + - 94 * col2 AS col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + col1 + - 58 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + 48 - + ( - - col0 ) * - 28 AS col2 FROM tab2
----
2392
3712
4884

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 94 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - - 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT ALL + col1 - col1 * 79 DIV + + 41 - + 23 FROM tab0
----
-23
-42
-98

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + col1 - col1 * 79 / + + 41 - + 23 FROM tab0
----
-23
-42
-98

query I rowsort
SELECT ALL + - 47 FROM tab0 WHERE ( - 48 - col1 ) < + 23
----
-47
-47
-47

query I rowsort
SELECT col1 - - + 86 FROM tab2 AS cor0 WHERE NULL = - 9 * + 94 + - + col1
----

query I rowsort
SELECT ALL - col2 * - - col1 - - 82 FROM tab0 AS cor0
----
-128
-17
-3725

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 IN ( - col1 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 60 FROM tab1 WHERE NOT + 13 * - - col0 + - 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT - col1 DIV + 51 * 9 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT - col1 / + 51 * 9 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * + + 87 * + - 60 * - col1 AS col1 FROM tab2 AS cor0
----
16077600
20284920
6123060

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT - COUNT( ALL + 86 ) * 0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - COUNT ( ALL + 86 ) * 0 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col2 * - col0 AS col2, + 20 - + ( 28 ) + col1 * + col1 FROM tab1 AS cor0
----
4896
188
5015
17
6188
2201

query I rowsort
SELECT DISTINCT col1 * 10 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT ALL - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 22 * + col1 - 5 * - col2 AS col2 FROM tab1 cor0
----
-694
172
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL + - ( - 18 ) FROM tab1 WHERE NOT NULL NOT IN ( - + 52, + col2 * + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + - ( - 18 ) FROM tab1 WHERE NOT NULL NOT IN ( - + 52, + col2 * + CAST ( + col1 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT + col0 * - - 4 AS col2 FROM tab1
----
204
340
364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * - ( 35 ) col0 FROM tab1
----
1836
3060
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT + 19 + 88 * + CAST( - 34 AS SIGNED ) AS col0 FROM tab1
----
-2973
-2973
-2973

skipif mysql # not compatible
query I rowsort label-4322
SELECT + 19 + 88 * + CAST ( - 34 AS INTEGER ) AS col0 FROM tab1
----
-2973
-2973
-2973

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT ( - col1 * + - col0 * - 90 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT - 70 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - 38 + + 33 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4326
SELECT + CAST( NULL AS DECIMAL ) + + MAX( ALL + + col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT + CAST ( NULL AS REAL ) + + MAX ( ALL + + col0 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 + + 32 AS col0 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT ALL col0 + 70 AS col1 FROM tab2 AS cor0
----
116
134
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + ( + - COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4329
SELECT DISTINCT + ( + - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT 49 + ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-4331
SELECT 49 + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 26 col0 FROM tab1 WHERE col0 IS NOT NULL
----
-12
-21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT 3 * + - CAST( NULL AS SIGNED ) + + 63 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT 3 * + - CAST ( NULL AS INTEGER ) + + 63 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT - 0 - - col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - col1 / - + CAST( NULL AS SIGNED ) - + col0 * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT - col1 / - + CAST ( NULL AS INTEGER ) - + col0 * + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4337
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT IN ( - col2, CAST( NULL AS SIGNED ) - - 29 * - 13 ) AND NOT NULL > col2
----

skipif mysql # not compatible
query III rowsort label-4337
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT IN ( - col2, CAST ( NULL AS INTEGER ) - - 29 * - 13 ) AND NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - SUM( - col1 ) - + - 1 FROM tab2
----
196

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - SUM ( - col1 ) - + - 1 FROM tab2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL MIN( + col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4339
SELECT ALL MIN ( + col1 ) col0 FROM tab0
----
1

query I rowsort
SELECT + col0 - + col0 * - - 16 AS col0 FROM tab1
----
-1275
-1365
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4341
SELECT * FROM tab2 WHERE NOT CAST( - 23 AS DECIMAL ) > - + col1 * CAST( - col1 AS DECIMAL ) + - 11 * ( - col2 ) * + col0 + - col1 AND NOT NULL BETWEEN - 20 + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4341
SELECT * FROM tab2 WHERE NOT CAST ( - 23 AS REAL ) > - + col1 * CAST ( - col1 AS REAL ) + - 11 * ( - col2 ) * + col0 + - col1 AND NOT NULL BETWEEN - 20 + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 79 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT COUNT( * ) * + COUNT( ALL - 24 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4343
SELECT COUNT ( * ) * + COUNT ( ALL - 24 ) FROM tab0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4344
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT 53, - col0 AS col1 FROM tab1
----
53
-51
53
-85
53
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT + 85 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, CAST( 86 AS SIGNED ), - - ( - col2 ), - col2 )
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4346
SELECT + 85 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, CAST ( 86 AS INTEGER ), - - ( - col2 ), - col2 )
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ( + - SUM( + 99 ) ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4348
SELECT ( + - SUM ( + 99 ) ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL - MAX( + + col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4349
SELECT ALL - MAX ( + + col2 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4350
SELECT DISTINCT + + col1 FROM tab0 WHERE col0 <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + + col1 FROM tab0 WHERE col0 <> CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + + col0 ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + col2 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - COUNT( * ) * + + COUNT( * ) + 77 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + 77 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ( 84 ) + - 44 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4355
SELECT 75 * - - ( + CAST( NULL AS DECIMAL ) ) + - - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4355
SELECT 75 * - - ( + CAST ( NULL AS REAL ) ) + - - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL MAX( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 61 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( 43 * + + col1 + ( + + col0 ) + - - ( - + col1 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL - - COUNT( * ) * ( - 69 ) FROM tab1 WHERE - + ( + col1 ) IS NOT NULL
----
-207

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - - COUNT ( * ) * ( - 69 ) FROM tab1 WHERE - + ( + col1 ) IS NOT NULL
----
-207

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT COUNT( + - col2 ) DIV - COUNT( * ) - + 60 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT COUNT ( + - col2 ) / - COUNT ( * ) - + 60 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - - + col2 / + + 28 + - col1 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 17 - - + col1 AS col2 FROM tab1 AS cor0
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - SUM( - 68 ) + + - 31 AS col2 FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-4364
SELECT - SUM ( - 68 ) + + - 31 AS col2 FROM tab2 AS cor0
----
173

query I rowsort
SELECT - 47 FROM tab0 AS cor0 WHERE - 74 + - - col1 / col1 IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT + + col0 + - col1 * 15 * - + col1 FROM tab2 cor0
----
39061
67410
88999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 + col1 + col0 col0 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 + col0 + + + 48 col2, col1 FROM tab0 AS cor0
----
-18
81
114
21
144
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT + col1 DIV + col2 + + col2 + - 69 FROM tab2 AS cor0
----
-10
-28
-44

skipif mysql # not compatible
query I rowsort label-4369
SELECT + col1 / + col2 + + col2 + - 69 FROM tab2 AS cor0
----
-10
-28
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4370
SELECT * FROM tab2 WHERE NULL <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4370
SELECT * FROM tab2 WHERE NULL <> - + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT 29 DIV - col1 + + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4371
SELECT 29 / - col1 + + col1 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - + ( 33 ) FROM tab1 WHERE + 60 + - col2 * - col1 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( 79 ) FROM tab0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) BETWEEN + 43 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 26 NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - ( + MAX( DISTINCT + + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4377
SELECT - ( + MAX ( DISTINCT + + col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT + COUNT( DISTINCT - - 49 ), 44 AS col1 FROM tab1 AS cor0
----
1
44

skipif mysql # not compatible
query II rowsort label-4378
SELECT + COUNT ( DISTINCT - - 49 ), 44 AS col1 FROM tab1 AS cor0
----
1
44

query II rowsort
SELECT + + ( col2 ) AS col2, col0 + col2 FROM tab2 cor0
----
23
69
40
104
58
133

query I rowsort
SELECT ALL 12 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT - 99 AS col2, CAST( 38 AS SIGNED ) FROM tab2 AS cor0
----
-99
38
-99
38
-99
38

skipif mysql # not compatible
query II rowsort label-4381
SELECT - 99 AS col2, CAST ( 38 AS INTEGER ) FROM tab2 AS cor0
----
-99
38
-99
38
-99
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL + - MIN( DISTINCT - ( + + 49 ) ) * + + 26 FROM tab1 AS cor0
----
1274

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + - MIN ( DISTINCT - ( + + 49 ) ) * + + 26 FROM tab1 AS cor0
----
1274

query II rowsort
SELECT - ( + col0 ) + + - col1 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-108
-21
-96
-81
-98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + + 53 + + + COUNT( DISTINCT + 49 ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-4384
SELECT + + 53 + + + COUNT ( DISTINCT + 49 ) FROM tab1 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, - col0 + ( - + 40 ) col2 FROM tab2
----
-46
-86
-64
-104
-75
-115

query I rowsort
SELECT ALL + col0 * + 33 FROM tab0
----
2871
3201
495

query II rowsort
SELECT DISTINCT - col2 * - - col1, col2 AS col1 FROM tab2
----
-1173
23
-3080
40
-3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + 16 * - COUNT( * ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 16 * - COUNT ( * ) AS col2 FROM tab2
----
-48

query III rowsort
SELECT * FROM tab1 WHERE 64 * - col0 * - 74 + - col0 + - 83 BETWEEN NULL AND - ( - 53 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - col2 - - 46 * + 5 * 22 + ( - - col2 ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT col1 / - + CAST( NULL AS SIGNED ) * 95 - + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT col1 / - + CAST ( NULL AS INTEGER ) * 95 - + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 77 * + 89 AS col0 FROM tab1 AS cor0
----
-6853
-6853
-6853

query I rowsort
SELECT ALL ( + 47 ) AS col0 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT 41 * COUNT( ALL + + col0 ) + 86 FROM tab2
----
209

skipif mysql # not compatible
query I rowsort label-4394
SELECT 41 * COUNT ( ALL + + col0 ) + 86 FROM tab2
----
209

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT + col1 + + col2 + - CAST( + 6 AS SIGNED ) + col2 * + col1 col0 FROM tab0 cor0
----
193
235
3929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4396
SELECT DISTINCT + col1 + + col2 + - CAST ( + 6 AS INTEGER ) + col2 * + col1 col0 FROM tab0 cor0
----
193
235
3929

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4397
SELECT DISTINCT - + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 59 * - col0 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT DISTINCT ( 20 ) AS col0 FROM tab1, tab0 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 FROM tab1 WHERE NOT - 72 IS NULL
----
14
14
14

query I rowsort
SELECT ALL - - 80 AS col2 FROM tab0 WHERE + 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) * col0 + + col0 BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT col1 * + 99 + - col2 + + col0 FROM tab2 AS cor0
----
5072
6650
7647

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL - SUM( - col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - SUM ( - col0 ) AS col1 FROM tab2 cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col0 * col1 col1 FROM tab0 AS cor0
----
15
-1215
87
-1827
97
-97

query I rowsort
SELECT DISTINCT col0 * + 75 * - + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-31880
-320822
-53564

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - + COUNT( * ) + - MIN( ALL - 84 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - + COUNT ( * ) + - MIN ( ALL - 84 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL 76 * - ( + ( - 1 ) ) + + col2 FROM tab0 AS cor0
----
123
175
86

query I rowsort
SELECT DISTINCT + col2 + + + 59 * - 51 FROM tab0 AS cor0
----
-2910
-2962
-2999

query I rowsort
SELECT ALL + col2 + + 72 FROM tab0
----
119
171
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) * - + COUNT( - CAST( + col0 AS SIGNED ) ) * + CAST( 21 AS SIGNED ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * - + COUNT ( - CAST ( + col0 AS INTEGER ) ) * + CAST ( 21 AS INTEGER ) FROM tab1
----
-189

query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 * - col0 * + col2 AS col1 FROM tab1 cor0
----
-59
-25075
-68
-290836
-96
-68544

query I rowsort
SELECT - 60 * + 19 * 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ef9ba98be7a6c9eec97c1f9965f0693

query I rowsort
SELECT 60 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + + col1 FROM tab2 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col2 col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - ( - 60 ) FROM tab0 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + + col2 * 51 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ( - + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4420
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT + col0 * 84 * - - 61 AS col1 FROM tab1 AS cor0
----
261324
435540
466284

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + ( + SUM( col2 ) ) * + ( + + 31 ) * - 40 + + - COUNT( * ) FROM tab2 AS cor0
----
-150043

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + ( + SUM ( col2 ) ) * + ( + + 31 ) * - 40 + + - COUNT ( * ) FROM tab2 AS cor0
----
-150043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4423
SELECT ALL + 13 * - COUNT( * ) DIV - MIN( DISTINCT + + 70 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + 13 * - COUNT ( * ) / - MIN ( DISTINCT + + 70 ) AS col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - ( 60 ) * + 80 col1 FROM tab1
----
283200
326400
460800

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT DISTINCT + col1 DIV 9 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT + col1 / 9 FROM tab2
----
5
7
8

query II rowsort
SELECT + ( - col2 ) AS col0, col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query II rowsort
SELECT ALL 42, + 74 AS col0 FROM tab2
----
42
74
42
74
42
74

query II rowsort
SELECT ALL - col0, + 9 * + + 56 FROM tab2 cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT - 38 + - + col2 FROM tab0 AS cor0
----
-137
-48
-85

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE 80 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * - + col2 col0 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + - col0 - + col1 + col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 29 + - + col0 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-121
-63
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT - 99 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4434
SELECT - 99 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT + 69 + + COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + 69 + + COUNT ( * ) FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT col1 + + - 20 AS col0 FROM tab1 AS cor0
----
-15
-6
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + ( - + 12 ) + + + COUNT( * ) - + CAST( NULL AS SIGNED ) + 88 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + ( - + 12 ) + + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + 88 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + 97 - + - col1 * 30 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col2 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 75 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL col0 DIV - col2 + - + col1 FROM tab0 AS cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL col0 / - col2 + - + col1 FROM tab0 AS cor0
----
-1
-29
-81

query I rowsort
SELECT col0 * + - col1 * - 6 + + col1 AS col2 FROM tab2 AS cor0
----
14127
29645
30217

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL - 25 - - + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - 25 - - + COUNT ( * ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + col2 * + - col0 + col2 - 95 * + - 40 + - 63 FROM tab2
----
-555
1217
2702

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4446
SELECT DISTINCT - col2 * + + 19 * + col2 * - + CAST( NULL AS DECIMAL ) - - 47 * - + 37 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - col2 * + + 19 * + col2 * - + CAST ( NULL AS REAL ) - - 47 * - + 37 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + 28 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + 28 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + COUNT( * ) * + - 10 * - + COUNT( DISTINCT - col0 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4448
SELECT + COUNT ( * ) * + - 10 * - + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
90

query II rowsort
SELECT - col0 AS col1, - col2 * + 25 * + 82 FROM tab0 AS cor0
----
-15
-96350
-87
-20500
-97
-202950

query I rowsort
SELECT ALL ( col2 ) * col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - + COUNT( DISTINCT + 19 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - + COUNT ( DISTINCT + 19 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - 96 / 89 * - 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + 96 * - - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + 96 * - - COUNT ( * ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT - col2 * - 12 AS col1 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT ALL ( - - 25 ) * col0 + + col2 AS col0 FROM tab0 AS cor0
----
2185
2524
422

query II rowsort
SELECT DISTINCT - 54, + col2 FROM tab2 AS cor0
----
-54
23
-54
40
-54
58

query II rowsort
SELECT DISTINCT 92, 60 AS col2 FROM tab2
----
92
60

query I rowsort
SELECT 4 * col1 FROM tab0
----
324
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT - 53 DIV 4 col1 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4460
SELECT - 53 / 4 col1 FROM tab1
----
-13
-13
-13

query II rowsort
SELECT - 71, - col1 AS col1 FROM tab2
----
-71
-51
-71
-67
-71
-77

query I rowsort
SELECT DISTINCT 61 * + ( + col2 ) * + + col0 AS col1 FROM tab1 AS cor0
----
298656
305915
377468

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT 0 * + COUNT( + - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT 0 * + COUNT ( + - col2 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 / col2 AND + - ( - + 9 ) * + col2 * 36 * - - col1 - - 39 + - - col1 - - 51 - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab1 cor0
----
12
12
12

query II rowsort
SELECT ALL + + col0 + 69 AS col0, col0 FROM tab0 AS cor0
----
156
87
166
97
84
15

query I rowsort
SELECT ALL 1 + - - ( - 91 ) FROM tab0 AS cor0
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 93 + + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT col2 * CAST( - col2 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 * CAST ( - col2 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT ALL - 73 + 85 AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT ( col1 ) + - 54 + 38 * - col2 FROM tab2
----
-1497
-2191
-877

query I rowsort
SELECT DISTINCT - 77 - - + 7 AS col1 FROM tab2
----
-70

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab0 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 14 FROM tab1 cor0
----
-14

query II rowsort
SELECT col0, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + ( + + col2 ) AS col0, + col1 col0 FROM tab0 AS cor0
----
705
81
870
21
9603
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4477
SELECT * FROM tab1 cor0 WHERE col1 * + CAST( NULL AS DECIMAL ) * + col0 + - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4477
SELECT * FROM tab1 cor0 WHERE col1 * + CAST ( NULL AS REAL ) * + col0 + - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col1 ) * - + 18 + - + col1 IS NULL
----

query I rowsort
SELECT ALL + ( ( + col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) + col2 )
----

query II rowsort
SELECT + ( col1 ), + 15 FROM tab0 AS cor0
----
1
15
21
15
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT - col0 * 8 DIV - + col2 - + col1 col0 FROM tab0 cor0
----
-79
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4482
SELECT - col0 * 8 / - + col2 - + col1 col0 FROM tab0 cor0
----
-79
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT COUNT( DISTINCT + col2 ) * - 92 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-276

skipif mysql # not compatible
query I rowsort label-4483
SELECT COUNT ( DISTINCT + col2 ) * - 92 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL + CAST( + 40 AS SIGNED ) + - - COUNT( * ) FROM tab1 WHERE NOT + - col1 - + 58 NOT BETWEEN NULL AND 81
----
40

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + CAST ( + 40 AS INTEGER ) + - - COUNT ( * ) FROM tab1 WHERE NOT + - col1 - + 58 NOT BETWEEN NULL AND 81
----
40

query I rowsort
SELECT + 16 * 63 * - 12 FROM tab1
----
-12096
-12096
-12096

query I rowsort
SELECT col1 * 11 AS col0 FROM tab0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 67 + - 48 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 67 + - 48 NOT IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 7 * + col1 + - col0 * - 28 FROM tab0
----
15
987
87
2583
97
2723

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT 48 * ( - COUNT( * ) ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT 48 * ( - COUNT ( * ) ) FROM tab0
----
-144

query II rowsort
SELECT + 55 AS col2, col0 FROM tab0 AS cor0
----
55
15
55
87
55
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT - + CAST( - 61 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - + CAST ( - 61 AS INTEGER ) / col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT DISTINCT - COUNT( * ) * - CAST( - 81 AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - COUNT ( * ) * - CAST ( - 81 AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
-240

query I rowsort
SELECT DISTINCT + 66 * 85 AS col1 FROM tab1
----
5610

query I rowsort
SELECT 12 + - col2 * - + col1 FROM tab2 AS cor0
----
1185
3092
3898

query I rowsort
SELECT - 84 + + - col0 - - + col0 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT + col2 * col1 + + ( - col1 ) FROM tab0 AS cor0
----
189
3726
98

query II rowsort
SELECT - col1 AS col1, + 66 AS col0 FROM tab0 AS cor0
----
-1
66
-21
66
-81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL - 44 + - MAX( + col0 ) AS col0 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - 44 + - MAX ( + col0 ) AS col0 FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL SUM( + col2 ) + + 2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL SUM ( + col2 ) + + 2 FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + 34 - + + 63 * - SUM( DISTINCT + - 57 ) FROM tab0
----
-3557

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 34 - + + 63 * - SUM ( DISTINCT + - 57 ) FROM tab0
----
-3557

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT - 11 - + ( COUNT( * ) ) AS col1 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - 11 - + ( COUNT ( * ) ) AS col1 FROM tab0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT - col2 - + col2 DIV + - 11 AS col1 FROM tab2
----
-21
-37
-53

skipif mysql # not compatible
query I rowsort label-4502
SELECT - col2 - + col2 / + - 11 AS col1 FROM tab2
----
-21
-37
-53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - ( - 18 ) - - col0 FROM tab0
----
105
115
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT - COUNT( * ) AS col0, 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
57

skipif mysql # not compatible
query II rowsort label-4506
SELECT - COUNT ( * ) AS col0, 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT 54 + + + 28 + 54 + - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
127

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT 54 + + + 28 + 54 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
127

query I rowsort
SELECT - col1 * - col2 * - - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT 96 - - COUNT( * ) + - ( 49 ) - + - COUNT( * ) DIV - 34 FROM tab0, tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4509
SELECT 96 - - COUNT ( * ) + - ( 49 ) - + - COUNT ( * ) / - 34 FROM tab0, tab0 AS cor0
----
56

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT - + COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - + COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4512
SELECT CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + MAX( ALL + 68 ) AS col2 FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + MAX ( ALL + 68 ) AS col2 FROM tab1 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + COUNT( - + 87 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + COUNT ( - + 87 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 86 FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL
----
86
86
86

query I rowsort
SELECT DISTINCT - + 65 + - + col1 / + 11 FROM tab0 AS cor0 WHERE NOT 7 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT - CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4517
SELECT - CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4519
SELECT col2 DIV - - col1 AS col0, col0 FROM tab1
----
1
91
11
85
6
51

skipif mysql # not compatible
query II rowsort label-4519
SELECT col2 / - - col1 AS col0, col0 FROM tab1
----
1
91
11
85
6
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 7 * - + col1 AS col0 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT - MIN( ALL 86 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - MIN ( ALL 86 ) FROM tab0
----
-86

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - 4 * - col0 BETWEEN NULL AND + - 90
----

query I rowsort
SELECT ALL - col1 * + 15 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL col1 * + + 73 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT MAX( 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT MAX ( 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT - ( + - 96 ) * - + COUNT( * ) AS col0 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - ( + - 96 ) * - + COUNT ( * ) AS col0 FROM tab2
----
-288

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < ( + 73 )
----

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - MIN( DISTINCT col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4530
SELECT - MIN ( DISTINCT col1 ) FROM tab0 cor0
----
-1

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 + + - 72 AS col1 FROM tab1 AS cor0
----
-59
-13
-68
-4
-96
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT COUNT( * ) + CAST( + - 16 AS SIGNED ) * - + COUNT( * ) * + + 22 FROM tab0 AS cor0
----
1059

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT COUNT ( * ) + CAST ( + - 16 AS INTEGER ) * - + COUNT ( * ) * + + 22 FROM tab0 AS cor0
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COUNT( * ) - + + 29 col2 FROM tab0 cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT - COUNT ( * ) - + + 29 col2 FROM tab0 cor0
----
-32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT - - 67 + - col0 + 48 DIV + col1 col2 FROM tab1 AS cor0
----
-23
-9
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4535
SELECT - - 67 + - col0 + 48 / + col1 col2 FROM tab1 AS cor0
----
-23
-9
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + SUM( + col1 ) col1 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4536
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + SUM ( + col1 ) col1 FROM tab2 AS cor0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - - col2 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT 18 * - COUNT( * ) + - CAST( - 80 AS SIGNED ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4538
SELECT 18 * - COUNT ( * ) + - CAST ( - 80 AS INTEGER ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT + col2 + 63 AS col2 FROM tab0 AS cor0
----
110
162
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT + - SUM( col0 ) + - CAST( - COUNT( * ) AS SIGNED ) * - 47 + + + ( - + 24 ) AS col1 FROM tab1 AS cor0
----
-392

skipif mysql # not compatible
query I rowsort label-4540
SELECT + - SUM ( col0 ) + - CAST ( - COUNT ( * ) AS INTEGER ) * - 47 + + + ( - + 24 ) AS col1 FROM tab1 AS cor0
----
-392

query I rowsort
SELECT + - 43 FROM tab2 AS cor0 WHERE ( + 75 ) <> - - col1
----
-43
-43
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT - CAST( COUNT( * ) AS SIGNED ) + + + 76 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4542
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + + + 76 FROM tab2
----
73

query I rowsort
SELECT ALL col1 + + + 75 * col2 AS col1 FROM tab0
----
3606
7426
771

query I rowsort
SELECT 60 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 29 ) col1 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + SUM( - ( col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-4546
SELECT + SUM ( - ( col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT 43 * - SUM( ALL + 26 ) FROM tab0 AS cor0
----
-3354

skipif mysql # not compatible
query I rowsort label-4547
SELECT 43 * - SUM ( ALL + 26 ) FROM tab0 AS cor0
----
-3354

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT + SUM( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + SUM ( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT DISTINCT - + 83 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-83
3

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT - + 83 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-83
3

query II rowsort
SELECT DISTINCT + + col2 AS col0, + 58 AS col1 FROM tab0 WHERE ( - col1 ) <= ( NULL )
----

query I rowsort
SELECT + + 65 AS col1 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT + col2 * + + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - - 80 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT - col0 + - - 87 FROM tab1 AS cor0
----
-4
2
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT - 28 + + - col0 * + col0 DIV ( col0 ) FROM tab0 AS cor0
----
-115
-125
-43

skipif mysql # not compatible
query I rowsort label-4555
SELECT - 28 + + - col0 * + col0 / ( col0 ) FROM tab0 AS cor0
----
-115
-125
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab2
----
73

query I rowsort
SELECT - col1 - + col2 + + + col0 + - col2 AS col0 FROM tab2 WHERE NOT - col2 BETWEEN col0 AND NULL
----
-108
-51
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL + SUM( DISTINCT 51 ) + - ( - + ( + COUNT( * ) ) ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + SUM ( DISTINCT 51 ) + - ( - + ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
54

query II rowsort
SELECT DISTINCT 86 AS col2, + 77 FROM tab0
----
86
77

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL COUNT( * ) * - 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL COUNT ( * ) * - 97 FROM tab1
----
-291

query I rowsort
SELECT ALL + ( - 55 ) AS col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT - ( + - ( - - ( 91 ) ) ) FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL - + 81 + - COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - + 81 + - COUNT ( * ) FROM tab0 AS cor0
----
-84

query I rowsort
SELECT + - 9 * + col2 AS col0 FROM tab2 AS cor0
----
-207
-360
-522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4566
SELECT + col2 * + + 49 AS col2, CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
2891
-85
3332
-91
4704
-51

skipif mysql # not compatible
query II rowsort label-4566
SELECT + col2 * + + 49 AS col2, CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
2891
-85
3332
-91
4704
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT DISTINCT - ( + CAST( col1 AS SIGNED ) ) * + + 12 + - 85 FROM tab2 AS cor0 WHERE NOT 80 * - 83 * - + CAST( + col0 AS SIGNED ) + CAST( + + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - ( + CAST ( col1 AS INTEGER ) ) * + + 12 + - 85 FROM tab2 AS cor0 WHERE NOT 80 * - 83 * - + CAST ( + col0 AS INTEGER ) + CAST ( + + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT DISTINCT + col0 DIV 27 + col1 AS col2 FROM tab0 AS cor0
----
24
4
81

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + col0 / 27 + col1 AS col2 FROM tab0 AS cor0
----
24
4
81

query I rowsort
SELECT ALL + col2 * - + col2 * - ( + + col0 ) AS col2 FROM tab0 cor0
----
33135
8700
950697

query I rowsort
SELECT 31 - + - col0 FROM tab1
----
116
122
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT col0 - + ( - col1 ) DIV col0 col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT col0 - + ( - col1 ) / col0 col1 FROM tab1
----
51
85
91

query II rowsort
SELECT ALL col2 AS col2, ( + col0 ) FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + MAX( + 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4573
SELECT + MAX ( + 7 ) FROM tab1
----
7

query I rowsort
SELECT DISTINCT + - 44 * col2 * - 45 AS col0 FROM tab2 AS cor0
----
114840
45540
79200

query I rowsort
SELECT 66 * + 42 * - col0 * 39 FROM tab1 AS cor0
----
-5513508
-9189180
-9837828

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - 41 * - + ( - CAST( col0 AS DECIMAL ) ) + col2 <= - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - 41 * - + ( - CAST ( col0 AS REAL ) ) + col2 <= - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4577
SELECT CAST( NULL AS SIGNED ), col1 col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4577
SELECT CAST ( NULL AS INTEGER ), col1 col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36, - 83 col0 FROM tab1
----
36
-83
36
-83
36
-83

query II rowsort
SELECT ALL - col2 AS col0, - ( + + col2 ) AS col1 FROM tab1
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 85 AS col1, - col1 col0 FROM tab1 AS cor0
----
-85
-14
-85
-47
-85
-5

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL - 37 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 61 AND NULL
----

query I rowsort
SELECT DISTINCT 22 + + col1 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT + ( + + 85 ) * - 43 + CAST( + + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT + ( + + 85 ) * - 43 + CAST ( + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ( MAX( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4586
SELECT ( MAX ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + COUNT( * ) + + 99 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + COUNT ( * ) + + 99 FROM tab2 AS cor0
----
102

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 + + 89 + + col2 + + 82 * - col0 <> NULL
----

query I rowsort
SELECT ( col0 ) * - - 33 AS col0 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT 27 * + ( col2 ) + + ( col0 ) AS col1, - col1 AS col1 FROM tab2
----
1144
-77
1641
-67
667
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT - 19 * MIN( ALL + CAST( ( - + col1 ) AS SIGNED ) ) + - 93 AS col2 FROM tab2
----
1370

skipif mysql # not compatible
query I rowsort label-4592
SELECT - 19 * MIN ( ALL + CAST ( ( - + col1 ) AS INTEGER ) ) + - 93 AS col2 FROM tab2
----
1370

query I rowsort
SELECT DISTINCT ( + col0 ) + + col1 - 2 AS col1 FROM tab1 AS cor0
----
136
63
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - - col0 * - 73 + + 98 > NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 54 AS col2, + col1 FROM tab1
----
-54
14
-54
47
-54
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + + col0
----

query I rowsort
SELECT - 98 + - + col1 + col0 FROM tab1 AS cor0
----
-18
-54
-61

query I rowsort
SELECT - col0 + + 70 AS col2 FROM tab0 AS cor0
----
-17
-27
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT - COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4599
SELECT - COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT + 68 * - + col0 FROM tab2 WHERE NOT ( + + 14 * - 76 / ( + - 49 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT - col1 DIV 8 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - col1 / 8 / - col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT ( + SUM( ALL col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT ( + SUM ( ALL col0 ) ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT 55 + - 99 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-4603
SELECT 55 + - 99 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - SUM( - 72 ) * - 37 AS col2 FROM tab1 AS cor0
----
-7992

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - SUM ( - 72 ) * - 37 AS col2 FROM tab1 AS cor0
----
-7992

query I rowsort
SELECT - 63 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + COUNT( * ) * + 71 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-4606
SELECT + COUNT ( * ) * + 71 FROM tab2 cor0
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT DISTINCT + + col2 DIV - 52 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT + + col2 / - 52 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT - col2 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT - col2 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 4 AS col1 FROM tab2 AS cor0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT - 9 + + + SUM( DISTINCT + + 56 ), 86 * - 95 AS col0 FROM tab0 AS cor0
----
47
-8170

skipif mysql # not compatible
query II rowsort label-4610
SELECT - 9 + + + SUM ( DISTINCT + + 56 ), 86 * - 95 AS col0 FROM tab0 AS cor0
----
47
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + COUNT( * ) * + ( - 11 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + COUNT ( * ) * + ( - 11 ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL + + 19 + - col1 FROM tab2 AS cor0
----
-32
-48
-58

query I rowsort
SELECT + - col2 + 83 AS col2 FROM tab0 AS cor0
----
-16
36
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 24 + - col2 AS col0 FROM tab1 AS cor0
----
-120
-83
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - - 19 + + COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4616
SELECT - - 19 + + COUNT ( * ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT COUNT( * ) + + 38 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT COUNT ( * ) + + 38 FROM tab1 AS cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL 38 * CAST( + 37 AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
1409

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL 38 * CAST ( + 37 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
1409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4619
SELECT * FROM tab0 WHERE - + CAST( + col0 AS SIGNED ) - + col0 / + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4619
SELECT * FROM tab0 WHERE - + CAST ( + col0 AS INTEGER ) - + col0 / + - col1 IS NULL
----

query I rowsort
SELECT ALL + col2 + + + col2 AS col0 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col0 * + 45 AS col2 FROM tab2
----
-46
-2070
-64
-2880
-75
-3375

query I rowsort
SELECT DISTINCT col1 * - col0 * - + 85 AS col2 FROM tab0
----
103275
155295
8245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT ALL CAST( - col1 AS SIGNED ) * + col1 * - - col1 AS col0, col1 FROM tab0
----
-1
1
-531441
81
-9261
21

skipif mysql # not compatible
query II rowsort label-4623
SELECT ALL CAST ( - col1 AS INTEGER ) * + col1 * - - col1 AS col0, col1 FROM tab0
----
-1
1
-531441
81
-9261
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT 40 * col2 * + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT 40 * col2 * + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4625
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ( - COUNT( - + 54 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4626
SELECT ( - COUNT ( - + 54 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT COUNT( * ) * + 64 AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-4627
SELECT COUNT ( * ) * + 64 AS col1 FROM tab0
----
192

query I rowsort
SELECT col0 * + 86 AS col0 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT + 35 - + + col2 + - + 51 + + - col2 AS col0 FROM tab0 cor0
----
-110
-214
-36

query I rowsort
SELECT DISTINCT - - 85 + - 10 FROM tab1 cor0
----
75

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= 25 + + + col1
----

query I rowsort
SELECT ALL 63 - + col1 FROM tab1
----
16
49
58

query I rowsort
SELECT + 71 * - - col0 AS col2 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT ALL col1 - + col1 * + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 85 + + + 87 col1 FROM tab2 AS cor0
----
3997
5527
6462

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - ( - COUNT( * ) ) * - - 55 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - ( - COUNT ( * ) ) * - - 55 FROM tab0 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT MIN( DISTINCT - - 64 ) AS col0 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT MIN ( DISTINCT - - 64 ) AS col0 FROM tab2 cor0
----
64

query I rowsort
SELECT DISTINCT 95 * - 12 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 53 - + ( col2 ) AND + ( - col2 ) * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT COUNT( * ) * + - COUNT( * ) DIV - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4639
SELECT COUNT ( * ) * + - COUNT ( * ) / - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + SUM( DISTINCT - - ( + + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4640
SELECT + SUM ( DISTINCT - - ( + + col1 ) ) FROM tab0
----
103

query II rowsort
SELECT col1, 77 * + + 58 * + + col2 AS col2 FROM tab2
----
51
102718
67
259028
77
178640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT CAST( NULL AS SIGNED ) / + - ( COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT CAST ( NULL AS INTEGER ) / + - ( COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT MAX( ALL + col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4643
SELECT MAX ( ALL + col1 ) col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 78 / + col1 BETWEEN NULL AND + + col0 * - + 0
----

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL ( 84 ) + - col1 FROM tab1
----
37
70
79

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - + 65 BETWEEN + 91 AND ( col0 )
----

query I rowsort
SELECT ALL + col0 * col1 + + ( col2 ) * col0 AS col1 FROM tab1
----
10465
5440
5610

query I rowsort
SELECT col2 + + 60 AS col0 FROM tab2
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT 0 * 63 + + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT 0 * 63 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 72 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 91
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN + 70 - - ( - col0 ) AND 25
----
15
81
47
97
1
99

query I rowsort
SELECT ALL ( 47 ) FROM tab1
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4656
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN col2 * col0 AND col1 - - 97
----

skipif mysql # not compatible
query III rowsort label-4656
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN col2 * col0 AND col1 - - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - ( ( COUNT( * ) ) ) + 1 * - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4657
SELECT - ( ( COUNT ( * ) ) ) + 1 * - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + ( + col1 ) + - col1 DIV - ( col0 * - col1 + col1 * 60 ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT + ( + col1 ) + - col1 / - ( col0 * - col1 + col1 * 60 ) col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / - col0 = ( NULL )
----

query I rowsort
SELECT - 75 * - col1 AS col0 FROM tab1
----
1050
3525
375

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT + 24 + + COUNT( * ) AS col1 FROM tab1 WHERE + col2 - col1 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + 24 + + COUNT ( * ) AS col1 FROM tab1 WHERE + col2 - col1 IS NULL
----
24

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + col1 >= ( - col1 )
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 19 ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN ( 64 ) AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT MIN( - col1 ) * 78 AS col2 FROM tab2
----
-6006

skipif mysql # not compatible
query I rowsort label-4666
SELECT MIN ( - col1 ) * 78 AS col2 FROM tab2
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + MIN( DISTINCT col0 ) * - 45 AS col0 FROM tab0
----
-675

skipif mysql # not compatible
query I rowsort label-4667
SELECT + MIN ( DISTINCT col0 ) * - 45 AS col0 FROM tab0
----
-675

query I rowsort
SELECT 39 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 62 FROM tab0 WHERE ( + 89 ) IS NOT NULL
----
149
159
77

query I rowsort
SELECT col0 * col2 - + 96 AS col2 FROM tab1
----
4800
4919
6092

query I rowsort
SELECT 11 FROM tab1 WHERE 42 / + col1 IS NULL
----

query I rowsort
SELECT + col1 * + 76 FROM tab0
----
1596
6156
76

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT ( col0 ) DIV 37 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4674
SELECT ( col0 ) / 37 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT 72 + + 13 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + col2 + - col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4677
SELECT ALL - 0 * ( + COUNT( ALL col2 ) ) AS col1 FROM tab2 WHERE col1 + - col0 NOT BETWEEN + col2 AND CAST( + 94 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - 0 * ( + COUNT ( ALL col2 ) ) AS col1 FROM tab2 WHERE col1 + - col0 NOT BETWEEN + col2 AND CAST ( + 94 AS REAL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 >= ( col1 + + col1 )
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4679
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( col1 * col1 + 37 )
----

skipif mysql # not compatible
query III rowsort label-4679
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col1 * col1 + 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT 72 * SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-8712

skipif mysql # not compatible
query I rowsort label-4681
SELECT 72 * SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - 55 * MIN( DISTINCT 29 ) col1 FROM tab1 AS cor0
----
-1595

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT - 55 * MIN ( DISTINCT 29 ) col1 FROM tab1 AS cor0
----
-1595

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > 62
----

query I rowsort
SELECT 23 * col0 AS col2 FROM tab0 cor0
----
2001
2231
345

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 28 + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 31 + - 76 >= + col2
----
-3

skipif mysql # not compatible
query I rowsort label-4686
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 31 + - 76 >= + col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4687
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1 * 71
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4687
SELECT - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1 * 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 25 * SUM( col1 ) FROM tab2 WHERE NOT col1 / + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 25 * SUM ( col1 ) FROM tab2 WHERE NOT col1 / + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 WHERE NOT ( - ( col0 ) ) IN ( col1 * 96 + col1 * 37 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + MIN( + 11 ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4690
SELECT + MIN ( + 11 ) AS col1 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT SUM( DISTINCT + 59 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4691
SELECT SUM ( DISTINCT + 59 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT - col1 + - 79 FROM tab0 WHERE NOT ( NULL ) IN ( - col1 + - 84 )
----

query I rowsort
SELECT ALL 51 * - col2 AS col1 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + COUNT( ALL - ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( ALL - ( + col2 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE col0 * + col1 = ( + 32 * + 70 )
----

query I rowsort
SELECT col1 * - ( 63 ) FROM tab2 AS cor0
----
-3213
-4221
-4851

query I rowsort
SELECT 46 * - - col0 AS col1 FROM tab0 AS cor0
----
4002
4462
690

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL 47 AS col1, - 51 AS col0 FROM tab1
----
47
-51
47
-51
47
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - - COUNT( * ) + MAX( - col1 ) FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4701
SELECT - - COUNT ( * ) + MAX ( - col1 ) FROM tab1 cor0
----
-2

query I rowsort
SELECT + 40 + + col0 AS col2 FROM tab0 cor0
----
127
137
55

query I rowsort
SELECT + - col1 * col0 + 57 - - col0 AS col1 FROM tab1 AS cor0
----
-283
-4129
-606

query II rowsort
SELECT DISTINCT col2 AS col2, + 76 AS col0 FROM tab1 AS cor0
----
59
76
68
76
96
76

query I rowsort
SELECT + - col0 + 34 + + - 53 FROM tab2 AS cor0
----
-65
-83
-94

query I rowsort
SELECT ALL 71 * col1 + - + col0 - 87 AS col1 FROM tab1 cor0
----
183
3159
856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT + 54 + 26 + + SUM( DISTINCT + col1 ) DIV COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
182

skipif mysql # not compatible
query I rowsort label-4707
SELECT + 54 + 26 + + SUM ( DISTINCT + col1 ) / COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4709
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4709
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST ( NULL AS REAL )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE - col2 * - col1 * col0 + 99 BETWEEN col2 AND 54
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 71
----

query I rowsort
SELECT col0 + ( col1 - + col0 ) AS col0 FROM tab0 WHERE ( col2 ) <> col0
----
1
21
81

query I rowsort
SELECT + 16 FROM tab1 WHERE - col0 = col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + - 51 ) * 84 + + 38 col2 FROM tab1
----
218522
364178
389882

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 70 * - col1 FROM tab0
----
1470
5670
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT ALL ( + - col0 ) - - 4 DIV - 38 + 95 AS col0 FROM tab0
----
-2
8
80

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL ( + - col0 ) - - 4 / - 38 + 95 AS col0 FROM tab0
----
-2
8
80

query I rowsort
SELECT col1 - + - col0 + + 38 FROM tab2
----
135
179
180

query I rowsort
SELECT - ( - + col2 ) - - - col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - - 56 + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - - 56 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL COUNT( * ) * - - 1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL COUNT ( * ) * - - 1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT - col2 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4723
SELECT - col2 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL 16 / col0, - col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 45 AS col0 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + - 70 > NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 <= + - col1 * - + 2
----
-99

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + 85 BETWEEN ( ( + + col2 ) ) AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + 85 BETWEEN ( ( + + col2 ) ) AND - col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT DISTINCT 20, MAX( ALL - + col0 ) - - + COUNT( * ) AS col0 FROM tab0
----
20
-12

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT 20, MAX ( ALL - + col0 ) - - + COUNT ( * ) AS col0 FROM tab0
----
20
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT + 41 DIV + + 98 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT + 41 / + + 98 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT 2 DIV + - col2 * + + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT 2 / + - col2 * + + col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col1 + col2 NOT IN ( + 16 * ( + 38 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 / - 29 AS col2 FROM tab1 WHERE col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - 46 + - col1 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col2 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL MIN( - col2 ) FROM tab2 AS cor0 WHERE col0 / - 88 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL MIN ( - col2 ) FROM tab2 AS cor0 WHERE col0 / - 88 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 15 * + col2 col2 FROM tab1 AS cor0
----
-1389
-800
-929

query II rowsort
SELECT col1 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4743
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IN ( + 74, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-4743
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IN ( + 74, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ( CAST( - ( col0 ) AS SIGNED ) ) FROM tab2 WHERE col1 * + 31 * - col1 + 10 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4744
SELECT ( CAST ( - ( col0 ) AS INTEGER ) ) FROM tab2 WHERE col1 * + 31 * - col1 + 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT + + CAST( - 14 AS SIGNED ) - + 4 + + col0 + + col0 * + - 95 + 21 AS col2 FROM tab1 AS cor0
----
-4791
-7987
-8551

skipif mysql # not compatible
query I rowsort label-4745
SELECT + + CAST ( - 14 AS INTEGER ) - + 4 + + col0 + + col0 * + - 95 + 21 AS col2 FROM tab1 AS cor0
----
-4791
-7987
-8551

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col1 * col2 / - + col0 + - col1 / + col2 <> + 62
----
23
40
58

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE - 49 * col1 BETWEEN 18 AND ( + - col0 )
----

query I rowsort
SELECT - col0 + + + 76 AS col0 FROM tab1 AS cor0
----
-15
-9
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT - + col1 + - col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1296
-1848
-98

skipif mysql # not compatible
query I rowsort label-4749
SELECT - + col1 + - col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT + 85 / + col2 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col0 NOT IN ( + + 33 + 48 * + col0 ) )
----

query I rowsort
SELECT - - ( - col2 ) + - col2 AS col0 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT 94 + - 62 FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT MIN( ALL - + col1 ) AS col0 FROM tab1 WHERE + 30 + col0 > - + 76
----
-47

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT MIN ( ALL - + col1 ) AS col0 FROM tab1 WHERE + 30 + col0 > - + 76
----
-47

query I rowsort
SELECT + 82 * col0 + ( + 61 ) AS col2 FROM tab1
----
4243
7031
7523

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col0 / - 59 ) NOT IN ( col2 * + + col2 )
----

query I rowsort
SELECT - col1 + 64 * - col2 AS col2 FROM tab1
----
-3781
-4399
-6158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) / - - col2 * - 47 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) / - - col2 * - 47 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( - - 62 ) AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL + 34 * - ( 53 ) - - col0 + - - 13 + - CAST( + col0 AS SIGNED ) + - + col2 * + col2 col0 FROM tab0
----
-11590
-1889
-3998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4759
SELECT ALL + 34 * - ( 53 ) - - col0 + - - 13 + - CAST ( + col0 AS INTEGER ) + - + col2 * + col2 col0 FROM tab0
----
-11590
-1889
-3998

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT + CAST( col0 AS SIGNED ) * 78 AS col2 FROM tab2 AS cor0
----
3588
4992
5850

skipif mysql # not compatible
query I rowsort label-4761
SELECT + CAST ( col0 AS INTEGER ) * 78 AS col2 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT COUNT( * ) * + CAST( - 25 AS SIGNED ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT COUNT ( * ) * + CAST ( - 25 AS INTEGER ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - - ( + COUNT( * ) ) * 28 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - - ( + COUNT ( * ) ) * 28 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL - 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT 74 DIV + 29 - 80 FROM tab1, tab0 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif mysql # not compatible
query I rowsort label-4765
SELECT 74 / + 29 - 80 FROM tab1, tab0 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT DISTINCT - ( - col0 ) FROM tab1 WHERE NULL IN ( + col2 * - + 29, - col1, col0 * + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - ( - col0 ) FROM tab1 WHERE NULL IN ( + col2 * - + 29, - col1, col0 * + CAST ( col1 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 77 col1 FROM tab1 AS cor0
----
3927
6545
7007

query I rowsort
SELECT - 90 * col1 AS col0 FROM tab2 cor0
----
-4590
-6030
-6930

query I rowsort
SELECT ALL ( - col2 ) * - 79 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT + ( - 32 ) * - col1 FROM tab2 AS cor0
----
1632
2144
2464

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - + col0 * + 27 FROM tab0 AS cor0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - - 75 * + MIN( - col2 ) AS col0 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
-7425

skipif mysql # not compatible
query I rowsort label-4774
SELECT - - 75 * + MIN ( - col2 ) AS col0 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
-7425

query I rowsort
SELECT DISTINCT - ( + col0 ) * - ( + - col2 ) FROM tab0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL + col2, + col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT IN ( - 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2 AS col1, - col1 * - col0, - col2 col0 FROM tab0
----
9 values hashing to 59ba40d956e5e5df71d0abde85fbdf80

query I rowsort
SELECT ( + - 24 ) AS col2 FROM tab1
----
-24
-24
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT ALL col1 + - col0 - + 25 - - col2 DIV - 2 * - col1 DIV - ( + + col1 ) FROM tab2
----
-31
-32
-62

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL col1 + - col0 - + 25 - - col2 / - 2 * - col1 / - ( + + col1 ) FROM tab2
----
-31
-32
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4781
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) + + col2 ) > col2
----

skipif mysql # not compatible
query III rowsort label-4781
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) + + col2 ) > col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4782
SELECT - + col1 + + + CAST( NULL AS DECIMAL ) + - - col2 * + + col2, 8 AS col1 FROM tab2 AS cor0
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-4782
SELECT - + col1 + + + CAST ( NULL AS REAL ) + - - col2 * + + col2, 8 AS col1 FROM tab2 AS cor0
----
NULL
8
NULL
8
NULL
8

query I rowsort
SELECT ALL col1 * - col1 + + 10 - + - col2 + 10 AS col1 FROM tab1 AS cor0
----
-2121
-80
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + - COUNT( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4784
SELECT + - COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4785
SELECT * FROM tab0 AS cor0 WHERE + col2 / - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4785
SELECT * FROM tab0 AS cor0 WHERE + col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4786
SELECT ALL - + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + ( ( - - COUNT( * ) ) ) - 26 AS col1 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4787
SELECT + ( ( - - COUNT ( * ) ) ) - 26 AS col1 FROM tab1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 - 11 + 44 * - ( - col0 ) - + col2 * col1 col1 FROM tab2
----
-304
-626
811

query I rowsort
SELECT ALL - 40 - + + 70 + - - col1 FROM tab1
----
-105
-63
-96

query II rowsort
SELECT ALL + col0 * + col0 AS col2, - col1 FROM tab2
----
2116
-51
4096
-77
5625
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 30 + + col1
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - - + 63 * + + 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * 90 AS col2 FROM tab2
----
105570
277200
349740

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - 79 AND - col2 - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 / + col2 * ( + ( - 81 ) ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT ALL COUNT( * ) DIV - 5 * + 98 * - + 68 + ( + + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL COUNT ( * ) / - 5 * + 98 * - + 68 + ( + + COUNT ( * ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT + 96 AS col1, ( - - col1 ) + + col2 FROM tab1 AS cor0
----
96
110
96
115
96
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * 95 / - col2 NOT BETWEEN col2 AND + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT SUM( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT SUM ( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL 74 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NOT + ( + 27 ) + - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - ( 71 ) FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT CAST( col1 AS SIGNED ) * - - 8 AS col0 FROM tab0
----
168
648
8

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - - 8 AS col0 FROM tab0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT COUNT( * ) + + + 10 AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( * ) + + + 10 AS col0 FROM tab1
----
13

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= + ( - col1 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL 35 * - COUNT( * ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 35 * - COUNT ( * ) FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - MIN( ALL + 49 ) AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - MIN ( ALL + 49 ) AS col1 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - 94 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - 94 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - 80 * COUNT( * ) * + 90 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-583200

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 80 * COUNT ( * ) * + 90 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-583200

query I rowsort
SELECT ALL + col2 - + 11 FROM tab2
----
12
29
47

query II rowsort
SELECT ALL col2, col2 * + - col1 FROM tab2 cor0
----
23
-1173
40
-3080
58
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 87 col2 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - 9 * - col0 - + - col2 - - col2 NOT IN ( - 13 )
----

query I rowsort
SELECT 15 + col2 AS col0 FROM tab2 AS cor0
----
38
55
73

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( 65 - - col0 )
----

query I rowsort
SELECT - 67 + + - col0 AS col1 FROM tab1 AS cor0
----
-118
-152
-158

query I rowsort
SELECT + 9 * + 13 * 34 + 21 FROM tab0 AS cor0
----
3999
3999
3999

query III rowsort
SELECT * FROM tab2 WHERE + - col2 <= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - 20 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= 45
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + - col2 <= + - col2
----

query II rowsort
SELECT ALL 62 AS col1, col2 + + col0 FROM tab2
----
62
104
62
133
62
69

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 / - col1 ) > NULL
----

query II rowsort
SELECT DISTINCT + - 23, + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-23
1215
-23
1827
-23
97

query II rowsort
SELECT DISTINCT + - col1 AS col2, + ( + col0 ) FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + ( + - 16 ) FROM tab1 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 90 col2 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 64 * + col2 FROM tab1
----
-3776
-4352
-6144

query I rowsort
SELECT - col1 * - - 23 FROM tab2
----
-1173
-1541
-1771

query I rowsort
SELECT ( + - 91 ) FROM tab2
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + + 50 * ( 5 ) AS col2 FROM tab2 AS cor0
----
250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT ALL - COUNT( * ) DIV - - 50 + COUNT( + col0 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - COUNT ( * ) / - - 50 + COUNT ( + col0 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE ( col0 * + col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL - 60 / - 84 * 73 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - 60 / - 84 * 73 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( + col2 ) AS col2, 99 AS col1 FROM tab2 AS cor0
----
23
99
40
99
58
99

query I rowsort
SELECT ALL + col1 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL - 73 + - + MIN( ALL - + col0 ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - 73 + - + MIN ( ALL - + col0 ) AS col2 FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-4841
SELECT DISTINCT 54 * - + 7 + - col1, - col0 + + col0 DIV + 25 col0 FROM tab0
----
-379
-94
-399
-84
-459
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4841
SELECT DISTINCT 54 * - + 7 + - col1, - col0 + + col0 / + 25 col0 FROM tab0
----
-379
-94
-399
-84
-459
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT COUNT( * ) DIV 59 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT COUNT ( * ) / 59 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 80 IS NULL )
----

query I rowsort
SELECT + col0 * + 67 AS col2 FROM tab1
----
3417
5695
6097

query II rowsort
SELECT DISTINCT + col0 + - col1 + + col2 AS col2, 1 FROM tab2 AS cor0
----
18
1
27
1
66
1

query I rowsort
SELECT ALL - 45 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 + + col0, 89 col2 FROM tab2
----
63
89
81
89
92
89

query I rowsort
SELECT + ( - col2 ) + + + ( - ( 21 ) ) * - - 16 AS col0 FROM tab2
----
-359
-376
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL - - COUNT( * ) * 14 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
126

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - - COUNT ( * ) * 14 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
126

query I rowsort
SELECT + ( - 17 ) FROM tab1
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT CAST( + - COUNT( ALL - col2 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4851
SELECT CAST ( + - COUNT ( ALL - col2 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + col2 * - - col2 - + 56 * - 7 + - 90 + + 99 AS col0 FROM tab1 AS cor0
----
3882
5025
9617

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + - 95 * + 93 * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col0 * - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT + - 95 * + 93 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col0 * - col1 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT + col1 DIV + 52 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4854
SELECT + col1 / + 52 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 33 BETWEEN ( + + col0 ) * - 49 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - MAX( col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - MAX ( col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT 52 AS col0, - COUNT( * ) AS col0 FROM tab2
----
52
-3

skipif mysql # not compatible
query II rowsort label-4858
SELECT 52 AS col0, - COUNT ( * ) AS col0 FROM tab2
----
52
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4859
SELECT + COUNT( * ), CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4859
SELECT + COUNT ( * ), CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
NULL

query I rowsort
SELECT ( - + col0 ) * + col2 + 5 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT COUNT( * ) * - COUNT( col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4861
SELECT COUNT ( * ) * - COUNT ( col2 ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT - 38 + 21 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT 33 + ( + col1 ) FROM tab0 AS cor0
----
114
34
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + 61
----

query I rowsort
SELECT 2 + - col1 * - 99 AS col2 FROM tab1
----
1388
4655
497

query I rowsort
SELECT ALL - 58 * - col0 AS col0 FROM tab1
----
2958
4930
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 24 * + 92 AS col1, 64 col1 FROM tab1
----
2208
64

query I rowsort
SELECT ( col1 ) + + ( col1 ) + - col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4870
SELECT ALL - 13 + + col1 * CAST( + 40 AS SIGNED ) + col2 AS col0, ( col1 ) FROM tab1
----
1935
47
246
5
643
14

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL - 13 + + col1 * CAST ( + 40 AS INTEGER ) + col2 AS col0, ( col1 ) FROM tab1
----
1935
47
246
5
643
14

query I rowsort
SELECT ALL - col0 - + col0 * + + col1 AS col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 17 + col1 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL 49 + - 78 + + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL 49 + - 78 + + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT + - 26 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 - ( - col2 ) col0 FROM tab1
----
120
129
157

query I rowsort
SELECT ALL - col0 * ( 10 ) - - - 41 FROM tab1
----
-551
-891
-951

query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE + + col0 * + + col0 IS NOT NULL
----
-17
-23
-24

query II rowsort
SELECT DISTINCT col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL - col1 * col0 - - col0 * col1 AS col0 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - col1 * col0 - - col0 * col1 AS col0 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query II rowsort
SELECT DISTINCT + col2, + 26 FROM tab1 AS cor0
----
59
26
68
26
96
26

query I rowsort
SELECT - - 34 * - 65 * + 1 AS col0 FROM tab2 AS cor0
----
-2210
-2210
-2210

query I rowsort
SELECT DISTINCT 29 * + col2 FROM tab0 AS cor0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - COUNT( * ) * 34 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4883
SELECT - COUNT ( * ) * 34 FROM tab2 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL CAST( NULL AS SIGNED ) / - col2 * ( + - 92 ) * - + 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 * ( + - 92 ) * - + 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT + 9 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 9 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT DISTINCT - 24 DIV - col2 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - 24 / - col2 AS col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT DISTINCT - 12 DIV - SUM( + 56 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - 12 / - SUM ( + 56 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - 67 * + COUNT( * ) * - ( - COUNT( * ) ) * - COUNT( * ) FROM tab0
----
1809

skipif mysql # not compatible
query I rowsort label-4888
SELECT - 67 * + COUNT ( * ) * - ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab0
----
1809

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - MIN( - + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4889
SELECT - MIN ( - + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT SUM( - + 62 ) AS col1 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4890
SELECT SUM ( - + 62 ) AS col1 FROM tab1 AS cor0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT ALL + 61 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + 61 / + - COUNT ( * ) FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - - MIN( DISTINCT 7 ) col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4893
SELECT DISTINCT - - MIN ( DISTINCT 7 ) col1 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT COUNT( * ) + - + MIN( + 26 ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4894
SELECT COUNT ( * ) + - + MIN ( + 26 ) AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + + COUNT( * ) + + COUNT( 94 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4895
SELECT + + COUNT ( * ) + + COUNT ( 94 ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 * + 24 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 * - col2 AND - col0
----

query I rowsort
SELECT - + 66 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + 42 * 6 * - - 28 - - 20 + - col1 - + col2 * + - ( + - col0 ) AS col2 FROM tab1
----
2056
2166
841

query II rowsort
SELECT col1 AS col1, col1 + + col2 + + col2 FROM tab2
----
51
97
67
183
77
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - MIN( - 54 ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4903
SELECT - MIN ( - 54 ) AS col1 FROM tab0
----
54

query I rowsort
SELECT 5 * col2 AS col2 FROM tab2
----
115
200
290

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT col2 - + 45 DIV - col1 AS col2 FROM tab0
----
12
144
47

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT col2 - + 45 / - col1 AS col2 FROM tab0
----
12
144
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4906
SELECT * FROM tab2 AS cor0 WHERE - col1 * + - col1 + + 37 BETWEEN NULL AND CAST( - 96 AS SIGNED ) AND NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4906
SELECT * FROM tab2 AS cor0 WHERE - col1 * + - col1 + + 37 BETWEEN NULL AND CAST ( - 96 AS INTEGER ) AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + ( + ( ( - + 48 ) ) ) + + - col1 - + - col0 AS col0 FROM tab0 AS cor0
----
-114
18
48

query II rowsort
SELECT DISTINCT + 74 + + col0 - - col2 AS col2, col2 * - 16 + 57 FROM tab1
----
218
-887
221
-1479
233
-1031

query I rowsort
SELECT - + 39 + - ( + - 83 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 68 IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * + col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * - col1 * - 97 FROM tab1 AS cor0
----
-130368
-28615
-310012

query II rowsort
SELECT DISTINCT - - col0 * - col2 AS col2, - 89 AS col1 FROM tab2 AS cor0
----
-1058
-89
-2560
-89
-4350
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT SUM( DISTINCT - ( + col1 ) ) + - 2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT SUM ( DISTINCT - ( + col1 ) ) + - 2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT ALL - 26 DIV - col2 FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - 26 / - col2 FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - 71 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - 71 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 78 * - + col2 FROM tab0 AS cor0
----
3666
7722
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4918
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 * - + 72 AS col1 FROM tab0
----
5544
5544
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT - CAST( - 88 AS SIGNED ) FROM tab2
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4921
SELECT - CAST ( - 88 AS INTEGER ) FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT 76 * col2 FROM tab2
----
1748
3040
4408

query I rowsort
SELECT ALL col1 + - 55 AS col0 FROM tab0 AS cor0
----
-34
-54
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 + col2 * - - 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) * + - 61 AS col0 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) * + - 61 AS col0 FROM tab0 AS cor0
----
183

query I rowsort
SELECT + 43 * ( - - col0 ) FROM tab0
----
3741
4171
645

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 AS col0 FROM tab1 AS cor0 WHERE col1 / ( col0 ) * + - col2 IS NOT NULL
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col0 FROM tab1 cor0
----
-72

query I rowsort
SELECT DISTINCT col0 + + col0 - 85 + 87 - - col2 AS col1 FROM tab0 AS cor0
----
186
295
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + 89 + + COUNT( * ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 89 + + COUNT ( * ) FROM tab2 AS cor0
----
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 29 * + 10 + - col1 + - + col0 BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 / col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 78 col2 FROM tab0
----
165
175
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT ALL col0 * - col2 * - col1 * + 8 - col1 DIV - col2 AS col2 FROM tab0
----
146162
456841
76824

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL col0 * - col2 * - col1 * + 8 - col1 / - col2 AS col2 FROM tab0
----
146162
456841
76824

query I rowsort
SELECT + 30 + col1 FROM tab2
----
107
81
97

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE - col2 + col2 IN ( col1 * col2 + - 61, - col0 + - 99 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 - col2 col0 FROM tab0 AS cor0
----
-103
-140
-192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 57 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + SUM( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + SUM ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL < 43
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL < 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - COUNT( * ) + - ( - 7 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - COUNT ( * ) + - ( - 7 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 AS col0, 49 col0 FROM tab1 AS cor0
----
51
49
85
49
91
49

query I rowsort
SELECT DISTINCT + col2 * col0 * + col2 FROM tab0 AS cor0
----
33135
8700
950697

query II rowsort
SELECT + 47 AS col1, - col2 AS col0 FROM tab2 cor0
----
47
-23
47
-40
47
-58

query I rowsort
SELECT ( + - 89 ) FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4947
SELECT DISTINCT ( - - ( + - 70 ) ) * + - COUNT( * ) AS col1, - 10 AS col2 FROM tab0 AS cor0
----
210
-10

skipif mysql # not compatible
query II rowsort label-4947
SELECT DISTINCT ( - - ( + - 70 ) ) * + - COUNT ( * ) AS col1, - 10 AS col2 FROM tab0 AS cor0
----
210
-10

query I rowsort
SELECT 67 * + col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1125
2888
3559

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 + 69 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 + 69 AND NULL
----
NULL

query I rowsort
SELECT ALL col1 * 65 AS col1 FROM tab2 AS cor0
----
3315
4355
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT + 21 / - ( col0 ) + - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + 21 / - ( col0 ) + - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT + ( - + 91 ) DIV + col2 AS col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT + ( - + 91 ) / + col2 AS col2 FROM tab1 cor0
----
-1
-1
0

query II rowsort
SELECT ALL - col1 * + + col2 AS col1, - col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-210
-10
-3807
-47
-99
-99

query I rowsort
SELECT - col1 * + + col1 FROM tab1 WHERE NOT NULL <= - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 >= + + 31 + + 90 * + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 64 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT DISTINCT 40 * - COUNT( * ) AS col1, + 4 + COUNT( * ) AS col0 FROM tab0
----
-120
7

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT 40 * - COUNT ( * ) AS col1, + 4 + COUNT ( * ) AS col0 FROM tab0
----
-120
7

query I rowsort
SELECT ALL col1 * 84 FROM tab0
----
1764
6804
84

query I rowsort
SELECT DISTINCT + col0 * 37 * - - col1 FROM tab0
----
3589
44955
67599

query I rowsort
SELECT + ( - col2 ) * + - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT DISTINCT ( + col1 ) + - col1 + - col0 * 42, - col2 AS col2 FROM tab0 AS cor0
----
-3654
-10
-4074
-99
-630
-47

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE - - col2 + 31 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT col2 DIV col1 + + col2 * + + col1 AS col0 FROM tab1
----
1350
306
3197

skipif mysql # not compatible
query I rowsort label-4963
SELECT col2 / col1 + + col2 * + + col1 AS col0 FROM tab1
----
1350
306
3197

query I rowsort
SELECT + 26 + - col0 + ( + 75 ) + + + col0 AS col1 FROM tab2
----
101
101
101

query I rowsort
SELECT + col1 + - 4 * + - col2 AS col0 FROM tab2 AS cor0
----
143
237
299

query I rowsort
SELECT + + 36 + col1 FROM tab2 cor0
----
103
113
87

query I rowsort
SELECT ALL + col2 + + + col2 + + 47 FROM tab2 AS cor0
----
127
163
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 12 + + + col1 col1 FROM tab0 AS cor0
----
-11
69
9

query I rowsort
SELECT ALL - 2 + col1 - + - col1 AS col1 FROM tab0
----
0
160
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT 59 + + COUNT( * ) + - COUNT( col0 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT 59 + + COUNT ( * ) + - COUNT ( col0 ) FROM tab2
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * + - col1 - col0 col0 FROM tab2
----
3575
4682
5403

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - 92 - COUNT( * ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 92 - COUNT ( * ) FROM tab2
----
-95

query I rowsort
SELECT DISTINCT col1 + - + 59 AS col2 FROM tab1
----
-12
-45
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT CAST( NULL AS SIGNED ) - 36 / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT CAST ( NULL AS INTEGER ) - 36 / + col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT ALL + col2 DIV + - col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4977
SELECT ALL + col2 / + - col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT DISTINCT SUM( ALL + - col0 ) DIV - 65 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT SUM ( ALL + - col0 ) / - 65 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 2 FROM tab0 cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT - MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col0 col1 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT DISTINCT + 49 + col1 AS col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54
63
96

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + 49 + col1 AS col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54
63
96

query I rowsort
SELECT ALL + 49 AS col0 FROM tab1 WHERE 2 + - 67 IS NOT NULL
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT DISTINCT - col2 + 10 FROM tab2 AS cor0 WHERE + ( - - col0 ) / + - CAST( NULL AS SIGNED ) BETWEEN + col0 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - col2 + 10 FROM tab2 AS cor0 WHERE + ( - - col0 ) / + - CAST ( NULL AS INTEGER ) BETWEEN + col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + + MAX( + - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4986
SELECT + + MAX ( + - col2 ) col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - MAX( ALL - - 69 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - MAX ( ALL - - 69 ) FROM tab0 AS cor0
----
-69

query I rowsort
SELECT ALL - ( 61 ) FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT 55 * - - ( - 71 ) AS col1 FROM tab1
----
-3905
-3905
-3905

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4990
SELECT ALL * FROM tab1 WHERE NOT + + CAST( + ( col1 ) AS DECIMAL ) > 5
----
85
5
59

skipif mysql # not compatible
query III rowsort label-4990
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( + ( col1 ) AS REAL ) > 5
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT 34 * - COUNT( * ) AS col0 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-4991
SELECT 34 * - COUNT ( * ) AS col0 FROM tab1
----
-102

query I rowsort
SELECT col2 * - + 79 AS col1 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT DISTINCT col2 * + - 88 AS col0 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT 75 + - COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4994
SELECT 75 + - COUNT ( * ) AS col0 FROM tab1
----
72

query I rowsort
SELECT - 63 + - + 81 * - col2 FROM tab0
----
3744
747
7956

query I rowsort
SELECT 83 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col2 + + + 77 * - col2 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT DISTINCT - col2 * + 97 AS col0 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT DISTINCT + + 27 + + + col1 AS col0 FROM tab1 cor0
----
32
41
74

query I rowsort
SELECT + 8 + + col0 AS col0 FROM tab0 AS cor0
----
105
23
95

query I rowsort
SELECT DISTINCT - col1 + - 17 FROM tab1 cor0
----
-22
-31
-64

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL < - 64 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5004
SELECT DISTINCT + 68 DIV MAX( + col0 ) + - - 29 col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5004
SELECT DISTINCT + 68 / MAX ( + col0 ) + - - 29 col0 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT DISTINCT - COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT - COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - COUNT( ALL - + col1 ) * - 20 + - 2 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5006
SELECT - COUNT ( ALL - + col1 ) * - 20 + - 2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT - - col0 + - col1 * - 28 AS col1 FROM tab2 AS cor0
----
1474
1951
2220

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT ALL col1 DIV + + col2 + - col2 AS col0 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL col1 / + + col2 + - col2 AS col0 FROM tab0
----
-46
-8
-99

query I rowsort
SELECT + col1 + + - col2 * ( col0 ) AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <> + + 2
----

query I rowsort
SELECT + 33 AS col0 FROM tab1 WHERE - - 51 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT DISTINCT 42 DIV + MIN( ALL + col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT 42 / + MIN ( ALL + col1 ) FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT ALL col1 DIV + + col0 col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT ALL col1 / + + col0 col2 FROM tab0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 12 + + - col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 89 * col2 AS col2 FROM tab0
----
-4183
-8811
-890

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 65 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5017
SELECT DISTINCT + 55 * + + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5017
SELECT DISTINCT + 55 * + + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT - 64 * col2 + - + col0 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * 88 * - + col1 IS NOT NULL
----
-5060
-7552
-9562

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - 64 * col2 + - + col0 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * 88 * - + col1 IS NOT NULL
----
-5060
-7552
-9562

query I rowsort
SELECT col0 * 71 AS col2 FROM tab2
----
3266
4544
5325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + 96 FROM tab1 WHERE col1 IS NOT NULL
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 / - col2 + 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT MIN( + + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT MIN ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT + MIN( DISTINCT - + 88 ) + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT + MIN ( DISTINCT - + 88 ) + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT + 75 + col2 + col1 - col0 FROM tab2 AS cor0
----
103
125
128

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 7 NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col0 FROM tab1
----
44

query I rowsort
SELECT - ( - 74 ) + 57 AS col2 FROM tab0
----
131
131
131

query II rowsort
SELECT DISTINCT + 84, - 48 AS col0 FROM tab0
----
84
-48

query I rowsort
SELECT 40 * + col2 AS col0 FROM tab1 AS cor0
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL + - COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + - COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 68 * - 59 + + col0 FROM tab0 AS cor0
----
4027
4099
4109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5033
SELECT DISTINCT MIN( DISTINCT + col0 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT MIN ( DISTINCT + col0 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL - COUNT( * ) * - 3 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - COUNT ( * ) * - 3 AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5035
SELECT ALL COUNT( + col1 ) AS col2, 18 AS col0 FROM tab1
----
3
18

skipif mysql # not compatible
query II rowsort label-5035
SELECT ALL COUNT ( + col1 ) AS col2, 18 AS col0 FROM tab1
----
3
18

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 32 ) * + - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5037
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 20 * + 30 NOT IN ( + - 14 * + + ( col0 ) + + col0 + + - col0, - 73, 73 * - + CAST( + col2 AS DECIMAL ) + 59 + + CAST( - - col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 20 * + 30 NOT IN ( + - 14 * + + ( col0 ) + + col0 + + - col0, - 73, 73 * - + CAST ( + col2 AS REAL ) + 59 + + CAST ( - - col1 AS INTEGER ) )
----
0

query I rowsort
SELECT - - 54 * - - 53 + col1 - - col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-6740
2013
2238

query I rowsort
SELECT + col2 * 12 AS col0 FROM tab0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT + COUNT( + 53 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + COUNT ( + 53 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 * 42 FROM tab1
----
1974
210
588

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab2 cor0 WHERE col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + + col2 + 94 - - - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + + col2 + 94 - - - col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5044
SELECT ALL + col1, col1 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5044
SELECT ALL + col1, col1 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - 4 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT + 74 * - col1 AS col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - 11 * MAX( col2 ) AS col2 FROM tab0 AS cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 11 * MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
-1089

query I rowsort
SELECT - col0 * 88 * + - col1 + + col0 + + col0 * - - col1 FROM tab1
----
37910
380744
63597

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - + ( 6 ) + + + MAX( ALL - col0 ) * + MIN( ALL + 8 ) AS col0 FROM tab2 AS cor0
----
-374

skipif mysql # not compatible
query I rowsort label-5051
SELECT - + ( 6 ) + + + MAX ( ALL - col0 ) * + MIN ( ALL + 8 ) AS col0 FROM tab2 AS cor0
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT - 83 + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-92

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - 83 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-92

query I rowsort
SELECT ALL - 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - 59 - - SUM( + ( ( - + 12 ) ) ) - - 4 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - 59 - - SUM ( + ( ( - + 12 ) ) ) - - 4 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ( - - COUNT( * ) ) + 76 AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5055
SELECT ( - - COUNT ( * ) ) + 76 AS col2 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT 34 + + col1 NOT BETWEEN - + 40 * - col1 - + - col1 AND NULL
----

query I rowsort
SELECT - + 40 + - col0 FROM tab2 AS cor0
----
-104
-115
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + 36 * - + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 36 * - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
-105

query I rowsort
SELECT ALL + 71 * - col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT ALL - + ( CAST( 10 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - + ( CAST ( 10 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 57 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT - COUNT( * ), 19 * + + 26 AS col0 FROM tab1
----
-3
494

skipif mysql # not compatible
query II rowsort label-5062
SELECT - COUNT ( * ), 19 * + + 26 AS col0 FROM tab1
----
-3
494

query II rowsort
SELECT DISTINCT 67 AS col1, 24 AS col2 FROM tab1
----
67
24

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 * + - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT AVG ( ALL + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT AVG ( ALL + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT + CAST( + ( + MAX( DISTINCT + ( + col2 ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5066
SELECT + CAST ( + ( + MAX ( DISTINCT + ( + col2 ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT - - ( COUNT( * ) ) * - 12 AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - - ( COUNT ( * ) ) * - 12 AS col1 FROM tab0 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT ALL 16 * col1 DIV - + col2 - - + col0 FROM tab0 AS cor0
----
-12
54
97

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 16 * col1 / - + col2 - - + col0 FROM tab0 AS cor0
----
-12
54
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + col0 + + + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT DISTINCT 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 67 - + - 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT ALL - 16 * + MIN( DISTINCT + col2 ), 41 AS col1 FROM tab0 AS cor0
----
-160
41

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL - 16 * + MIN ( DISTINCT + col2 ), 41 AS col1 FROM tab0 AS cor0
----
-160
41

query I rowsort
SELECT - col0 + - 55 AS col2 FROM tab0 AS cor0
----
-142
-152
-70

query I rowsort
SELECT - 42 * 97 + - - 98 + - col2 AS col1 FROM tab2 AS cor0
----
-3999
-4016
-4034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT - + 82 + + - CAST( - - col0 AS SIGNED ) + - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5076
SELECT - + 82 + + - CAST ( - - col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + 27 + - col0 AS col1 FROM tab0 AS cor0
----
-60
-70
12

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 98 AND + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT ALL CAST( - 15 AS SIGNED ) + + 18 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL CAST ( - 15 AS INTEGER ) + + 18 AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT + ( + 33 ) AS col2 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - col0 col1, col0 + + - col0 + - 0 FROM tab0 AS cor0
----
-66
0
-96
0
66
0

query I rowsort
SELECT 29 AS col0 FROM tab1 AS cor0 WHERE - col2 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 24 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 73 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
59
68
96

query II rowsort
SELECT col1, col1 * - - col1 AS col0 FROM tab1
----
14
196
47
2209
5
25

query I rowsort
SELECT DISTINCT ( - 25 ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + + COUNT( * ) - - 58 AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5089
SELECT + + COUNT ( * ) - - 58 AS col0 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + - 37 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5090
SELECT + - 37 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-34

query II rowsort
SELECT DISTINCT + ( + col1 ) / col2, - col0 FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN - 21 AND NULL
----

query II rowsort
SELECT - + col1, + col2 AS col2 FROM tab0 cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * 27 col0 FROM tab0
----
-648
-648
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL MAX( col0 ) * + COUNT( * ) AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL MAX ( col0 ) * + COUNT ( * ) AS col2 FROM tab2
----
225

query I rowsort
SELECT + 13 * + col2 AS col0 FROM tab0
----
1287
130
611

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT ALL - col2 DIV + col0 col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT ALL - col2 / + col0 col0 FROM tab0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 96 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5098
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( col1 + - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5098
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( col1 + - col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 33 col2 FROM tab0
----
132
43
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT ALL COUNT( * ) * MIN( ALL + col2 DIV ( 19 ) ) - MAX( ALL col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL COUNT ( * ) * MIN ( ALL + col2 / ( 19 ) ) - MAX ( ALL col1 ) FROM tab2
----
-74

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col0 * - 24 > 76 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + COUNT( * ) + 46 AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-5103
SELECT + COUNT ( * ) + 46 AS col1 FROM tab0
----
49

query III rowsort
SELECT * FROM tab0 WHERE 12 + col2 * - 7 IS NULL
----

query I rowsort
SELECT DISTINCT 18 + + col2 AS col0 FROM tab0
----
117
28
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5106
SELECT + 86 - CAST( NULL 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-5106
SELECT + 86 - CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 85 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ( MIN( col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5108
SELECT ( MIN ( col0 ) ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / + col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / + col2 <= NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 * - col1 AND col2 * + col0
----

query I rowsort
SELECT - col1 FROM tab0 WHERE 15 IN ( 10 + + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT MIN( 3 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT MIN ( 3 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5114
SELECT * FROM tab1 AS cor0 WHERE NOT 58 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5114
SELECT * FROM tab1 AS cor0 WHERE NOT 58 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col0 * - col2 BETWEEN - col2 AND ( - col2 + col2 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - 64 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 64 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 + - col2 / + col1 ) IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE ( 53 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT DISTINCT COUNT( ALL - CAST( ( + col0 ) AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT COUNT ( ALL - CAST ( ( + col0 ) AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL 73 + - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
154
74
94

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL 73 + - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
154
74
94

query I rowsort
SELECT ALL - - ( + col2 ) + col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT ALL + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 col1 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT 11 FROM tab1 AS cor0 WHERE ( NULL ) < + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL + ( + 95 ) + - SUM( ALL col2 ) col1 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5128
SELECT ALL + ( + 95 ) + - SUM ( ALL col2 ) col1 FROM tab1 AS cor0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT - - COUNT( * ) * - MAX( ALL col1 * - col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT - - COUNT ( * ) * - MAX ( ALL col1 * - col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT col2 + - 69 DIV 42 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT col2 + - 69 / 42 AS col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT - 44 + - col1 AS col2 FROM tab0 cor0
----
-125
-45
-65

query I rowsort
SELECT ALL 50 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 + col0 ) AND 31
----

query I rowsort
SELECT + 17 + col2 FROM tab0
----
116
27
64

query I rowsort
SELECT + col0 * - 15 + + col0 AS col2 FROM tab1
----
-1190
-1274
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * 31 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * 31 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * + - col1 AS col0 FROM tab1
----
-266
-893
-95

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + col2 + - 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT + 48 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + 48 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 46 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN - 32 AND - col1
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE ( + col2 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL ( 35 ) AS col0 FROM tab0 WHERE NOT col1 < - 85
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE - 24 * + 23 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT 65 - + - 87 * COUNT( * ) AS col0 FROM tab0
----
326

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT 65 - + - 87 * COUNT ( * ) AS col0 FROM tab0
----
326

query I rowsort
SELECT ALL 83 * + ( col1 ) AS col1 FROM tab0
----
1743
6723
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 64 col1 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - 39 * COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5147
SELECT - 39 * COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT - 4 * 82 AS col2 FROM tab0 WHERE NULL = ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5149
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - COUNT( * ) + - 80 FROM tab0 WHERE NOT ( + ( + 0 ) ) IN ( col1 )
----
-83

skipif mysql # not compatible
query I rowsort label-5151
SELECT - COUNT ( * ) + - 80 FROM tab0 WHERE NOT ( + ( + 0 ) ) IN ( col1 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT ALL + COUNT( * ), + ( 1 ) AS col1 FROM tab0
----
3
1

skipif mysql # not compatible
query II rowsort label-5152
SELECT ALL + COUNT ( * ), + ( 1 ) AS col1 FROM tab0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( * ) * + 67 AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( * ) * + 67 AS col1 FROM tab0
----
201

query I rowsort
SELECT - 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col0 OR NOT ( NULL ) <= col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 84 <> col1 ) OR ( NULL ) NOT IN ( + col0 - - col2 * 94 )
----

query I rowsort
SELECT - - col1 * - 21 AS col2 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + - MIN( - 66 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + - MIN ( - 66 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT + col0 AS col0, + 33 FROM tab0 AS cor0
----
15
33
87
33
97
33

query I rowsort
SELECT DISTINCT + col2 / - + col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT COUNT( * ), 53 * + 18 AS col2 FROM tab2 AS cor0
----
3
954

skipif mysql # not compatible
query II rowsort label-5161
SELECT COUNT ( * ), 53 * + 18 AS col2 FROM tab2 AS cor0
----
3
954

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT 46 + - MIN( - col2 ) * 61 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3584

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT 46 + - MIN ( - col2 ) * 61 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5163
SELECT + COUNT( DISTINCT col2 ) AS col1, + COUNT( * ) * - COUNT( DISTINCT - CAST( - col1 AS SIGNED ) ) FROM tab0
----
3
-9

skipif mysql # not compatible
query II rowsort label-5163
SELECT + COUNT ( DISTINCT col2 ) AS col1, + COUNT ( * ) * - COUNT ( DISTINCT - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
3
-9

query I rowsort
SELECT + 2 / 19 FROM tab0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT ALL col1 * + 71 AS col2 FROM tab1 WHERE NOT - + 97 >= + 64 + - col2
----
3337
355
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 5 col0 FROM tab0 WHERE + 99 + + col1 IS NOT NULL
----
104
15
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col2 * 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT MAX( + + col0 ) AS col1, 83 col2 FROM tab0 AS cor0
----
97
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5168
SELECT MAX ( + + col0 ) AS col1, 83 col2 FROM tab0 AS cor0
----
97
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT - - MAX( 32 ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - - MAX ( 32 ) AS col2 FROM tab2 AS cor0
----
32

query II rowsort
SELECT ALL - + ( - 3 ), col2 + 80 AS col2 FROM tab1 AS cor0
----
3
139
3
148
3
176

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - 99 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + - COUNT( * ) * + MIN( ALL + - col2 ) * - - 3 AS col1 FROM tab2 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-5172
SELECT + - COUNT ( * ) * + MIN ( ALL + - col2 ) * - - 3 AS col1 FROM tab2 AS cor0
----
522

query I rowsort
SELECT - + col1 FROM tab0 WHERE ( - 3 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 85 + - col2 NOT IN ( + 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT 96 + + COUNT( + - col0 ) col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT 96 + + COUNT ( + - col0 ) col1 FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5176
SELECT DISTINCT + ( - + col1 ) DIV + col0 AS col2, - col0 * - col1 col0 FROM tab2 AS cor0
----
-1
2346
-1
4928
0
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5176
SELECT DISTINCT + ( - + col1 ) / + col0 AS col2, - col0 * - col1 col0 FROM tab2 AS cor0
----
-1
2346
-1
4928
0
5025

query I rowsort
SELECT ALL - - 36 + 73 FROM tab1 AS cor0
----
109
109
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT AVG ( CAST( NULL AS SIGNED ) ) + - - ( + ( + 94 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT AVG ( CAST ( NULL AS INTEGER ) ) + - - ( + ( + 94 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 18 + 93 + - col0 FROM tab2 AS cor0
----
36
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT - - 6 + + + ( ( + COUNT( + col2 ) ) ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - - 6 + + + ( ( + COUNT ( + col2 ) ) ) FROM tab2 cor0
----
9

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 WHERE col0 + - + 38 NOT BETWEEN ( - 83 ) AND 73 / + col0
----
35
35
35

query I rowsort
SELECT ALL + 29 + + - 29 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - 89 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - 89 = NULL
----
0

query I rowsort
SELECT ALL col2 * - 17 + 22 * + 53 FROM tab0
----
-517
367
996

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT ALL col2 DIV - 76 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL col2 / - 76 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 47 - - col1 FROM tab1
----
52
61
94

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - + 40 * + col1 + - col2 FROM tab1 AS cor0
----
-1948
-259
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 13 ) NOT BETWEEN 98 * ( 94 ) AND - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 13 ) NOT BETWEEN 98 * ( 94 ) AND - 19
----
NULL

query I rowsort
SELECT + - col2 + + col1 + 86 + - 55 * - col1 AS col2 FROM tab1 AS cor0
----
2650
307
774

query II rowsort
SELECT ALL + + ( + + 92 ) + - 12 + - col1 AS col0, ( - col1 ) * + col1 + col0 AS col0 FROM tab2 AS cor0
----
13
-4414
29
-2555
3
-5865

query I rowsort
SELECT ALL + + col1 * + ( col0 ) AS col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT 12 * + 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 232c40ac338cf75a693ab540b1e10afe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT - col2, + 75 + col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT col0, - 52 FROM tab0
----
15
-52
87
-52
97
-52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5197
SELECT col2 AS col1, col0 DIV col0 + - col1 AS col2, - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to de3817e197b9687cc60b9c0dd5295963

skipif mysql # not compatible
query III rowsort label-5197
SELECT col2 AS col1, col0 / col0 + - col1 AS col2, - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to de3817e197b9687cc60b9c0dd5295963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT COUNT( * ) DIV + 49 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) / + 49 AS col0 FROM tab2
----
0

query II rowsort
SELECT col2 AS col1, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT 52 FROM tab0 WHERE ( - col0 ) NOT BETWEEN NULL AND ( col1 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + COUNT( * ) * + + 25 col1 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5201
SELECT + COUNT ( * ) * + + 25 col1 FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1 + + 85
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 72 - col1 > + 52
----
91
47
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 + + col0 <> ( - col1 + - + 63 + - 70 ) AND NULL >= ( col0 ) - 38
----

query I rowsort
SELECT ALL 15 AS col1 FROM tab1 cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT - COUNT( * ) * - 52 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - COUNT ( * ) * - 52 FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) <= - 32 )
----

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL + - col1 + + + col1 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - SUM( + 3 ) + - 50 AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5210
SELECT - SUM ( + 3 ) + - 50 AS col0 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND - col0 * + ( col0 ) * - - col2 * - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT col1 + + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT col1 + + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT + ( + col2 ) + col1 DIV - col1 - - 13 AS col0 FROM tab1 cor0
----
108
71
80

skipif mysql # not compatible
query I rowsort label-5213
SELECT + ( + col2 ) + col1 / - col1 - - 13 AS col0 FROM tab1 cor0
----
108
71
80

query I rowsort
SELECT DISTINCT + 21 - + - ( - col2 ) FROM tab1
----
-38
-47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT - ( - AVG ( - col0 ) ) + - + SUM( - col2 ) FROM tab2 WHERE ( NULL ) > col2 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - ( - AVG ( - col0 ) ) + - + SUM ( - col2 ) FROM tab2 WHERE ( NULL ) > col2 / col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5217
SELECT * FROM tab0 WHERE + col0 * - - col2 NOT IN ( + 29 * ( 8 ) + + - CAST( + - 67 AS SIGNED ) * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5217
SELECT * FROM tab0 WHERE + col0 * - - col2 NOT IN ( + 29 * ( 8 ) + + - CAST ( + - 67 AS INTEGER ) * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col0 ) AS col0, col1 col0 FROM tab0 WHERE + 6 * - 40 - - ( - col2 ) IS NOT NULL
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - col0 - + + col1 AS col2 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - col1 + col0 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 / - + col1 - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ( + + CAST( + 10 AS SIGNED ) ) * + - col0 AS col0 FROM tab1 AS cor0
----
-510
-850
-910

skipif mysql # not compatible
query I rowsort label-5222
SELECT ( + + CAST ( + 10 AS INTEGER ) ) * + - col0 AS col0 FROM tab1 AS cor0
----
-510
-850
-910

query I rowsort
SELECT DISTINCT - + 48 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT 46 * + ( + col1 ) AS col0 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT ALL 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT + col1, 47 FROM tab1 AS cor0
----
14
47
47
47
5
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5227
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5227
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * - 97 + + col1 AS col2 FROM tab2 cor0
----
-2180
-3803
-5559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT DISTINCT + col1 * + 89 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39249
-583929
-89

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + col1 * + 89 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39249
-583929
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( * ) * + + 20 + - COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5230
SELECT COUNT ( * ) * + + 20 + - COUNT ( * ) FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * - - col1 <= ( 85 * - - 57 * + col0 + + col1 + + col0 / ( + col2 ) * - + ( + col2 ) * + col1 + - col2 )
----

query I rowsort
SELECT ALL - - ( - 13 ) FROM tab0 AS cor0
----
-13
-13
-13

query II rowsort
SELECT - col0 AS col1, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN - - col0 AND NULL
----
75
67
58

query I rowsort
SELECT - + col2 * col0 * + 18 + + + col2 + - 21 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * 39 AS col1 FROM tab1 AS cor0
----
1833
195
546

query I rowsort
SELECT ALL 40 * - col1 * + + col1 + + col1 + - col0 * + - 67 AS col1 FROM tab2 AS cor0
----
-100907
-174468
-232795

query I rowsort
SELECT DISTINCT - col2 + + - col0 FROM tab0 cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 53
----

query I rowsort
SELECT ALL ( col2 ) + + col2 FROM tab2 cor0
----
116
46
80

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col2 * 82 / ( + 63 ) IS NOT NULL AND 19 + 99 BETWEEN + 58 AND NULL
----

query I rowsort
SELECT 44 + - - col1 FROM tab2
----
111
121
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col1 + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 40 - - + col1 * + 16 * + col1 * - col0 NOT BETWEEN - col2 AND NULL )
----

query I rowsort
SELECT - ( 44 ) AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( 50 + + 55 * - 54 ) IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + 54 BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - 16 * col0 + + col0 AS col1 FROM tab1 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT - 54 - + 17 FROM tab2
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5251
SELECT DISTINCT + col2 + + 89 - ( col2 ) * - + CAST( NULL AS SIGNED ) + - col0 + - + col2 / + - 1 + 89 AS col1, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT + col2 + + 89 - ( col2 ) * - + CAST ( NULL AS INTEGER ) + - col0 + - + col2 / + - 1 + 89 AS col1, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5252
SELECT + CAST( NULL AS DECIMAL ) - - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT + CAST ( NULL AS REAL ) - - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - + 92 AS col0 FROM tab2
----
138
156
167

onlyif mysql # DIV for integer division: 
query II rowsort label-5254
SELECT col0 - + - col1 + 11 - - col0 + - + ( - col1 ) DIV + + 71 col0, col1 * + - col0 FROM tab2
----
154
-2346
217
-4928
228
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5254
SELECT col0 - + - col1 + 11 - - col0 + - + ( - col1 ) / + + 71 col0, col1 * + - col0 FROM tab2
----
154
-2346
217
-4928
228
-5025

query I rowsort
SELECT ALL - - col1 * - 76 AS col1 FROM tab2 WHERE NOT 8 > col0
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT COUNT( ALL + col0 ) * + 88 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT COUNT ( ALL + col0 ) * + 88 FROM tab2
----
264

query I rowsort
SELECT ALL - - col0 * - - 39 FROM tab0 AS cor0
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL ( - 12 ) + COUNT( * ) FROM tab0, tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL ( - 12 ) + COUNT ( * ) FROM tab0, tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5259
SELECT 64 * + COUNT( + CAST( NULL AS SIGNED ) ) col0, COUNT( * ) + + - 64 FROM tab0
----
0
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5259
SELECT 64 * + COUNT ( + CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) + + - 64 FROM tab0
----
0
-61

query I rowsort
SELECT ALL col2 * ( + + col0 ) AS col1 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT + CAST( + + col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5261
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
59
68
96

query I rowsort
SELECT + col2 * + - col2 - col0 + col1 FROM tab2 cor0
----
-1587
-3372
-524

query I rowsort
SELECT DISTINCT + 53 FROM tab0 AS cor0 WHERE ( + - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5264
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + MIN( DISTINCT col2 ) FROM tab2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-5264
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + MIN ( DISTINCT col2 ) FROM tab2
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ( - 73 ) * + COUNT( * ) + - + COUNT( DISTINCT + col1 ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-5265
SELECT ( - 73 ) * + COUNT ( * ) + - + COUNT ( DISTINCT + col1 ) FROM tab2
----
-222

query I rowsort
SELECT ALL col1 * col2 * + - 88 AS col0 FROM tab1
----
-118272
-25960
-281248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT CAST( col2 AS SIGNED ) + - + 48 - - + col1 AS col2 FROM tab0
----
-17
52
80

skipif mysql # not compatible
query I rowsort label-5267
SELECT CAST ( col2 AS INTEGER ) + - + 48 - - + col1 AS col2 FROM tab0
----
-17
52
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5268
SELECT ALL col1 * + - 61 AS col0, CAST( NULL AS SIGNED ) - + 75 AS col1 FROM tab0
----
-1281
NULL
-4941
NULL
-61
NULL

skipif mysql # not compatible
query II rowsort label-5268
SELECT ALL col1 * + - 61 AS col0, CAST ( NULL AS INTEGER ) - + 75 AS col1 FROM tab0
----
-1281
NULL
-4941
NULL
-61
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * col2 + + col0 col0 FROM tab2
----
1081
1864
2685

query I rowsort
SELECT - col1 + 69 * - 70 AS col1 FROM tab2
----
-4881
-4897
-4907

query II rowsort
SELECT ALL - 58, - 15 * col2 AS col2 FROM tab0
----
-58
-1485
-58
-150
-58
-705

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col2 ) - - + col2 + + + 76 IN ( ( + col2 ), - 29 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - + 96 - 97 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT + 55 - - CAST( 24 AS SIGNED ) * COUNT( * ) col1 FROM tab2
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT + 55 - - CAST ( 24 AS INTEGER ) * COUNT ( * ) col1 FROM tab2
----
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NULL < - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > + + 69
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - COUNT( * ) * + COUNT( * ) + - MAX( col1 ) AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5279
SELECT - COUNT ( * ) * + COUNT ( * ) + - MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ALL + 66 * - + col2 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT DISTINCT + - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + ( + - ( col0 ) ) + ( + col2 ) col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT + - 89 * + col0 + + 30 FROM tab0 AS cor0
----
-1305
-7713
-8603

query II rowsort
SELECT - col1 AS col0, 77 * 24 * - 93 FROM tab0
----
-1
-171864
-21
-171864
-81
-171864

query I rowsort
SELECT ALL 45 + + col2 FROM tab2
----
103
68
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 >= col1 * + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5288
SELECT ALL + col2, + 98 * + - 65 + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL + col2, + 98 * + - 65 + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 42 < + col2 + - col1
----

query I rowsort
SELECT - 50 * - - col2 AS col1 FROM tab0
----
-2350
-4950
-500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5291
SELECT + 77 AS col2, - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
77
NULL
77
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5291
SELECT + 77 AS col2, - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
77
NULL
77
NULL
77
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / - ( + + 68 ) + + - col0 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5293
SELECT - 41 + col0 + col0 + + + CAST( - 40 AS SIGNED ) DIV + col2 + + 0 + + + col2 col2 FROM tab1 cor0
----
157
188
209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5293
SELECT - 41 + col0 + col0 + + + CAST ( - 40 AS INTEGER ) / + col2 + + 0 + + + col2 col2 FROM tab1 cor0
----
157
188
209

query I rowsort
SELECT - - col2 * - - col1 + - - col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL + col0 + - ( - - ( - - col2 ) ) FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + 2 + - - ( + + 60 ) FROM tab2 cor0
----
62

query I rowsort
SELECT - - 61 AS col2 FROM tab1 AS cor0 WHERE NOT + 33 IS NOT NULL
----

query I rowsort
SELECT ALL 82 * + col2 + + col0 FROM tab2 AS cor0
----
1932
3344
4831

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT ALL COUNT( * ) + - 2 col2, COUNT( DISTINCT + 7 ) FROM tab1 cor0
----
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5299
SELECT ALL COUNT ( * ) + - 2 col2, COUNT ( DISTINCT + 7 ) FROM tab1 cor0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT + 95 + - 62 FROM tab2 WHERE + col2 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5300
SELECT + 95 + - 62 FROM tab2 WHERE + col2 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 11 * + 51 + col0 AS col0 FROM tab2
----
607
625
636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT ( - CAST( NULL AS SIGNED ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ( - CAST ( NULL AS INTEGER ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT DISTINCT col1 * 26 * - + col1 AS col1, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 21 FROM tab2
----
-116714
NULL
-154154
NULL
-67626
NULL

skipif mysql # not compatible
query II rowsort label-5303
SELECT DISTINCT col1 * 26 * - + col1 AS col1, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 21 FROM tab2
----
-116714
NULL
-154154
NULL
-67626
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT 29 * col2 AS col2 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT col1 * + + col0 * - col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ALL - ( - + col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT 60 + - 27 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - ( + 17 ) + + col2 AS col0 FROM tab0 AS cor0
----
-7
30
82

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 26 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT DISTINCT - - 23 AS col0, COUNT( * ) col2 FROM tab2 AS cor0
----
23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5312
SELECT DISTINCT - - 23 AS col0, COUNT ( * ) col2 FROM tab2 AS cor0
----
23
3

query I rowsort
SELECT ALL - 74 * col2 * + + 82 FROM tab1 cor0
----
-358012
-412624
-582528

query II rowsort
SELECT DISTINCT + col0, + col0 * col1 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + 17 + - col1 < - 53 + - - 46
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5316
SELECT DISTINCT - CAST( + - col2 AS DECIMAL ) col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5316
SELECT DISTINCT - CAST ( + - col2 AS REAL ) col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + MAX( + - 82 ) AS col1 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + MAX ( + - 82 ) AS col1 FROM tab1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT ALL + col0 * - col1 DIV - col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + col0 * - col1 / - col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + ( + col0 ) * - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT - 16 + col1 + 90 DIV + col0 col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
36
52
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5321
SELECT - 16 + col1 + 90 / + col0 col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
36
52
62

query I rowsort
SELECT DISTINCT - - 53 AS col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + 26 * + col0 AS col1 FROM tab0
----
2262
2522
390

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT + ( - 22 ) * - 4, COUNT( * ) AS col1 FROM tab1
----
88
3

skipif mysql # not compatible
query II rowsort label-5324
SELECT + ( - 22 ) * - 4, COUNT ( * ) AS col1 FROM tab1
----
88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 / col1 + + 30 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT ALL - 70 + col2 + + 41 DIV - col1 AS col1 FROM tab1 cor0
----
-19
-2
24

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - 70 + col2 + + 41 / - col1 AS col1 FROM tab1 cor0
----
-19
-2
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5328
SELECT 77 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - + col2 + 52 + - + col2 * + + 78 IS NULL AND NOT 70 - + + 32 + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5328
SELECT 77 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - + col2 + 52 + - + col2 * + + 78 IS NULL AND NOT 70 - + + 32 + + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - col2 + - - 80 + - + 31 AS col0 FROM tab2 AS cor0
----
-9
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 3 col1 FROM tab2 cor0
----
49
67
78

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col0 FROM tab1
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * + 21 + - 0 + - col1 NOT BETWEEN + col0 AND + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 19 * ( + + col1 ) FROM tab2
----
1273
1463
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT ALL - MIN( DISTINCT 79 ) FROM tab0 WHERE - CAST( - 66 AS SIGNED ) IS NOT NULL AND NOT - 18 * + + col1 = - - col1 / ( - 69 )
----
-79

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - MIN ( DISTINCT 79 ) FROM tab0 WHERE - CAST ( - 66 AS INTEGER ) IS NOT NULL AND NOT - 18 * + + col1 = - - col1 / ( - 69 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - MAX( DISTINCT - 77 ) - + 85 AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5335
SELECT - MAX ( DISTINCT - 77 ) - + 85 AS col0 FROM tab1
----
-8

query I rowsort
SELECT 3 - - - 10 AS col2 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL MIN( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT ALL MIN ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT + col0 DIV col2 * + col0 col2 FROM tab2 AS cor0
----
64
75
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5338
SELECT + col0 / col2 * + col0 col2 FROM tab2 AS cor0
----
64
75
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - 63 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT + + SUM( - col0 ) DIV 56 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5340
SELECT + + SUM ( - col0 ) / 56 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5341
SELECT + CAST( NULL AS DECIMAL ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5341
SELECT + CAST ( NULL AS REAL ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 - - col2 - - + 72 AND + 76
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 - - col2 - - + 72 AND + 76
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 53 * + + col1 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 * - col0 AS col1 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT DISTINCT - col0 DIV - 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - col0 / - 96 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 10 * col1 + - - col1 * + col1 * + 4 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 23 AS col1, col2 FROM tab1
----
-23
59
-23
68
-23
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT COUNT( * ) * + 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( * ) * + 57 FROM tab1
----
171

query II rowsort
SELECT + col2 AS col1, 74 AS col0 FROM tab2
----
23
74
40
74
58
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col1, + col0 col2, + - col2 col0 FROM tab2 AS cor0
----
9 values hashing to b841d9c8bb47f618b31547852833c05b

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + - col2 * - + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5352
SELECT - ( - COUNT( * ) ) + + 96 * - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT - ( - COUNT ( * ) ) + + 96 * - - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL MIN( + + col1 ) + - COUNT( * ) * 20 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL MIN ( + + col1 ) + - COUNT ( * ) * 20 FROM tab0
----
-59

query I rowsort
SELECT ALL 5 + + col1 FROM tab0 AS cor0
----
26
6
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - + MAX( DISTINCT - col1 ) + - - COUNT( + col0 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5356
SELECT - + MAX ( DISTINCT - col1 ) + - - COUNT ( + col0 ) FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT + COUNT( * ) + - - 64 AS col1 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + COUNT ( * ) + - - 64 AS col1 FROM tab2 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL + + col1 DIV + col2 - + - col0 + col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + + col1 / + col2 - + - col0 + col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 7 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - 91
----

query I rowsort
SELECT ALL col1 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT - 17 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT 90 + + COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT 90 + + COUNT ( * ) FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT + col1 DIV + col2 * - + 1 - + col1 AS col2 FROM tab0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-5364
SELECT + col1 / + col2 * - + 1 - + col1 AS col2 FROM tab0
----
-1
-23
-82

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5366
SELECT DISTINCT 46 * COUNT( DISTINCT - 89 ) - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT 46 * COUNT ( DISTINCT - 89 ) - COUNT ( CAST ( NULL AS REAL ) ) FROM tab0
----
46

query I rowsort
SELECT DISTINCT + - 86 + col1 FROM tab2 AS cor0
----
-19
-35
-9

query I rowsort
SELECT DISTINCT - col2 + col1 + + + col1 * col0 * 61 AS col2 FROM tab2 AS cor0
----
143134
300645
306534

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - 11 * - - COUNT( * ) AS col2 FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - 11 * - - COUNT ( * ) AS col2 FROM tab2 cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT MAX( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) + + - COUNT( DISTINCT - 16 ) * - 44 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT MAX ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + - COUNT ( DISTINCT - 16 ) * - 44 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND col0
----

query II rowsort
SELECT ALL + - col2 * - col2, col1 AS col0 FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

query I rowsort
SELECT ALL ( + 13 ) AS col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + col2 * + + 16 + - 38 FROM tab0 AS cor0
----
122
1546
714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN col2 AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT DISTINCT + 20 DIV - 41 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + 20 / - 41 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab1 WHERE NOT ( NULL NOT BETWEEN ( - col0 ) AND NULL )
----

query I rowsort
SELECT col1 * + 28 AS col1 FROM tab0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT - 88 * + COUNT( * ) AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - 88 * + COUNT ( * ) AS col1 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT COUNT( * ) * 42 AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5380
SELECT COUNT ( * ) * 42 AS col2 FROM tab1
----
126

query I rowsort
SELECT DISTINCT + 76 * - col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 * - col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + + COUNT( * ) * 40 * - 96 + - 88 FROM tab1 AS cor0
----
-11608

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + + COUNT ( * ) * 40 * - 96 + - 88 FROM tab1 AS cor0
----
-11608

query I rowsort
SELECT ALL - 46 * - 11 + col1 FROM tab0 AS cor0
----
507
527
587

query I rowsort
SELECT ( - col1 ) + 82 FROM tab1 AS cor0
----
35
68
77

query II rowsort
SELECT ALL + col2 AS col0, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + 7 + col2 * - col2 FROM tab2 AS cor0
----
-1593
-3357
-522

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = + - col2 * - 77
----

query I rowsort
SELECT ALL col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - 92 + - col2 FROM tab1 AS cor0
----
-151
-160
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + COUNT( * ) * ( - - SUM( ALL 2 ) ) + - SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-138

skipif mysql # not compatible
query I rowsort label-5392
SELECT + COUNT ( * ) * ( - - SUM ( ALL 2 ) ) + - SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5393
SELECT - CAST( col2 AS DECIMAL ), + col1 * 12 * col2 col1, + col2 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( 11 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5393
SELECT - CAST ( col2 AS REAL ), + col1 * 12 * col2 col1, + col2 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( 11 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5394
SELECT - + col1 + - CAST( NULL AS DECIMAL ) + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT - + col1 + - CAST ( NULL AS REAL ) + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 87 + + col1 * - col0 * - col0 AS col0 FROM tab0
----
159036
18312
9496

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - 73 IS NULL
----

query I rowsort
SELECT + col2 * - 3 + - 79 FROM tab2
----
-148
-199
-253

query I rowsort
SELECT + 53 + - - 33 + + + col1 AS col0 FROM tab1
----
100
133
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5399
SELECT DISTINCT CAST( + - ( + - col1 ) AS SIGNED ) AS col1, 90 FROM tab1
----
14
90
47
90
5
90

skipif mysql # not compatible
query II rowsort label-5399
SELECT DISTINCT CAST ( + - ( + - col1 ) AS INTEGER ) AS col1, 90 FROM tab1
----
14
90
47
90
5
90

query I rowsort
SELECT DISTINCT 20 * + + 36 - col1 + + + col2 FROM tab1
----
741
774
802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 16 * + 41 - - - col1, + col1 col0 FROM tab2 AS cor0
----
-707
51
-723
67
-733
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL = + 98 )
----

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL = + 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + - col0 DIV 64 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + - col0 / 64 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL + 53 * 5 FROM tab0 AS cor0
----
265
265
265

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT 45 DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5408
SELECT 45 / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - ( + ( + 80 ) ) FROM tab2
----
-80
-80
-80

query I rowsort
SELECT ALL col0 * - col0 * col1 * + - 74 FROM tab1
----
2673250
2694636
28801318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5411
SELECT ALL - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT DISTINCT SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ( + col0 ) * - col1 * - col2 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab1 cor0 WHERE ( NOT ( + 37 IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT DISTINCT + 23 DIV + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + 23 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1

query II rowsort
SELECT - col2 AS col2, 13 + 13 AS col2 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL - 25 / CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - 25 / CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 40 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT - col2 * - 64 + - - col1 DIV col0 col2 FROM tab2 AS cor0
----
1473
2561
3712

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5421
SELECT DISTINCT - col2 * - 64 + - - col1 / col0 col2 FROM tab2 AS cor0
----
1473
2561
3712

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT - CAST( + + 16 AS SIGNED ) * - + col0 - - 17 + col2 FROM tab1 WHERE col0 <> + 82 * 73 - + col1 + - col1 * 45
----
1436
1541
929

skipif mysql # not compatible
query I rowsort label-5423
SELECT - CAST ( + + 16 AS INTEGER ) * - + col0 - - 17 + col2 FROM tab1 WHERE col0 <> + 82 * 73 - + col1 + - col1 * 45
----
1436
1541
929

query II rowsort
SELECT ALL - col2 AS col2, + 51 FROM tab2
----
-23
51
-40
51
-58
51

query I rowsort
SELECT col2 + - + 82 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL MAX( DISTINCT - col1 ) col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT ALL MAX ( DISTINCT - col1 ) col1 FROM tab0 cor0
----
-1

query II rowsort
SELECT col2 * + col0 + - col1 + + 33 AS col0, + col1 FROM tab2 cor0
----
1040
51
2516
77
4316
67

query I rowsort
SELECT ALL 41 * - ( - - 52 ) AS col2 FROM tab2
----
-2132
-2132
-2132

query II rowsort
SELECT DISTINCT + - col0 * - col1 AS col0, 81 FROM tab2 cor0
----
2346
81
4928
81
5025
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT ALL + 85 * COUNT( DISTINCT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + 85 * COUNT ( DISTINCT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT + + col0 + + 51 - - + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT + + col0 + + 51 - - + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - - 26 * ( - + ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5432
SELECT - - 26 * ( - + ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
78

query II rowsort
SELECT ALL col2 AS col2, - col1 / - 43 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT + CAST( NULL AS SIGNED ) * - MAX( ALL + col2 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ALL + col2 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col1 * - col1 * - col1 * - - col1 AS col0 FROM tab2
----
-20151121
-35153041
-6765201

query I rowsort
SELECT DISTINCT + col2 * 7 FROM tab2
----
161
280
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * - 25 col2 FROM tab2
----
1875
1875
1875

query II rowsort
SELECT DISTINCT col2 AS col2, 92 * - ( - - col2 ) FROM tab0
----
10
-920
47
-4324
99
-9108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 16 col0 FROM tab0
----
-1392
-1552
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT 43 + - COUNT( * ) - + - 20 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5440
SELECT 43 + - COUNT ( * ) - + - 20 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT + ( MIN( DISTINCT - 31 ) ) + - 78 FROM tab2
----
-109

skipif mysql # not compatible
query I rowsort label-5441
SELECT + ( MIN ( DISTINCT - 31 ) ) + - 78 FROM tab2
----
-109

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col2 AS col1 FROM tab0
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + - col2 - - col0 col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col0 + col2 + + - 81 FROM tab2
----
-12
23
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - COUNT( ALL + col2 ) FROM tab2 AS cor0 WHERE 4 * - 14 <> + col1
----
-3

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - COUNT ( ALL + col2 ) FROM tab2 AS cor0 WHERE 4 * - 14 <> + col1
----
-3

query I rowsort
SELECT + ( + + 12 ) + + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE 58 - + - col1 IS NULL
----

query I rowsort
SELECT + 27 AS col1 FROM tab2 AS cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT ALL + 88 + col2 + + - col2 AS col0 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query II rowsort label-5451
SELECT + + col0 + + - col1 AS col0, + 44 DIV + - col1 + - ( - - col2 ) * + - col2 FROM tab2 AS cor0
----
-13
1600
-5
529
8
3364

skipif mysql # not compatible
query II rowsort label-5451
SELECT + + col0 + + - col1 AS col0, + 44 / + - col1 + - ( - - col2 ) * + - col2 FROM tab2 AS cor0
----
-13
1600
-5
529
8
3364

query I rowsort
SELECT + col0 * - col0 * col2 + + + col1 FROM tab0 cor0
----
-10494
-75669
-931490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT - CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5453
SELECT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL col2 * + col1 * CAST( NULL AS SIGNED ) - + col0 + - - 82 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL col2 * + col1 * CAST ( NULL AS INTEGER ) - + col0 + - - 82 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 91 * - col2 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5457
SELECT * FROM tab1 WHERE NOT ( + col0 - - 10 * - - col0 + CAST( - - 15 AS SIGNED ) ) IN ( - col2 + - 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5457
SELECT * FROM tab1 WHERE NOT ( + col0 - - 10 * - - col0 + CAST ( - - 15 AS INTEGER ) ) IN ( - col2 + - 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5458
SELECT DISTINCT 51 DIV 78 * - - col1 AS col1, col1 * - 58 - + col1 + - 10 + - col1 FROM tab0
----
0
-1270
0
-4870
0
-70

skipif mysql # not compatible
query II rowsort label-5458
SELECT DISTINCT 51 / 78 * - - col1 AS col1, col1 * - 58 - + col1 + - 10 + - col1 FROM tab0
----
0
-1270
0
-4870
0
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT ALL 60 DIV - col0 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL 60 / - col0 AS col1 FROM tab0
----
-4
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 28 BETWEEN - col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5461
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 96 * + ( + + col2 ) + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5461
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 96 * + ( + + col2 ) + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT col0 * - col1 + col0 DIV 6 AS col0 FROM tab0 AS cor0
----
-1213
-1813
-81

skipif mysql # not compatible
query I rowsort label-5463
SELECT col0 * - col1 + col0 / 6 AS col0 FROM tab0 AS cor0
----
-1213
-1813
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - MAX( DISTINCT 99 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - MAX ( DISTINCT 99 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + MIN( + 33 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-5465
SELECT + MIN ( + 33 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5466
SELECT + col0 DIV + - CAST( + col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT + col0 / + - CAST ( + col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 90 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - col0 * + 9 AS col2 FROM tab0 AS cor0
----
-135
-783
-873

query I rowsort
SELECT + + col1 * + - 15 + + - 2 AS col2 FROM tab0 AS cor0
----
-1217
-17
-317

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + 91 + - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - col2 + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT COUNT( * ) * - 24 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5474
SELECT COUNT ( * ) * - 24 FROM tab0
----
-72

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 6 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT CAST( + - col0 AS SIGNED ) * + 65 FROM tab1
----
-3315
-5525
-5915

skipif mysql # not compatible
query I rowsort label-5476
SELECT CAST ( + - col0 AS INTEGER ) * + 65 FROM tab1
----
-3315
-5525
-5915

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5478
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col1 FROM tab1
----
NULL

query II rowsort
SELECT - 57 * col2, + col2 + - - 60 AS col2 FROM tab0
----
-2679
107
-5643
159
-570
70

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col2 + - + col1 - - col0 IS NULL
----

query I rowsort
SELECT + 24 * - col1 FROM tab0
----
-1944
-24
-504

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 43 + col0 <> + - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT ALL + COUNT( * ) + - - 1 DIV + - COUNT( * ) + + - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + COUNT ( * ) + - - 1 / + - COUNT ( * ) + + - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( - 80 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( - 80 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + + col1 * + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL - - SUM( ALL + + 94 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - - SUM ( ALL + + 94 ) FROM tab1 AS cor0
----
282

query I rowsort
SELECT + col1 * + + col2 * col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5489
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 30 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5489
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 30 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + + col0 + + 76 FROM tab0 AS cor0 WHERE ( - col2 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT - col0 + - col0 - - - 3 DIV - col2 FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - col0 + - col0 - - - 3 / - col2 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + col0 - 98, 81 * - + col1 * - 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 - + 30 * + + col0 AS col1, - col1 FROM tab0 AS cor0
----
-2697
-21
-3007
-1
-465
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + 88 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL MAX( + - col2 ) col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5495
SELECT ALL MAX ( + - col2 ) col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT DISTINCT col2 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT col2 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - + col1 * - + col0 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5498
SELECT DISTINCT - 41 AS col0, CAST( + 55 AS SIGNED ) AS col2 FROM tab1 cor0
----
-41
55

skipif mysql # not compatible
query II rowsort label-5498
SELECT DISTINCT - 41 AS col0, CAST ( + 55 AS INTEGER ) AS col2 FROM tab1 cor0
----
-41
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - + col1 * + - col2 + col1 col0 FROM tab2 AS cor0 WHERE + col1 + 62 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 91 IS NULL
----

query I rowsort
SELECT DISTINCT + + 47 + + 16 FROM tab2 cor0
----
63

query I rowsort
SELECT DISTINCT col0 * - - 54 + - col1 AS col0 FROM tab1 AS cor0
----
2740
4585
4867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT + CAST( + 82 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5503
SELECT + CAST ( + 82 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + ( + - 66 ) + - + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5504
SELECT + ( + - 66 ) + - + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT MAX( col0 ) + 49 AS col1 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-5505
SELECT MAX ( col0 ) + 49 AS col1 FROM tab1
----
140

query I rowsort
SELECT DISTINCT + col2 + + 80 FROM tab0
----
127
179
90

query I rowsort
SELECT - 67 + col2 FROM tab0
----
-20
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5508
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 >= + col0 - - + CAST( + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5508
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 >= + col0 - - + CAST ( + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 3 FROM tab1 WHERE NOT NULL <> col2
----

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 * + 8 AS col1 FROM tab1
----
51
-768
85
-472
91
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT COUNT( * ) + + 96 AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5511
SELECT COUNT ( * ) + + 96 AS col2 FROM tab0
----
99

query I rowsort
SELECT + + col2 - + + 73 + - 20 AS col0 FROM tab0 WHERE NULL IS NULL
----
-46
-83
6

query I rowsort
SELECT 51 + + 50 FROM tab1
----
101
101
101

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 - + col0 AND - col2
----

query II rowsort
SELECT - - col2, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT MAX( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 BETWEEN ( + 81 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT MAX ( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 BETWEEN ( + 81 ) AND NULL
----
NULL

query II rowsort
SELECT col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + col2 + + col1 + - col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE 7 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT 66 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5522
SELECT 66 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

query II rowsort
SELECT DISTINCT + + col2 * + + col0 * col0 AS col2, - 2 AS col0 FROM tab2 cor0
----
163840
-2
326250
-2
48668
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT DISTINCT - COUNT( * ) * COUNT( * ), - 39 AS col2 FROM tab2 AS cor0
----
-9
-39

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ), - 39 AS col2 FROM tab2 AS cor0
----
-9
-39

query I rowsort
SELECT ALL + + col0 * + 42 + - 51 FROM tab1 AS cor0
----
2091
3519
3771

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT - 74 DIV ( + 69 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5526
SELECT - 74 / ( + 69 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( + 22 ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5528
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 14 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT CAST ( NULL AS REAL ) * 14 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL CAST( NULL AS SIGNED ) / col1 * + - CAST( NULL AS SIGNED ) * - - col0 col0 FROM tab2 WHERE NOT ( NULL <= ( 75 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT ALL CAST ( NULL AS INTEGER ) / col1 * + - CAST ( NULL AS INTEGER ) * - - col0 col0 FROM tab2 WHERE NOT ( NULL <= ( 75 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NULL <= + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 <= + - col2 + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col0, ( - + ( + - 83 ) ) FROM tab0
----
10
83
47
83
99
83

query II rowsort
SELECT DISTINCT 36 * + + 99 * - 21 + + - 83, + col0 AS col0 FROM tab2 AS cor0
----
-74927
46
-74927
64
-74927
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT COUNT( ALL + + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5534
SELECT COUNT ( ALL + + col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - - col1 * + - 20 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT ALL - col0 DIV + 12 FROM tab1 AS cor0
----
-4
-7
-7

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - col0 / + 12 FROM tab1 AS cor0
----
-4
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + + 80 * 12 AS col0 FROM tab1
----
1011
1045
1051

query I rowsort
SELECT - col1 FROM tab1 WHERE 8 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + 1 * 88 AS col0 FROM tab1
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 - 63 col0 FROM tab1
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT COUNT( DISTINCT - 51 ) * COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5544
SELECT COUNT ( DISTINCT - 51 ) * COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL + 53 * col0 + col0 AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) * + col2 + + 29 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + 53 * col0 + col0 AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) * + col2 + + 29 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + ( COUNT( * ) ) * + 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5546
SELECT + ( COUNT ( * ) ) * + 66 FROM tab1
----
198

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > ( col2 * col0 + + 80 )
----

query I rowsort
SELECT 80 + + col1 AS col1 FROM tab0
----
101
161
81

query I rowsort
SELECT 86 * - col1 FROM tab1
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + col0 NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT + CAST( NULL AS SIGNED ) + col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT + CAST ( NULL AS INTEGER ) + col2 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 10 + + 78 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT MIN( ALL 27 ) AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5553
SELECT MIN ( ALL 27 ) AS col1 FROM tab2
----
27

query I rowsort
SELECT DISTINCT - col1 * 74 AS col1 FROM tab1 WHERE NOT NULL <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col1 * + col1 FROM tab0 WHERE - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT DISTINCT 78 * - COUNT( * ) AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT 78 * - COUNT ( * ) AS col2 FROM tab1
----
-234

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 75
----

query I rowsort
SELECT ( AVG ( + col2 ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( ( 51 ) / - col2 )
----
NULL

query I rowsort
SELECT col0 + 8 * - 72 AS col2 FROM tab1
----
-485
-491
-525

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 39 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + - col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + MAX( ALL ( ( + col2 ) ) ) + - 3 * - 88 AS col1 FROM tab2 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-5562
SELECT + MAX ( ALL ( ( + col2 ) ) ) + - 3 * - 88 AS col1 FROM tab2 AS cor0
----
322

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ALL + 17 DIV 21 + col0 col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT ALL + 17 / 21 + col0 col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 * col0 + + 89 * 30 FROM tab1 AS cor0
----
7566
7685
8858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL col2 * + col0 + - ( - CAST( NULL AS SIGNED ) + - 72 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL col2 * + col0 + - ( - CAST ( NULL AS INTEGER ) + - 72 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT 88 DIV col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
4
88

skipif mysql # not compatible
query I rowsort label-5566
SELECT 88 / col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
4
88

query I rowsort
SELECT DISTINCT col0 + col2 * 56 AS col2 FROM tab2
----
1334
2304
3323

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5568
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE CAST( + 53 AS SIGNED ) NOT BETWEEN - 41 AND + 88
----

skipif mysql # not compatible
query IIIIII rowsort label-5568
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE CAST ( + 53 AS INTEGER ) NOT BETWEEN - 41 AND + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - MAX( DISTINCT + 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT - MAX ( DISTINCT + 0 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 65 * + col2 AS col2 FROM tab1
----
3835
4420
6240

query I rowsort
SELECT DISTINCT - 18 FROM tab2 AS cor0 WHERE 90 > col1
----
-18

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 67 ) BETWEEN NULL AND col0
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5574
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + CAST( col1 AS DECIMAL ) ) AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5574
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + CAST ( col1 AS REAL ) ) AND ( col0 )
----

query I rowsort
SELECT - 48 * 61 FROM tab1 AS cor0
----
-2928
-2928
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 - - 15 AND + 73 / - col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 - - 15 AND + 73 / - col0 + + col0
----
0

query I rowsort
SELECT + 37 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT col2 DIV - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 DIV - 86 ) BETWEEN ( 35 * col2 ) AND ( NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT col2 / - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 / - 86 ) BETWEEN ( 35 * col2 ) AND ( NULL )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 9 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT + ( 23 ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + ( 23 ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT SUM( + col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT DISTINCT SUM ( + col1 ) col0 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) = + col1 * 65 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 86 FROM tab1 WHERE ( col0 ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col0 * 26 FROM tab0 WHERE NULL IN ( + col0 - col1 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - col1 <> ( + 86 )
----
51
67
77

query I rowsort
SELECT DISTINCT - + ( - + 35 ) * 71 FROM tab2 cor0
----
2485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5589
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IN ( - col0 + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5589
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IN ( - col0 + col2 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 64
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( 40 - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( 40 - col0 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL COUNT( + 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL COUNT ( + 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 12 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NOT - ( col0 ) * + col0 + - col0 * 4 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NOT - ( col0 ) * + col0 + - col0 * 4 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 * col0 * - + col2 AS col0 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT col1 * 35 FROM tab0 AS cor0 WHERE ( + col0 * col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + col0 + + col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT DISTINCT - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 35 IN ( - col0 )
----

query I rowsort
SELECT ALL 20 * - 13 AS col2 FROM tab0 AS cor0
----
-260
-260
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 60 * + + col1 * - col1 + + 78 * col2 col2 FROM tab1 AS cor0
----
1136448
9018024
93102

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( ( - - col0 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + col1 + 88 * col0 col1 FROM tab0 AS cor0
----
1441
7717
8577

query I rowsort
SELECT DISTINCT - + 52 + - col2 FROM tab0 AS cor0
----
-151
-62
-99

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT 84 + col1 - col0 FROM tab0
----
-12
150
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT - 85 * MIN( + col2 ) * + - MAX( + col0 ) + COUNT( col2 + col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT - 85 * MIN ( + col2 ) * + - MAX ( + col0 ) + COUNT ( col2 + col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5610
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) / + - col0 * + ( col1 ) + - CAST( NULL AS SIGNED ) * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5610
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) / + - col0 * + ( col1 ) + - CAST ( NULL AS INTEGER ) * col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + + col2 + + col1 AS col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT col2 - - col1 DIV - col0 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT col2 - - col1 / - col0 FROM tab0
----
10
42
99

query I rowsort
SELECT + 53 * + col1 FROM tab0
----
1113
4293
53

query I rowsort
SELECT col2 + - col2 FROM tab1 WHERE + - col1 NOT IN ( - col2 )
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT DISTINCT - col0 DIV + 54 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - col0 / + 54 AS col1 FROM tab2
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( - 64 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT MIN( + 80 ) AS col1 FROM tab0 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
80

skipif mysql # not compatible
query I rowsort label-5618
SELECT MIN ( + 80 ) AS col1 FROM tab0 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + + col1 * + col0 - col0 col1 FROM tab1 AS cor0
----
36040
36363
389116

query I rowsort
SELECT ALL + 57 AS col1 FROM tab0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ( + col1 ) - + col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL - ( - col2 ) + 72 AS col2 FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT - + 85 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5623
SELECT - + 85 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 90 FROM tab0 WHERE + col0 + + 83 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col1 * + col0 )
----

query II rowsort
SELECT ALL + - col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-5627
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59

query I rowsort
SELECT 80 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + 37 * - - col1 )
----
80
80
80

query I rowsort
SELECT + - 9 * + 69 AS col0 FROM tab0 cor0
----
-621
-621
-621

query I rowsort
SELECT + 27 * col1 FROM tab1 AS cor0
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT 65 * + - MIN( ALL col1 ) FROM tab2 cor0
----
-3315

skipif mysql # not compatible
query I rowsort label-5631
SELECT 65 * + - MIN ( ALL col1 ) FROM tab2 cor0
----
-3315

query II rowsort
SELECT 84, col1 FROM tab2
----
84
51
84
67
84
77

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + + col2 )
----

query I rowsort
SELECT DISTINCT 93 * + col0 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT ALL + 4 * + 10 FROM tab0 AS cor0
----
40
40
40

query II rowsort
SELECT + 84 AS col0, + col1 FROM tab1 AS cor0
----
84
14
84
47
84
5

query I rowsort
SELECT 51 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 44 IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 94 * 82 * - col1 + - 66 * col2 IN ( 18 + 90 )
----

query I rowsort
SELECT DISTINCT ( col1 ) + + 14 AS col2 FROM tab2 AS cor0
----
65
81
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 91 + col0 / + 43 + - + 48 * + 33 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab2 AS cor0 WHERE 63 * - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - col1 - - col0 AS col1 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - + SUM( - - 75 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5645
SELECT - + SUM ( - - 75 ) FROM tab2 AS cor0
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5646
SELECT DISTINCT - 14 DIV - MAX( - col0 ) + + MIN( - - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT - 14 / - MAX ( - col0 ) + + MIN ( - - col2 ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE + 56 NOT BETWEEN ( + col1 * - 26 ) AND + col1
----
-1

skipif mysql # not compatible
query I rowsort label-5647
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE + 56 NOT BETWEEN ( + col1 * - 26 ) AND + col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT col1 DIV col2 DIV - col0 * - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT col1 / col2 / - col0 * - col1 FROM tab1
----
0

query I rowsort
SELECT + col1 - + col0 + - + 64 FROM tab1
----
-101
-108
-144

query I rowsort
SELECT DISTINCT - col0 + - 42 * + 21 + + - 44 + - col2 * + 76 - - + 51 AS col0 FROM tab2
----
-2669
-3979
-5358

query II rowsort
SELECT col0 + 22 * + 36 AS col1, col2 FROM tab2
----
838
23
856
40
867
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + 59 + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5652
SELECT + 59 + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 + ( - + col2 ) * + 73 AS col1 FROM tab1 AS cor0
----
-3797
-596
-6243

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + 4
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( col2, col1 / + col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 26 NOT IN ( - 79 + + 26 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - 20 * - + COUNT( col0 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - 20 * - + COUNT ( col0 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
60

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + - - col2 AND NULL
----

query I rowsort
SELECT - + 11 * - 4 + + + 57 AS col2 FROM tab2 AS cor0
----
101
101
101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5660
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5660
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + 77 * COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 77 * COUNT ( * ) FROM tab2
----
231

query I rowsort
SELECT + + col0 AS col2 FROM tab0 WHERE NOT - 40 IN ( + col1 - col2, - 60 )
----
15
87
97

query I rowsort
SELECT ALL 80 FROM tab1 WHERE NOT + col2 IS NULL
----
80
80
80

query I rowsort
SELECT - col1 + 27 FROM tab1
----
-20
13
22

query I rowsort
SELECT ALL - col1 + + col0 * + col0 + - col1 AS col0 FROM tab2 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 70 * + col0 col0 FROM tab2
----
-3169
-4403
-5183

query I rowsort
SELECT DISTINCT + col2 * - - ( col0 ) AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT ALL 26, COUNT( * ) AS col1 FROM tab1
----
26
3

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL 26, COUNT ( * ) AS col1 FROM tab1
----
26
3

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN + ( + col0 ) + - col2 AND + col0 * - - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT + - col1 + col1 + - - col0 + + + 12 + - 31 DIV + + col0 FROM tab1 AS cor0
----
103
63
97

skipif mysql # not compatible
query I rowsort label-5670
SELECT + - col1 + col1 + - - col0 + + + 12 + - 31 / + + col0 FROM tab1 AS cor0
----
103
63
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - 23 col0 FROM tab0 AS cor0
----
-110
-120
-38

query I rowsort
SELECT - + col2 + col0 * + 51 AS col0 FROM tab1 cor0
----
2505
4276
4573

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 41 IN ( - - 89 + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL 94 - - - COUNT( * ) + - + 13 AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL 94 - - - COUNT ( * ) + - + 13 AS col2 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT DISTINCT + - 33 col2 FROM tab0 WHERE - 22 < - col2 / - CAST( + - col2 AS SIGNED ) * - 7 * 68 + + + 1
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5675
SELECT DISTINCT + - 33 col2 FROM tab0 WHERE - 22 < - col2 / - CAST ( + - col2 AS INTEGER ) * - 7 * 68 + + + 1
----
-33

query I rowsort
SELECT DISTINCT 46 * + - col0 - col2 FROM tab0
----
-4012
-4561
-737

query I rowsort
SELECT + 78 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT + 17 - - COUNT( * ) AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + 17 - - COUNT ( * ) AS col0 FROM tab0
----
20

query I rowsort
SELECT DISTINCT - + col1 * - 42 + col2 FROM tab1 AS cor0
----
2042
269
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT + CAST( ( col1 ) AS SIGNED ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-5680
SELECT + CAST ( ( col1 ) AS INTEGER ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - col0 + + col0
----

query II rowsort
SELECT DISTINCT - 60 * - - 43 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
-2580
-59
-2580
-68
-2580
-96

query I rowsort
SELECT + col0 * + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT SUM( - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT SUM ( - + col1 ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= - 63 + - 39 - 61 * + col1 * col0
----

query II rowsort
SELECT DISTINCT - 89, + col2 AS col2 FROM tab0 AS cor0
----
-89
10
-89
47
-89
99

query I rowsort
SELECT - 62 * col2 * + + 26 FROM tab2 AS cor0
----
-37076
-64480
-93496

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5689
SELECT MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT - 27 * - CAST( + col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5690
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT - 27 * - CAST ( + col2 AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - col0 + - col2 * + col2 FROM tab2 AS cor0
----
-2645
-5696
-8989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT ALL - 83 DIV SUM( DISTINCT + col2 ) * - ( - - COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - 83 / SUM ( DISTINCT + col2 ) * - ( - - COUNT ( * ) ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - - col1 ) AND NULL
----

query II rowsort
SELECT + ( + + 74 ), + 28 / + 51 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab1 WHERE NOT col1 NOT IN ( - col1 + + + ( col0 ) / + + col1 )
----

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 WHERE NOT col1 NOT IN ( - col1 + + + ( col0 ) / + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 * 86 col2 FROM tab0
----
-60630
-74820
-825858

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT DISTINCT + MAX( ALL + col2 ) + 61 AS col1, 35 AS col1 FROM tab1
----
157
35

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT + MAX ( ALL + col2 ) + 61 AS col1, 35 AS col1 FROM tab1
----
157
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5699
SELECT * FROM tab1 WHERE + CAST( 17 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5699
SELECT * FROM tab1 WHERE + CAST ( 17 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT + + CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5701
SELECT + + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - + col0 - - col2 + 53 * - + col1 + - 95 AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 82 * + col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * - col1 OR NOT ( NOT + ( + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL - COUNT( * ) + + 40 AS col0 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - COUNT ( * ) + + 40 AS col0 FROM tab2 AS cor0
----
37

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5707
SELECT ALL - 51 + - + col2 + + 62 + + CAST( + col2 AS DECIMAL ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - 51 + - + col2 + + 62 + + CAST ( + col2 AS REAL ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - 67 - + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-5708
SELECT - 67 - + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-158

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT DISTINCT ( + + COUNT( * ) ) - 87 AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT ( + + COUNT ( * ) ) - 87 AS col2 FROM tab1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL - SUM( DISTINCT - col1 ) - + 59 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - SUM ( DISTINCT - col1 ) - + 59 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT DISTINCT - 23 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - 23 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT ( - ( + + ( 77 ) ) ) AS col0, - SUM( DISTINCT 92 ) FROM tab2
----
-77
-92

skipif mysql # not compatible
query II rowsort label-5714
SELECT ( - ( + + ( 77 ) ) ) AS col0, - SUM ( DISTINCT 92 ) FROM tab2
----
-77
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT DISTINCT - MIN( DISTINCT 50 ) AS col0, 77 AS col1 FROM tab2 AS cor0
----
-50
77

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT - MIN ( DISTINCT 50 ) AS col0, 77 AS col1 FROM tab2 AS cor0
----
-50
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT - COUNT( col2 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT - COUNT ( col2 ) col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 3 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * + 28 FROM tab2 AS cor0
----
1288
1792
2100

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * + 28 FROM tab2 AS cor0
----
1288
1792
2100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, - 32 + 63 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - + col2 / + col0 NOT BETWEEN - col1 AND col1 + + 44