sqllogictest
Artifact Content
Not logged in

Artifact 548a9eb5ade8bc23d7575ddbcd559de362a41189:


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 + + 97 * col1 AS col1 FROM tab2 AS cor0
----
4947
6499
7469

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col0 NOT IN ( col1 + 7 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col0 NOT IN ( col1 + 7 * + col2 )
----
3

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col2 - + 99 NOT BETWEEN 74 AND NULL
----
1
21
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL - CAST( - CAST( 16 AS SIGNED ) AS SIGNED ) + 78 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - CAST ( - CAST ( 16 AS INTEGER ) AS INTEGER ) + 78 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col1 * + col2 + col0 FROM tab0 WHERE NOT ( col1 + col0 / + col0 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7
SELECT DISTINCT ( + 87 ) * col0 AS col0 FROM tab1 WHERE NULL <= ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT ( + 87 ) * col0 AS col0 FROM tab1 WHERE NULL <= ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL + 52 * + - col2 + col1 FROM tab1
----
-3063
-3489
-4978

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

query I rowsort
SELECT 88 + + col0 + col2 FROM tab0
----
150
185
284

query I rowsort
SELECT DISTINCT 76 - col2 AS col0 FROM tab0
----
-23
29
66

query I rowsort
SELECT 29 + - 6 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NULL ) = col2 + + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 68 IS NULL
----

query I rowsort
SELECT 7 * + 67 + - 6 FROM tab1
----
463
463
463

query I rowsort
SELECT - col0 * + 84 * 62 + col1 FROM tab1
----
-265594
-442675
-473881

query I rowsort
SELECT + col1 + + 58 + - col1 AS col2 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 / + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 / + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT - - MIN( 95 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-19
SELECT - - MIN ( 95 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - COUNT( DISTINCT 22 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT - COUNT ( DISTINCT 22 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

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

query I rowsort
SELECT col1 - col1 * + + 87 + 91 AS col0 FROM tab0
----
-1715
-6875
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT ALL - col0 AS col0, - ( + - col1 ) + - col1 FROM tab2
----
-46
0
-64
0
-75
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT COUNT( * ) - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT 76 + - col2 + - col0 = ( 81 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-26
SELECT COUNT ( * ) - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 76 + - col2 + - col0 = ( 81 )
----
0

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

query I rowsort
SELECT ALL 50 * 7 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
350
350
350

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) + 49 BETWEEN col0 AND col0
----
46
64
75

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

query I rowsort
SELECT ALL - 64 * col2 * - ( col0 ) FROM tab0 AS cor0
----
45120
55680
614592

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT 55 * - SUM( ALL 64 ) col0 FROM tab0 AS cor0 WHERE NOT + col1 - col0 IN ( col0 )
----
-10560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-33
SELECT 55 * - SUM ( ALL 64 ) col0 FROM tab0 AS cor0 WHERE NOT + col1 - col0 IN ( col0 )
----
-10560

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT ALL + + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT + 30 * CAST( + ( + 95 ) AS SIGNED ) FROM tab2
----
2850
2850
2850

skipif mysql # not compatible
query I rowsort label-37
SELECT + 30 * CAST ( + ( + 95 ) AS INTEGER ) FROM tab2
----
2850
2850
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT + 48 * - + SUM( col1 ) AS col0 FROM tab1
----
-3168

skipif mysql # not compatible
query I rowsort label-38
SELECT + 48 * - + SUM ( col1 ) AS col0 FROM tab1
----
-3168

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( 11 ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT ( + MIN( - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT ( + MIN ( - col1 ) ) FROM tab1
----
-47

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL = col0 * - - col0
----

query I rowsort
SELECT 56 + col0 AS col0 FROM tab0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-44
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> - col1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 < ( + 20 )
----
15
81
47
87
21
10

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

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

query I rowsort
SELECT + col1 + - col0 + - - col1 FROM tab2 AS cor0
----
56
59
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 89 ) BETWEEN + 10 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + - SUM( + - 64 ) AS col2 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-51
SELECT + - SUM ( + - 64 ) AS col2 FROM tab0 AS cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT - 35 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col2 - - - col2 AND CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-52
SELECT - 35 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col2 - - - col2 AND CAST ( + col2 AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-53
SELECT ALL + CAST ( - + COUNT ( ALL - 16 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT col1 + 39 + + col0 + - - col2 FROM tab1 AS cor0
----
188
200
245

query I rowsort
SELECT 94 * - col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL + - col2 + - col2 FROM tab1 WHERE NOT - 45 IS NULL
----
-118
-136
-192

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT + COUNT( * ), - 3 + - MIN( + - 53 ) AS col0 FROM tab2
----
3
50

skipif mysql # not compatible
query II rowsort label-59
SELECT + COUNT ( * ), - 3 + - MIN ( + - 53 ) AS col0 FROM tab2
----
3
50

query III rowsort
SELECT * FROM tab1 WHERE 93 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 31 = - col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-62
SELECT DISTINCT * FROM tab1 WHERE + + 0 - + - CAST( NULL AS SIGNED ) + col0 + col0 = 64
----

skipif mysql # not compatible
query III rowsort label-62
SELECT DISTINCT * FROM tab1 WHERE + + 0 - + - CAST ( NULL AS INTEGER ) + col0 + col0 = 64
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-64
SELECT DISTINCT + 60 - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + 60 - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
57

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - 15 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT MIN( + col0 ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= ( 15 * - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT MIN ( + col0 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= ( 15 * - 64 )
----
NULL

query I rowsort
SELECT - 44 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( ( col2 ) * - - col2 + 55 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-69
SELECT - MIN( ALL col1 ) + 23 DIV - SUM( - col0 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-69
SELECT - MIN ( ALL col1 ) + 23 / - SUM ( - col0 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-70
SELECT DISTINCT - - 22 AS col1, - ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-70
SELECT DISTINCT - - 22 AS col1, - ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
22
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-71
SELECT - 58 DIV + 34, col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-71
SELECT - 58 / + 34, col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 = - - 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-73
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( + 12 AS SIGNED ) * - 54 + - - 81 / - col2 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-73
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( + 12 AS INTEGER ) * - 54 + - - 81 / - col2 IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT + COUNT( * ) * - 53 - 44 AS col0 FROM tab0 cor0
----
-203

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT + COUNT ( * ) * - 53 - 44 AS col0 FROM tab0 cor0
----
-203

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

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

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

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - - 36 / - MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT - - MAX( DISTINCT 33 ) AS col2, - 91 FROM tab1 AS cor0
----
33
-91

skipif mysql # not compatible
query II rowsort label-77
SELECT - - MAX ( DISTINCT 33 ) AS col2, - 91 FROM tab1 AS cor0
----
33
-91

query I rowsort
SELECT ALL 14 * 27 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
378
378
378

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

query I rowsort
SELECT + 77 * - - 47 AS col1 FROM tab0 AS cor0
----
3619
3619
3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + 72 col0, col2 * - 16 + - + 46 + ( + 10 ) * + 67 FROM tab2 AS cor0
----
-3672
256
-4824
-304
-5544
-16

query II rowsort
SELECT ALL + col2 AS col0, - ( - col0 ) + + + 4 + + col1 FROM tab1
----
59
94
68
142
96
69

query I rowsort
SELECT DISTINCT - 66 + + col0 AS col2 FROM tab1
----
-15
19
25

query I rowsort
SELECT ALL + - 71 FROM tab0 WHERE NOT - col2 IS NULL
----
-71
-71
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + COUNT( * ) * - 83 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-86
SELECT + COUNT ( * ) * - 83 FROM tab0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT col2 DIV 53 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-87
SELECT col2 / 53 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( + 15, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 46 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 98 * + col2 AND ( col2 ) * col1
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( - col1 ) * - col2 * - 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT - 74 + + COUNT( * ) FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - 74 + + COUNT ( * ) FROM tab1 cor0
----
-71

query I rowsort
SELECT DISTINCT 60 + 71 FROM tab0, tab1 AS cor0
----
131

query I rowsort
SELECT ALL col2 * + - col0 - 49 FROM tab2 WHERE NOT - + col0 * - 79 IN ( ( - + col2 ) )
----
-1107
-2609
-4399

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT MIN( + 77 ) FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-96
SELECT MIN ( + 77 ) FROM tab0 cor0
----
77

query I rowsort
SELECT - + col2 * 80 AS col0 FROM tab1 AS cor0
----
-4720
-5440
-7680

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col1 * - - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 63 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 + + - 63 FROM tab2 AS cor0
----
-12
14
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + + ( + + ( - col1 ) ) + 38 + + col0 col2 FROM tab2
----
61
69
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - col0 / - 38
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-104
SELECT col2 + - col2 / col2 + col2 * CAST( NULL AS DECIMAL ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-104
SELECT col2 + - col2 / col2 + col2 * CAST ( NULL AS REAL ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query II rowsort label-105
SELECT - col2 + - 17 DIV + col2 AS col0, col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif mysql # not compatible
query II rowsort label-105
SELECT - col2 + - 17 / + col2 AS col0, col2 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT 81 + + 19 FROM tab2
----
100
100
100

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT + 6 + - - COUNT( ALL + + col1 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT + 6 + - - COUNT ( ALL + + col1 ) AS col1 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT ALL col1 - - col0 DIV + col2 col0 FROM tab1
----
14
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-109
SELECT ALL col1 - - col0 / + col2 col0 FROM tab1
----
14
48
6

query I rowsort
SELECT - 81 FROM tab2 AS cor0 WHERE - 4 * - col0 IS NOT NULL
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - 24 - col0 FROM tab0 AS cor0
----
-111
-121
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL - 65 * + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( + col1 - - col2 ) <= - 83 )
----
-195

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - 65 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( + col1 - - col2 ) <= - 83 )
----
-195

query I rowsort
SELECT ALL 27 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - COUNT( * ) * - 40 AS col2 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - COUNT ( * ) * - 40 AS col2 FROM tab1
----
120

query I rowsort
SELECT - col0 * + - ( - col2 ) FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT + ( - COUNT( * ) ) + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT + ( - COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT + + 4 DIV - col1 + - 49 + - + col1 FROM tab2 AS cor0
----
-100
-116
-126

skipif mysql # not compatible
query I rowsort label-118
SELECT + + 4 / - col1 + - 49 + - + col1 FROM tab2 AS cor0
----
-100
-116
-126

query I rowsort
SELECT - + 35 * - col1 * - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * - + 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col1 * - col2 * + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-122
SELECT DISTINCT + + CAST( col2 AS SIGNED ) * col2 AS col1 FROM tab0 cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) * col2 AS col1 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT col2 * 59 FROM tab1 cor0
----
3481
4012
5664

query I rowsort
SELECT + 22 * ( + - col0 ) FROM tab1
----
-1122
-1870
-2002

query I rowsort
SELECT ALL - 99 * ( - - 21 ) AS col2 FROM tab2
----
-2079
-2079
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT + 66 * - - ( + - COUNT( * ) ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT + 66 * - - ( + - COUNT ( * ) ) FROM tab2
----
-198

query I rowsort
SELECT ALL 90 + - 58 FROM tab2
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col2 FROM tab0 WHERE NOT ( ( NOT - 19 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 1 * col0
----

query I rowsort
SELECT DISTINCT + 13 * col1 + 4 * - - col2 AS col1 FROM tab2 AS cor0
----
1103
1161
755

query I rowsort
SELECT ALL 8 + - col1 FROM tab1
----
-39
-6
3

query I rowsort
SELECT - 53 * - 66 FROM tab2 AS cor0
----
3498
3498
3498

onlyif mysql # DIV for integer division: 
query II rowsort label-133
SELECT + 44, 83 * - - ( - col1 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
44
83
44
83
44
83

skipif mysql # not compatible
query II rowsort label-133
SELECT + 44, 83 * - - ( - col1 ) / - col1 AS col2 FROM tab1 AS cor0
----
44
83
44
83
44
83

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

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

query I rowsort
SELECT ALL 35 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
35
35
35

query I rowsort
SELECT DISTINCT 36 + + col1 FROM tab0 AS cor0
----
117
37
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT col2 DIV col0 + + + col2 + - + 27 AS col1 FROM tab2 AS cor0
----
-4
13
31

skipif mysql # not compatible
query I rowsort label-138
SELECT col2 / col0 + + + col2 + - + 27 AS col1 FROM tab2 AS cor0
----
-4
13
31

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL 81 + SUM( DISTINCT - - 22 ) AS col2 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL 81 + SUM ( DISTINCT - - 22 ) AS col2 FROM tab1
----
103

query I rowsort
SELECT col0 - ( + col2 ) + 73 + 5 FROM tab2
----
101
102
95

query II rowsort
SELECT - + col0 AS col1, col2 + - col0 * - + col0 FROM tab2 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 FROM tab1 AS cor0 WHERE ( NULL ) <= - 60
----

query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col1 FROM tab0 AS cor0 WHERE 8 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT DISTINCT + 95, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 86 * - - col1 IS NULL
----
95
3

skipif mysql # not compatible
query II rowsort label-144
SELECT DISTINCT + 95, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 86 * - - col1 IS NULL
----
95
3

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT DISTINCT - + 53 AS col1, - COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-53
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-145
SELECT DISTINCT - + 53 AS col1, - COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-53
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE NOT - col1 + + 46 + + 27 IN ( - col2, col2 )
----
10
47
99

query II rowsort
SELECT ALL - col0 - - 11, - col0 * col2 AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-40
-4896
-74
-5015
-80
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT - + 47 DIV col1 FROM tab0 cor0
----
-2
-47
0

skipif mysql # not compatible
query I rowsort label-149
SELECT - + 47 / col1 FROM tab0 cor0
----
-2
-47
0

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

skipif mysql # not compatible
query III rowsort label-150
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col2 AND + 83 * + ( 97 ) + + col2
----

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

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

query I rowsort
SELECT DISTINCT + 63 * - - col1 AS col1 FROM tab1 AS cor0
----
2961
315
882

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-155
SELECT * FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-155
SELECT * FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 60 - - 66 FROM tab2 WHERE NOT ( 76 + + 11 * - col1 ) IS NULL
----
126
126
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT COUNT( * ) * - 89 DIV - - 73 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-157
SELECT COUNT ( * ) * - 89 / - - 73 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT 18 * + COUNT( * ) + - MIN( DISTINCT + + ( - col1 ) ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-158
SELECT 18 * + COUNT ( * ) + - MIN ( DISTINCT + + ( - col1 ) ) FROM tab0
----
135

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL 70 + - ( + 19 ) + + MIN( DISTINCT + 69 ) col1 FROM tab1
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-165
SELECT ALL 70 + - ( + 19 ) + + MIN ( DISTINCT + 69 ) col1 FROM tab1
----
120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT - + 35 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - + 35 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
105

query I rowsort
SELECT 87 + + col2 FROM tab2 AS cor0
----
110
127
145

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab0 AS cor0 WHERE - col0 IN ( col1, - col0 + - col2 + - 88 + + col0 + col0 )
----

query I rowsort
SELECT ALL 1 * - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-173
SELECT DISTINCT - col2 * col0 AS col1, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

skipif mysql # not compatible
query II rowsort label-173
SELECT DISTINCT - col2 * col0 AS col1, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL - 56 * - COUNT( * ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL - 56 * - COUNT ( * ) FROM tab1 AS cor0
----
168

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-177
SELECT + col2 AS col0, 52 - + col2 + - - col1 DIV - 91 FROM tab1
----
59
-7
68
-16
96
-44

skipif mysql # not compatible
query II rowsort label-177
SELECT + col2 AS col0, 52 - + col2 + - - col1 / - 91 FROM tab1
----
59
-7
68
-16
96
-44

query II rowsort
SELECT + col2 AS col2, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL + SUM( DISTINCT - 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + SUM ( DISTINCT - 81 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 IN ( + col1 )
----

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

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

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

query II rowsort
SELECT 51 + + + col1 AS col2, + 82 AS col0 FROM tab0 AS cor0
----
132
82
52
82
72
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT 10 + + + SUM( ALL - col1 ) FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 10 + + + SUM ( ALL - col1 ) FROM tab0 cor0
----
-93

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-188
SELECT DISTINCT + COUNT ( * ) + + 45 col2 FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT - CAST( - 2 AS SIGNED ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-189
SELECT - CAST ( - 2 AS INTEGER ) FROM tab2
----
2
2
2

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

query I rowsort
SELECT ALL + 11 * + col0 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-192
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col2 AND CAST( + 34 AS SIGNED )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-192
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col2 AND CAST ( + 34 AS INTEGER )
----
15
81
47
97
1
99

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

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

query I rowsort
SELECT ALL 28 * 44 FROM tab2 AS cor0
----
1232
1232
1232

query I rowsort
SELECT - 36 AS col2 FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT + + col2 * + - 20 + + col2 AS col0 FROM tab0 AS cor0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT - + MIN( - 96 ) * + + 90 FROM tab0 AS cor0 WHERE 65 <= col1
----
8640

skipif mysql # not compatible
query I rowsort label-197
SELECT - + MIN ( - 96 ) * + + 90 FROM tab0 AS cor0 WHERE 65 <= col1
----
8640

query I rowsort
SELECT DISTINCT - 47 - + + col2 AS col0 FROM tab2 AS cor0
----
-105
-70
-87

query I rowsort
SELECT DISTINCT col0 * - 19 * - - col0 + + col0 FROM tab1 AS cor0
----
-137190
-157248
-49368

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

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

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

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

query I rowsort
SELECT 66 * + + 32 FROM tab2 AS cor0 WHERE NULL > - 10
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT + col1 * 50 DIV - - 37 col0 FROM tab0 AS cor0
----
1
109
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-204
SELECT + col1 * 50 / - - 37 col0 FROM tab0 AS cor0
----
1
109
28

query I rowsort
SELECT DISTINCT col0 * - col0 * 55 AS col0 FROM tab1 AS cor0
----
-143055
-397375
-455455

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 45 + - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + 39 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-208
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + 39 = ( NULL )
----

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 31 ) * - 68 FROM tab1 AS cor0
----
2108

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

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

query III rowsort
SELECT * FROM tab0 WHERE 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT 92 + - COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 92 + - COUNT ( * ) FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT + - 78 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + - 78 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + - 14 + + ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-216
SELECT + - 14 + + ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-11

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

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

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

query I rowsort
SELECT col0 - 30 FROM tab2
----
16
34
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-220
SELECT ALL + MAX( DISTINCT col0 ) + - - SUM( CAST( col1 AS SIGNED ) ) AS col0, COUNT( * ) + + 84 FROM tab2
----
270
87

skipif mysql # not compatible
query II rowsort label-220
SELECT ALL + MAX ( DISTINCT col0 ) + - - SUM ( CAST ( col1 AS INTEGER ) ) AS col0, COUNT ( * ) + + 84 FROM tab2
----
270
87

query I rowsort
SELECT col1 * 69 AS col1 FROM tab0 cor0
----
1449
5589
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL + col2 * col0 + + col2 + - 33 * col1 * - 67 AS col1 FROM tab0 AS cor0
----
11913
179843
47311

query I rowsort
SELECT DISTINCT + 60 * col1 AS col1 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT DISTINCT - 18 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + ( - - 24 )
----

query I rowsort
SELECT + 90 AS col0 FROM tab2 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL SUM( - 26 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL SUM ( - 26 ) FROM tab0
----
-78

query I rowsort
SELECT DISTINCT - 69 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + + col1 ) FROM tab2
----
51
67
77

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT - col1 * - 1 + - col2 DIV - - 35 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
21
80

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - col1 * - 1 + - col2 / - - 35 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
21
80

query II rowsort
SELECT DISTINCT + + 5 AS col0, + 39 AS col1 FROM tab1 AS cor0
----
5
39

onlyif mysql # DIV for integer division: 
query II rowsort label-234
SELECT col0 * + 16, + 15 DIV col2 AS col2 FROM tab0 AS cor0
----
1392
1
1552
0
240
0

skipif mysql # not compatible
query II rowsort label-234
SELECT col0 * + 16, + 15 / col2 AS col2 FROM tab0 AS cor0
----
1392
1
1552
0
240
0

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

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

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

query I rowsort
SELECT 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT IN ( + 17 )
----

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-242
SELECT DISTINCT - - COUNT( * ) DIV - + 14, 50 AS col2 FROM tab0 AS cor0
----
0
50

skipif mysql # not compatible
query II rowsort label-242
SELECT DISTINCT - - COUNT ( * ) / - + 14, 50 AS col2 FROM tab0 AS cor0
----
0
50

query I rowsort
SELECT + 58 + - + col2 FROM tab1 AS cor0
----
-1
-10
-38

query I rowsort
SELECT + 61 * - - col0 + + col1 AS col1 FROM tab1 cor0
----
3125
5190
5598

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT + COUNT( * ) + + MIN( DISTINCT + - 50 ) AS col1 FROM tab0 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-245
SELECT + COUNT ( * ) + + MIN ( DISTINCT + - 50 ) AS col1 FROM tab0 cor0
----
-47

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

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

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

query I rowsort
SELECT ALL + 15 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col1 + - col1 <= - - col0 / col0 + col2
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-249
SELECT 2 / + 40 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - 52 * + - COUNT( * ) + + - ( - 35 ) + - 99 FROM tab0 WHERE + + 92 + col2 + - col1 < NULL
----
-64

skipif mysql # not compatible
query I rowsort label-250
SELECT - 52 * + - COUNT ( * ) + + - ( - 35 ) + - 99 FROM tab0 WHERE + + 92 + col2 + - col1 < NULL
----
-64

query II rowsort
SELECT col2, col2 * + col2 * - + 22 + + 96 FROM tab1
----
59
-76486
68
-101632
96
-202656

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-252
SELECT DISTINCT - col1 + + col0 + - CAST ( NULL AS INTEGER ), + 98 col2 FROM tab2
----
NULL
98

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

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

query I rowsort
SELECT DISTINCT col2 * 48 + - col0 + col0 * - + 41 FROM tab2
----
-366
-768
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL - MIN( ALL - col0 ) - MIN( DISTINCT col2 ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL - MIN ( ALL - col0 ) - MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
52

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT DISTINCT + 33 AS col2, SUM( ALL - + col0 ) FROM tab2 AS cor0
----
33
-185

skipif mysql # not compatible
query II rowsort label-259
SELECT DISTINCT + 33 AS col2, SUM ( ALL - + col0 ) FROM tab2 AS cor0
----
33
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT MAX( ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT MAX ( ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT 7 + + SUM( - 7 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-261
SELECT 7 + + SUM ( - 7 ) FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL ( 65 ) + SUM( + + col0 ) * + 13 - - 7 FROM tab1
----
3023

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL ( 65 ) + SUM ( + + col0 ) * + 13 - - 7 FROM tab1
----
3023

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-264
SELECT + + col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-264
SELECT + + col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-265
SELECT col0 * col1, col0 DIV - - col1 AS col2 FROM tab1 AS cor0
----
425
17
4277
1
714
3

skipif mysql # not compatible
query II rowsort label-265
SELECT col0 * col1, col0 / - - col1 AS col2 FROM tab1 AS cor0
----
425
17
4277
1
714
3

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT + - ( + MAX( ALL - col2 ) ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-266
SELECT + - ( + MAX ( ALL - col2 ) ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 24 * + 76 FROM tab2 AS cor0
----
1824

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

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

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

query II rowsort
SELECT ALL col0 AS col1, + 75 FROM tab0
----
15
75
87
75
97
75

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT DISTINCT 80 * + SUM( DISTINCT col0 ) FROM tab2
----
14800

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT 80 * + SUM ( DISTINCT col0 ) FROM tab2
----
14800

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 68 ) = - 20 / - col1 + - - ( - 18 ) * col1
----
3

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 68 ) = - 20 / - col1 + - - ( - 18 ) * col1
----
3

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 35 ) = - 56
----

query I rowsort
SELECT 18 * col1 FROM tab2
----
1206
1386
918

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-278
SELECT + + COUNT ( * ) col1 FROM tab1 WHERE - + col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-279
SELECT ALL col2, col0 + + col2 DIV col1 FROM tab1
----
59
96
68
92
96
57

skipif mysql # not compatible
query II rowsort label-279
SELECT ALL col2, col0 + + col2 / col1 FROM tab1
----
59
96
68
92
96
57

query II rowsort
SELECT col0, - col2 - + 5 FROM tab0
----
15
-52
87
-15
97
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT - 42 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-281
SELECT - 42 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + 56 FROM tab1 AS cor0 WHERE NOT col2 - - col1 = NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT 51 AS col0 FROM tab1 AS cor0 WHERE 82 + + col2 = - - col1
----

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

skipif mysql # not compatible
query I rowsort label-286
SELECT COUNT ( * ) * - + COUNT ( * ) * + + 15 + COUNT ( + - col2 ) FROM tab1 AS cor0
----
-132

query II rowsort
SELECT ALL - 64, ( col0 ) FROM tab2 cor0
----
-64
46
-64
64
-64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT DISTINCT col2 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT col2 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL 95 * - 51 + - MAX( + col0 ) FROM tab0
----
-4942

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL 95 * - 51 + - MAX ( + col0 ) FROM tab0
----
-4942

query I rowsort
SELECT + col1 + - + ( + + col0 ) FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col0 + 79 * 30 FROM tab1
----
2421
2455
2461

query I rowsort
SELECT + col0 * - + 78 + + col0 * + col0 * col1 AS col2 FROM tab2
----
104328
310400
371025

query III rowsort
SELECT * FROM tab0 WHERE - - col0 / + + col1 * - 16 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT ALL 80 + + col0 DIV - 88 FROM tab1
----
79
80
80

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL 80 + + col0 / - 88 FROM tab1
----
79
80
80

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

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

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2 WHERE ( - 34 ) >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT - CAST( ( - col2 ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-298
SELECT - CAST ( ( - col2 ) AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + ( + 71 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query II rowsort
SELECT DISTINCT + + 20, col2 + + 62 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
20
-2783
20
-3864
20
-4517

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT - SUM( + 87 ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT - SUM ( + 87 ) FROM tab1 AS cor0
----
-261

query I rowsort
SELECT - 7 * - + col0 FROM tab0 AS cor0
----
105
609
679

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

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

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

query I rowsort
SELECT + 9 + + col0 - + 93 + - col2 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 84, + col2, 67, + + 35 + + col0 - + col0 + + ( - col1 ) * col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT DISTINCT + CAST( AVG ( + + col1 ) AS SIGNED ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + CAST ( AVG ( + + col1 ) AS INTEGER ) AS col0 FROM tab2
----
65

query I rowsort
SELECT DISTINCT + 24 * - col2 * - col2 * + 70 FROM tab1
----
15482880
5848080
7768320

query I rowsort
SELECT ALL + col2 * + 78 AS col2 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT col2 * + 2 FROM tab2
----
116
46
80

query I rowsort
SELECT col0 * + + col0 - + col1 AS col2 FROM tab2 AS cor0
----
2065
4019
5558

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * - + col2 col0, col0 + col0 AS col0 FROM tab2 AS cor0
----
1173
92
3080
128
3886
150

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

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

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

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

query I rowsort
SELECT + - col1 + col0 * - col1 FROM tab0 AS cor0
----
-1296
-1848
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL + 32 - COUNT( * ) - - 39 AS col2 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + 32 - COUNT ( * ) - - 39 AS col2 FROM tab2 cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL + ( - col1 ) DIV + 38 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + ( - col1 ) / + 38 FROM tab0 cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT 68 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-320
SELECT 68 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
204

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

query I rowsort
SELECT DISTINCT - - 11 + + col2 + + col2 + col1 AS col0 FROM tab2 AS cor0
----
108
168
194

query I rowsort
SELECT + col1 * - - col0 + - col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + MAX( - col1 ) * - 95 FROM tab1 AS cor0
----
475

skipif mysql # not compatible
query I rowsort label-324
SELECT + MAX ( - col1 ) * - 95 FROM tab1 AS cor0
----
475

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= - col2
----

query I rowsort
SELECT col2 * 60 AS col0 FROM tab2 AS cor0
----
1380
2400
3480

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

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

query I rowsort
SELECT ALL col2 + col0 + - - 99 FROM tab0
----
161
196
295

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-329
SELECT ( + CAST( NULL AS DECIMAL ) ) * + + col0 - + CAST( NULL AS DECIMAL ) + - 36 / + + 23 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT ( + CAST ( NULL AS REAL ) ) * + + col0 - + CAST ( NULL AS REAL ) + - 36 / + + 23 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 62 + - - col2 FROM tab2
----
102
120
85

query I rowsort
SELECT ( + col0 ) - col2 - + - 49 + - col0 AS col2 FROM tab2
----
-9
26
9

query II rowsort
SELECT DISTINCT 54, + col0 FROM tab1 WHERE + col0 IS NOT NULL
----
54
51
54
85
54
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT ALL + col0 + + - col0 FROM tab0 AS cor0 WHERE NOT + 33 > NULL OR + CAST( NULL AS SIGNED ) > + col1 / + - col1 + col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + col0 + + - col0 FROM tab0 AS cor0 WHERE NOT + 33 > NULL OR + CAST ( NULL AS INTEGER ) > + col1 / + - col1 + col2 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - - MIN( - + col2 ) + + MAX( ALL - + 37 ) col0 FROM tab0 AS cor0
----
-136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-334
SELECT - - MIN ( - + col2 ) + + MAX ( ALL - + 37 ) col0 FROM tab0 AS cor0
----
-136

query I rowsort
SELECT ALL + col2 * 22 * + col1 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
24633
64680
81606

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

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

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

query I rowsort
SELECT DISTINCT 5 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + 58 AS col0 FROM tab2 AS cor0 WHERE ( NOT - + 64 + + 31 IS NULL )
----
-58
-58
-58

query I rowsort
SELECT + - 99 * - 1 AS col1 FROM tab0 AS cor0
----
99
99
99

query II rowsort
SELECT - ( - 87 ), + 27 * - col2 * + col1 * + col2 AS col0 FROM tab2 AS cor0
----
87
-3326400
87
-6085476
87
-728433

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

query I rowsort
SELECT - 55 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) * + + col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT 2 + col0 * + ( - col2 ) AS col2 FROM tab2
----
-1056
-2558
-4348

query I rowsort
SELECT - col2 + + - col1 FROM tab2
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - + col2 + col2 col2 FROM tab0
----
-1974
-4158
-420

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + 90 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col1 * - 31 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 + - col2 col0 FROM tab2 AS cor0
----
-10
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL + COUNT( * ) * - 51 FROM tab1 WHERE NULL <= - 14
----
0

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + COUNT ( * ) * - 51 FROM tab1 WHERE NULL <= - 14
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT + - 67 * - col2 * - + col1 * + col0 - + + col2 DIV + + col1 FROM tab2 cor0
----
-13207040
-19527150
-3615186

skipif mysql # not compatible
query I rowsort label-355
SELECT + - 67 * - col2 * - + col1 * + col0 - + + col2 / + + col1 FROM tab2 cor0
----
-13207040
-19527150
-3615186

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query II rowsort
SELECT ALL - - ( - col0 ) - ( - + col2 ) AS col2, col0 FROM tab2 cor0
----
-17
75
-23
46
-24
64

query II rowsort
SELECT + col2 AS col1, + col0 FROM tab1 WHERE NULL IS NULL
----
59
85
68
91
96
51

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

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

query I rowsort
SELECT col2 + + 69 * - + 14 * 78 * + col1 AS col1 FROM tab1
----
-1054776
-3541288
-376681

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 4 * - col0 + 86 + col0 col1 FROM tab0 WHERE - + col0 IS NOT NULL
----
161
521
571

query I rowsort
SELECT 63 * + col0 FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT - COUNT( DISTINCT - 40 ) * + + COUNT( * ) + - 63 DIV - COUNT( * ) - 41 + + - MAX( 45 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - COUNT ( DISTINCT - 40 ) * + + COUNT ( * ) + - 63 / - COUNT ( * ) - 41 + + - MAX ( 45 ) FROM tab0
----
-68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - SUM( ALL - 99 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-368
SELECT - SUM ( ALL - 99 ) FROM tab0
----
297

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-370
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL + - MIN( DISTINCT + 37 ) AS col0 FROM tab2 AS cor0 WHERE col2 * col1 + col2 <> - + col1
----
-37

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + - MIN ( DISTINCT + 37 ) AS col0 FROM tab2 AS cor0 WHERE col2 * col1 + col2 <> - + col1
----
-37

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * + col2 + + - col2 col0 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - SUM( ALL - + 13 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-376
SELECT - SUM ( ALL - + 13 ) FROM tab1
----
39

query I rowsort
SELECT DISTINCT + col2 + col0 + + + col1 FROM tab0
----
118
143
197

query I rowsort
SELECT DISTINCT - 2 FROM tab2 WHERE NULL <= col2
----

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

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

query I rowsort
SELECT ALL ( ( + col1 ) ) + + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT col0 - + 56 FROM tab0
----
-41
31
41

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

query I rowsort
SELECT DISTINCT - 23 + - col1 FROM tab2
----
-100
-74
-90

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-386
SELECT DISTINCT ( - col0 ) - - ( 39 ) + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), 37 + col0 col0 FROM tab1 AS cor0
----
NULL
122
NULL
128
NULL
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-386
SELECT DISTINCT ( - col0 ) - - ( 39 ) + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), 37 + col0 col0 FROM tab1 AS cor0
----
NULL
122
NULL
128
NULL
88

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-387
SELECT + CAST ( NULL AS INTEGER ) * + - col0 col2 FROM tab0 AS cor0 WHERE 4 * col1 IS NULL
----

query I rowsort
SELECT ALL - col2 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1000
-103823
-970299

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2 * - 2 * col0 - - 69 + - + col2 - + col2 + 72 - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-390
SELECT DISTINCT - - COUNT( * ) AS col2, + MAX( - col0 ) DIV - CAST( - 44 AS SIGNED ) FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-390
SELECT DISTINCT - - COUNT ( * ) AS col2, + MAX ( - col0 ) / - CAST ( - 44 AS INTEGER ) FROM tab0 AS cor0
----
3
0

query I rowsort
SELECT + - 55 * + + 74 - + + col1 - + col1 * + 10 AS col2 FROM tab2 AS cor0
----
-4631
-4807
-4917

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + ( - col0 ) col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT - 83 - + COUNT( * ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-394
SELECT - 83 - + COUNT ( * ) FROM tab0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT - - 80 = NULL
----

query I rowsort
SELECT + 49 * col2 AS col1 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ALL 55 * col1 * + col2 FROM tab1
----
16225
175780
73920

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT COUNT( DISTINCT - + col1 ) * - 35 AS col2 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT COUNT ( DISTINCT - + col1 ) * - 35 AS col2 FROM tab1
----
-105

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col2 col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 84 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
198
20
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-404
SELECT DISTINCT - 8 - - - CAST( - col0 AS DECIMAL ) + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + - 13 + 18 + col2 * col1
----

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - 8 - - - CAST ( - col0 AS REAL ) + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + - 13 + 18 + col2 * col1
----

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

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

query II rowsort
SELECT ALL + col2 * - col2 AS col1, col0 AS col1 FROM tab2 WHERE - col2 BETWEEN NULL AND col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-410
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-410
SELECT DISTINCT + - ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col2 * col0 * - 70 col1 FROM tab2
----
-179160
-304442
-74037

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL 61 * + + COUNT( * ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL 61 * + + COUNT ( * ) FROM tab1
----
183

query I rowsort
SELECT ALL + col0 + + - 78 - - col0 AS col2 FROM tab1
----
104
24
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL - - col0 col2 FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) <= - 11 / col1
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-416
SELECT ALL - - col0 col2 FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) <= - 11 / col1
----
15
87
97

query I rowsort
SELECT ALL ( - col0 ) * 69 + + - 80 + - col2 AS col2 FROM tab1
----
-3695
-6004
-6427

query I rowsort
SELECT DISTINCT - col1 + - 72 AS col1 FROM tab0
----
-153
-73
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( + col0 ) col1 FROM tab1
----
-138
-65
-90

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-421
SELECT * FROM tab0 AS cor0 WHERE 6 + + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-421
SELECT * FROM tab0 AS cor0 WHERE 6 + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT ALL - 57 + - 55 FROM tab1
----
-112
-112
-112

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

query I rowsort
SELECT ALL - 75 + + 52 * col2 AS col2 FROM tab0 AS cor0
----
2369
445
5073

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT ALL + col0 DIV - col2 - col2 * + col2 FROM tab2 AS cor0
----
-1601
-3365
-531

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + col0 / - col2 - col2 * + col2 FROM tab2 AS cor0
----
-1601
-3365
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT DISTINCT 79 DIV + + 72 - + COUNT( DISTINCT + 12 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT 79 / + + 72 - + COUNT ( DISTINCT + 12 ) FROM tab1 cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 >= - - col0
----
75
67
58

query II rowsort
SELECT + - 58 * + 54 + - col0 AS col1, 46 FROM tab0 AS cor0
----
-3147
46
-3219
46
-3229
46

query II rowsort
SELECT ALL col0, - 96 * + + col1 * + 28 FROM tab2
----
46
-137088
64
-206976
75
-180096

query I rowsort
SELECT - 66 * + 74 FROM tab0
----
-4884
-4884
-4884

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * - - 54 col1 FROM tab2
----
648
648
648

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + col2 AS col1, - col1 AS col1 FROM tab2 cor0
----
23
-51
40
-77
58
-67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

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

query II rowsort
SELECT - 40, - 94 AS col0 FROM tab1 AS cor0
----
-40
-94
-40
-94
-40
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-450
SELECT col1 + + CAST( col0 AS SIGNED ) FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-450
SELECT col1 + + CAST ( col0 AS INTEGER ) FROM tab2
----
141
142
97

query I rowsort
SELECT + 21 + col0 FROM tab1 WHERE NOT - col0 IS NULL
----
106
112
72

query I rowsort
SELECT + 16 AS col0 FROM tab0 WHERE NOT 73 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 62 IS NULL
----

query I rowsort
SELECT DISTINCT 22 + 10 FROM tab0
----
32

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

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

query I rowsort
SELECT ( col0 ) - + 91 AS col0 FROM tab1
----
-40
-6
0

query I rowsort
SELECT - col0 * 36 AS col1 FROM tab2
----
-1656
-2304
-2700

query I rowsort
SELECT DISTINCT + 20 + - col1 FROM tab1 WHERE - col1 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - 44 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT 71 * - COUNT( DISTINCT col2 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT 71 * - COUNT ( DISTINCT col2 ) FROM tab0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT CAST( - col2 AS SIGNED ) * 84 AS col0 FROM tab2
----
-1932
-3360
-4872

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * 84 AS col0 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + 65 <= + col1 + - col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT MAX( DISTINCT + 24 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-464
SELECT MAX ( DISTINCT + 24 ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT MIN( 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-465
SELECT MIN ( 41 ) FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT SUM( DISTINCT col0 ) - MIN( DISTINCT col2 ) col2 FROM tab2
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-466
SELECT SUM ( DISTINCT col0 ) - MIN ( DISTINCT col2 ) col2 FROM tab2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT DISTINCT 84 + - COUNT( * ) * - 79 FROM tab1 WHERE NOT + 80 * + ( col2 ) IS NULL
----
321

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT 84 + - COUNT ( * ) * - 79 FROM tab1 WHERE NOT + 80 * + ( col2 ) IS NULL
----
321

query I rowsort
SELECT ( col1 ) - - col2 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL - col1 * 84 AS col2 FROM tab2
----
-4284
-5628
-6468

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-471
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND - 51
----

skipif mysql # not compatible
query III rowsort label-471
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 51
----

query I rowsort
SELECT - 99 AS col1 FROM tab1 WHERE + 92 + + 97 IS NOT NULL
----
-99
-99
-99

query I rowsort
SELECT - col1 - - 92 FROM tab0 AS cor0
----
11
71
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 79 - COUNT( * ) * + 7 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 79 - COUNT ( * ) * + 7 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT 80 DIV ( col2 ) + + 30 AS col0 FROM tab0 AS cor0
----
30
31
38

skipif mysql # not compatible
query I rowsort label-475
SELECT 80 / ( col2 ) + + 30 AS col0 FROM tab0 AS cor0
----
30
31
38

query I rowsort
SELECT DISTINCT 4 * + 77 AS col0 FROM tab1 AS cor0
----
308

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT col2 DIV + col2 + col1 AS col2 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-477
SELECT col2 / + col2 + col1 AS col2 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT - col0 + + col0 * - col2 AS col2 FROM tab1 cor0
----
-4947
-5100
-6279

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 98 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 * + 35 col2 FROM tab1
----
-805
-805
-805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT SUM( col2 ) DIV + MIN( DISTINCT col1 ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT SUM ( col2 ) / + MIN ( DISTINCT col1 ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
156

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
94

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL IN ( - ( ( 98 ) ) )
----

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - 30 FROM tab0 AS cor0
----
2430
30
630

query I rowsort
SELECT + ( - 50 ) FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT - + MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT - + MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL + MIN( DISTINCT col1 ) AS col1 FROM tab2 WHERE NOT ( + 7 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + MIN ( DISTINCT col1 ) AS col1 FROM tab2 WHERE NOT ( + 7 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 * + col2 * - 47 FROM tab2
----
-144760
-182642
-55131

query I rowsort
SELECT 99 * - 40 FROM tab0
----
-3960
-3960
-3960

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - COUNT( * ) FROM tab0 WHERE NOT + 31 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-494
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + 31 - col2 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) * - col0 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 3 col1 FROM tab2
----
-138
-192
-225

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT + col1 DIV - - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-500
SELECT + col1 / - - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT + ( - 13 ) * 78 FROM tab0 AS cor0 WHERE NOT NULL > 83
----

query I rowsort
SELECT col0 * - col1 * - 62 AS col1 FROM tab1
----
26350
265174
44268

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT SUM( ALL - - 70 ) AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-504
SELECT SUM ( ALL - - 70 ) AS col1 FROM tab1 AS cor0
----
210

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

query I rowsort
SELECT DISTINCT - + 20 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + + 79 AS col0 FROM tab1 AS cor0
----
79
79
79

query II rowsort
SELECT DISTINCT col2 * - col0, 84 AS col1 FROM tab2
----
-1058
84
-2560
84
-4350
84

query I rowsort
SELECT DISTINCT - 53 + + 71 + + 6 FROM tab1
----
24

query I rowsort
SELECT ALL col2 + 85 - + col0 FROM tab0
----
117
8
87

query I rowsort
SELECT DISTINCT - col2 * - 58 + col0 * 66 FROM tab0 WHERE - col1 BETWEEN + 22 AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-512
SELECT DISTINCT + col2 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + col2 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL 77 * - 3 + 5 + - col1 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT 97 * col1 FROM tab0 WHERE NULL IN ( - CAST( - + 21 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-514
SELECT 97 * col1 FROM tab0 WHERE NULL IN ( - CAST ( - + 21 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT 12 * + 85 + - COUNT( * ) AS col1 FROM tab1
----
1017

skipif mysql # not compatible
query I rowsort label-515
SELECT 12 * + 85 + - COUNT ( * ) AS col1 FROM tab1
----
1017

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE ( 50 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - 87 + + + MAX( DISTINCT - - col2 ) * COUNT( * ) AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-518
SELECT - 87 + + + MAX ( DISTINCT - - col2 ) * COUNT ( * ) AS col2 FROM tab2
----
87

query I rowsort
SELECT DISTINCT - ( col0 ) - + + 87 + col1 * + col1 * col1 AS col1 FROM tab2
----
132518
300601
456382

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

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

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

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * - col0 AND NULL
----

query I rowsort
SELECT 69 * - ( + - ( 91 ) ) - + - col2 AS col0 FROM tab2
----
6302
6319
6337

query I rowsort
SELECT DISTINCT - ( - 82 ) AS col1 FROM tab1
----
82

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-528
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-528
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

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

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

query II rowsort
SELECT + 88 AS col2, - 67 FROM tab2 AS cor0
----
88
-67
88
-67
88
-67

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 37 AS col1, - col0 FROM tab1
----
37
-51
37
-85
37
-91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 93, 44 + + - col0 col0 FROM tab2
----
-93
-2
-93
-20
-93
-31

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL IN ( col2 ) )
----

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

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

query II rowsort
SELECT DISTINCT col1, 78 + col0 FROM tab0 AS cor0
----
1
175
21
165
81
93

query I rowsort
SELECT DISTINCT 23 + + col1 AS col0 FROM tab0 AS cor0
----
104
24
44

query I rowsort
SELECT ALL - 4 + + 50 FROM tab2 AS cor0
----
46
46
46

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

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL - 94 + - ( + SUM ( + CAST ( NULL AS REAL ) ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + - 1 col0 FROM tab2 cor0
----
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-546
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + + CAST( NULL AS SIGNED ) ) / - col2
----

skipif mysql # not compatible
query III rowsort label-546
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + + CAST ( NULL AS INTEGER ) ) / - col2
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 + - + col2 + ( col1 ) + + + 53 IS NULL
----

query I rowsort
SELECT DISTINCT - - 55 * + 16 * - col1 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
374000
3763760
628320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 78 * - - ( - col0 ) * col2 + + 69 col1 FROM tab0
----
-54840
-67770
-748964

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT COUNT( * ) * 25 AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-551
SELECT COUNT ( * ) * 25 AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + MAX( 70 ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-552
SELECT + MAX ( 70 ) AS col1 FROM tab0
----
70

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

skipif mysql # not compatible
query I rowsort label-553
SELECT col2 / - ( - + col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 52 FROM tab2 WHERE NULL IN ( + - ( - col2 ) * - + col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( - 10 - + ( + - col1 ) ) NOT BETWEEN NULL AND + 52
----
0

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( - 10 - + ( + - col1 ) ) NOT BETWEEN NULL AND + 52
----
0

query I rowsort
SELECT DISTINCT + col0 + - - ( - - 72 ) FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT COUNT( * ) * + 43 + 40 + - COUNT( * ) AS col1 FROM tab0
----
166

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT COUNT ( * ) * + 43 + 40 + - COUNT ( * ) AS col1 FROM tab0
----
166

query I rowsort
SELECT DISTINCT col1 + - 79 AS col0 FROM tab0
----
-58
-78
2

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT - 91 - MAX( ALL - col1 ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT - 91 - MAX ( ALL - col1 ) AS col0 FROM tab2
----
-40

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

skipif mysql # not compatible
query III rowsort label-560
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = - ( col1 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * - 53 >= - + 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-563
SELECT DISTINCT + col0 DIV col1 AS col2, col2 col2 FROM tab1 AS cor0
----
1
68
17
59
3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-563
SELECT DISTINCT + col0 / col1 AS col2, col2 col2 FROM tab1 AS cor0
----
1
68
17
59
3
96

query I rowsort
SELECT ALL + + 59 AS col1 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT ( + + ( - - SUM( - + 97 ) ) ) DIV - 1 AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT ( + + ( - - SUM ( - + 97 ) ) ) / - 1 AS col2 FROM tab1 AS cor0
----
291

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

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

skipif mysql # not compatible
query I rowsort label-567
SELECT COUNT ( * ) * - - COUNT ( * ) / + SUM ( + col0 ) AS col0 FROM tab2
----
0

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 57 - col0 * - col1 + col0 <> ( - + col1 + - col2 + - col1 * - col0 )
----

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

query I rowsort
SELECT ALL col2 * + col1 * - col1 * + col1 AS col2 FROM tab0
----
-24977727
-92610
-99

query II rowsort
SELECT ALL + 73, col2 AS col0 FROM tab0
----
73
10
73
47
73
99

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + 9 + + COUNT( * ) * 80 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-573
SELECT + 9 + + COUNT ( * ) * 80 FROM tab2 AS cor0
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT ALL MAX( ALL + 94 ) DIV 84 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL MAX ( ALL + 94 ) / 84 AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + col0 * 87 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 * 87 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT - + 90 * + 97 + + COUNT( * ) * + 77 AS col0 FROM tab1 AS cor0
----
-8499

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - + 90 * + 97 + + COUNT ( * ) * + 77 AS col0 FROM tab1 AS cor0
----
-8499

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL > - ( + 5 ) + - col1 + + + 1 + + - col1 * + + 28 * + 70 * - col2 + - 62
----

query II rowsort
SELECT DISTINCT - 47, 10 AS col1 FROM tab1 WHERE + col2 * + + col0 + 94 + - - 28 NOT IN ( ( col1 ) )
----
-47
10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1, - 64 * - col1 * + 94 col2 FROM tab1 AS cor0
----
1
282752
1
30080
1
84224

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

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

query I rowsort
SELECT ALL + col1 + + + col1 + col1 AS col1 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT + ( - + 59 ) + + col0 FROM tab1 cor0
----
-8
26
32

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

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

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

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

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

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

query I rowsort
SELECT ALL - 58 + col1 FROM tab0
----
-37
-57
23

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 34 * col0 / col0 + col2 + + 88 NOT BETWEEN + 14 AND NULL
----

query I rowsort
SELECT DISTINCT - 64 + + col0 + + 72 * - col1 AS col0 FROM tab2
----
-3690
-4813
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT - COUNT( * ) * COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-593
SELECT - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ALL COUNT( * ) + + 95 AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL COUNT ( * ) + + 95 AS col1 FROM tab1
----
98

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

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

query I rowsort
SELECT + col2 * + col1 * - 24 AS col1 FROM tab0
----
-2376
-5040
-91368

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

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT 74 DIV + + 43 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-599
SELECT 74 / + + 43 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * + 4 AS col0 FROM tab1 AS cor0
----
204
340
364

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

query II rowsort
SELECT ALL - - 23 AS col2, - col2 AS col1 FROM tab2 cor0
----
23
-23
23
-40
23
-58

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

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + COUNT ( * ) + 42 FROM tab0 cor0
----
NULL

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

query II rowsort
SELECT + 60, col2 - + col0 AS col1 FROM tab1 AS cor0
----
60
-23
60
-26
60
45

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 > ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + COUNT( * ) * - - 49 AS col0 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-607
SELECT + COUNT ( * ) * - - 49 AS col0 FROM tab0
----
147

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 32 ) > col2
----
64
77
40
75
67
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-610
SELECT ALL 27 DIV - MAX( - 99 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL 27 / - MAX ( - 99 ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-611
SELECT col2 * - col0 AS col2, + 17 + - col0 DIV - 81 AS col0 FROM tab0
----
-705
17
-870
18
-9603
18

skipif mysql # not compatible
query II rowsort label-611
SELECT col2 * - col0 AS col2, + 17 + - col0 / - 81 AS col0 FROM tab0
----
-705
17
-870
18
-9603
18

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 + col0 + - col0 * + + col1 col2 FROM tab0 AS cor0
----
-1250
-1790
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-616
SELECT * FROM tab1 WHERE + 63 * CAST( col1 AS DECIMAL ) + + - 75 > NULL
----

skipif mysql # not compatible
query III rowsort label-616
SELECT * FROM tab1 WHERE + 63 * CAST ( col1 AS REAL ) + + - 75 > NULL
----

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

query I rowsort
SELECT ALL + - 88 - + + col1 FROM tab0 AS cor0
----
-109
-169
-89

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

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

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

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

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

query I rowsort
SELECT 96 * + + col0 * + 90 AS col2 FROM tab0 AS cor0
----
129600
751680
838080

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-624
SELECT DISTINCT - col0 col1, + CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-624
SELECT DISTINCT - col0 col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-625
SELECT DISTINCT * FROM tab1 WHERE - col0 IS NOT NULL AND + CAST( col2 AS SIGNED ) / + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-625
SELECT DISTINCT * FROM tab1 WHERE - col0 IS NOT NULL AND + CAST ( col2 AS INTEGER ) / + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 27 * col2 + + col0 AS col1 FROM tab1
----
1678
1927
2643

query I rowsort
SELECT ALL 84 * + 75 FROM tab0
----
6300
6300
6300

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

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT - MIN ( + - 50 ) AS col0 FROM tab2
----
50

query I rowsort
SELECT - 72 * - - col0 AS col2 FROM tab2
----
-3312
-4608
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT + CAST( + - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-630
SELECT + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - 8 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-632
SELECT - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 76 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 54 * 78 FROM tab2 cor0
----
-4212
-4212
-4212

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT 18 * COUNT( ALL - + col2 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT 18 * COUNT ( ALL - + col2 ) FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT 43 DIV - ( + col0 ) FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-636
SELECT 43 / - ( + col0 ) FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * + col2 col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
5192
5984
8448

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - ( - col1 ) <= - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col0 * col2 + 69 AS col1 FROM tab2 AS cor0
----
1127
2629
4419

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

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

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

query I rowsort
SELECT 30 + - 61 AS col2 FROM tab0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT + COUNT( * ) + MIN( DISTINCT + + col1 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-645
SELECT + COUNT ( * ) + MIN ( DISTINCT + + col1 ) AS col1 FROM tab2
----
54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT - 53 * - - COUNT( * ) DIV COUNT( * ) + + + SUM( + + 72 ) FROM tab2 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-647
SELECT - 53 * - - COUNT ( * ) / COUNT ( * ) + + + SUM ( + + 72 ) FROM tab2 AS cor0
----
163

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 62 * + col0 + - col2 AS col0 FROM tab0 cor0
----
-5404
-6113
-977

query I rowsort
SELECT ALL + col1 * + 46 AS col2 FROM tab0 AS cor0
----
3726
46
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-657
SELECT - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ), col2, - col0 )
----

skipif mysql # not compatible
query I rowsort label-657
SELECT - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ), col2, - col0 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col0 >= col2
----
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-659
SELECT + col2, col2 DIV - col1 FROM tab1
----
59
-11
68
-1
96
-6

skipif mysql # not compatible
query II rowsort label-659
SELECT + col2, col2 / - col1 FROM tab1
----
59
-11
68
-1
96
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL MIN( ALL + 10 ) * - 91 FROM tab0
----
-910

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL MIN ( ALL + 10 ) * - 91 FROM tab0
----
-910

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

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - MIN ( - col0 ) AS col0 FROM tab0
----
97

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

query I rowsort
SELECT ALL - 76 * + col1 * + ( - + 40 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
155040
203680
234080

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 NOT IN ( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 NOT IN ( 3 )
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col0
----

query II rowsort
SELECT ALL + - 32 AS col1, 68 FROM tab2 AS cor0
----
-32
68
-32
68
-32
68

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL 32 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 32 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-669
SELECT 66 * col0 AS col0, + 33 DIV - 94 + - + 42 * - col1 AS col2 FROM tab0
----
5742
882
6402
42
990
3402

skipif mysql # not compatible
query II rowsort label-669
SELECT 66 * col0 AS col0, + 33 / - 94 + - + 42 * - col1 AS col2 FROM tab0
----
5742
882
6402
42
990
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT SUM( ALL - 54 ) AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT SUM ( ALL - 54 ) AS col2 FROM tab2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT - 45 * - col0 * - col0 FROM tab1 WHERE NOT ( ( NOT NULL NOT IN ( - CAST( + col0 AS SIGNED ) + - + ( - col0 ), 50 ) ) )
----

skipif mysql # not compatible
query I rowsort label-671
SELECT - 45 * - col0 * - col0 FROM tab1 WHERE NOT ( ( NOT NULL NOT IN ( - CAST ( + col0 AS INTEGER ) + - + ( - col0 ), 50 ) ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT DISTINCT - COUNT( * ) * 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-747

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - COUNT ( * ) * 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-747

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-678
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-678
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( + - col2 AS INTEGER ) AND NULL
----

query II rowsort
SELECT 45 AS col0, - col2 FROM tab0 WHERE ( + - 20 * - + 53 * - col1 - - 78 ) IS NULL
----

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

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

query I rowsort
SELECT 1 * + + 35 AS col0 FROM tab0
----
35
35
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-683
SELECT ALL - 36 FROM tab1 WHERE col2 * - CAST( - col2 AS SIGNED ) IS NOT NULL
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - 36 FROM tab1 WHERE col2 * - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-36
-36
-36

query I rowsort
SELECT DISTINCT col0 + col2 + + 99 FROM tab1
----
243
246
258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT DISTINCT - - 55 DIV + - COUNT( * ) FROM tab2 WHERE NOT - + col2 + 88 * - + col1 IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT - - 55 / + - COUNT ( * ) FROM tab2 WHERE NOT - + col2 + 88 * - + col1 IS NULL
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT DISTINCT 19 + - - col2 + col1 DIV + 19 FROM tab0
----
118
30
70

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT 19 + - - col2 + col1 / + 19 FROM tab0
----
118
30
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + 69 ) col0 FROM tab0 WHERE + + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-689
SELECT * FROM tab1 WHERE + CAST( col0 AS SIGNED ) < + + col2
----
51
14
96

skipif mysql # not compatible
query III rowsort label-689
SELECT * FROM tab1 WHERE + CAST ( col0 AS INTEGER ) < + + col2
----
51
14
96

query I rowsort
SELECT ALL 56 AS col1 FROM tab1 AS cor0 WHERE NOT 31 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-691
SELECT DISTINCT - 60 * + 8 / + CAST( NULL AS SIGNED ) + + + 49 + + + COUNT( * ) * - 1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT - 60 * + 8 / + CAST ( NULL AS INTEGER ) + + + 49 + + + COUNT ( * ) * - 1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - 31 + + col0 + + col1 FROM tab2 AS cor0
----
110
111
66

query I rowsort
SELECT DISTINCT + col0 - - + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query II rowsort
SELECT 59 AS col1, + 86 AS col0 FROM tab1 AS cor0
----
59
86
59
86
59
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT + col2 * + 59 + + CAST( NULL AS SIGNED ) + + 27 / - 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT + col2 * + 59 + + CAST ( NULL AS INTEGER ) + + 27 / - 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 40 * - 26 * - col1 FROM tab1 AS cor0
----
14560
48880
5200

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT - col2 DIV + - col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT - col2 / + - col2 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT DISTINCT 56 + + COUNT( * ) - + 36 FROM tab2 AS cor0 WHERE NOT - col2 + + col0 IN ( + 62 )
----
23

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT 56 + + COUNT ( * ) - + 36 FROM tab2 AS cor0 WHERE NOT - col2 + + col0 IN ( + 62 )
----
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT DISTINCT - - col0 DIV - col2 col1 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-700
SELECT DISTINCT - - col0 / - col2 col1 FROM tab0 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT MAX( ALL - 0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-701
SELECT MAX ( ALL - 0 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + - col2 ) <> - col1
----

query I rowsort
SELECT DISTINCT ( 67 ) AS col0 FROM tab2
----
67

query II rowsort
SELECT ALL - - col1 - col1 AS col2, + 4 AS col0 FROM tab0 WHERE NOT + col1 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-706
SELECT - - MIN ( + 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-707
SELECT - + ( - AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT - + ( - AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 + + + col0 col1 FROM tab2
----
148
209
218

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT 80 DIV col1 + 17 FROM tab0
----
17
20
97

skipif mysql # not compatible
query I rowsort label-711
SELECT 80 / col1 + 17 FROM tab0
----
17
20
97

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 AND - 60
----

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT ALL - COUNT( * ) + - 9, + 69 col1 FROM tab2
----
-12
69

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

query I rowsort
SELECT col0 + - col2 + 40 AS col0 FROM tab2
----
57
63
64

query II rowsort
SELECT col2 AS col0, - 24 * col0 FROM tab0 cor0
----
10
-2088
47
-360
99
-2328

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

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT ALL + 37 DIV - - 94 * + 29 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + 37 / - - 94 * + 29 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 90 AS col1 FROM tab1 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT DISTINCT 1 + + COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT 1 + + COUNT ( * ) AS col0 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - 69 - - + COUNT( * ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-722
SELECT - 69 - - + COUNT ( * ) col1 FROM tab1
----
-66

query I rowsort
SELECT + col0 + - col2 + + ( - 17 ) + + - col2 AS col1 FROM tab0
----
-118
-96
50

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

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

query I rowsort
SELECT ALL - col2 + + col0 FROM tab2 AS cor0 WHERE NOT 41 * - col0 >= - ( - - col0 ) / - 59 + + 62
----
17
23
24

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 * - 8 * - col2 + - + 34 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - col1 * + 78 AS col0 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) > 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT + 69 * + COUNT( * ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-734
SELECT + 69 * + COUNT ( * ) FROM tab1
----
207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-735
SELECT - - col2 DIV 66 FROM tab2 AS cor0 WHERE CAST( 4 AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-735
SELECT - - col2 / 66 FROM tab2 AS cor0 WHERE CAST ( 4 AS INTEGER ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT + 12 - 44 AS col0 FROM tab2 AS cor0 WHERE - col2 / 13 IS NOT NULL
----
-32
-32
-32

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

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

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

query I rowsort
SELECT DISTINCT - 88 FROM tab0 WHERE + col2 <= col1
----
-88

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

skipif mysql # not compatible
query III rowsort label-740
SELECT * FROM tab1 AS cor0 WHERE 13 - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 31 + - col2 + + - col2 + + - col0 - - + 86 / - + 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-742
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 30 * ( - + CAST( NULL AS SIGNED ) ) * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-742
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 30 * ( - + CAST ( NULL AS INTEGER ) ) * - - col2 )
----

query I rowsort
SELECT ALL + col2 * + 62 AS col0 FROM tab2
----
1426
2480
3596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) * - + col2 col0 FROM tab2
----
1600
3364
529

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT + + 79 AS col0, MAX( DISTINCT 28 ) FROM tab2 AS cor0
----
79
28

skipif mysql # not compatible
query II rowsort label-750
SELECT + + 79 AS col0, MAX ( DISTINCT 28 ) FROM tab2 AS cor0
----
79
28

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT ALL 90 DIV - col1 FROM tab2 AS cor0 WHERE - 47 * - col1 + - + col0 * - col0 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 90 / - col1 FROM tab2 AS cor0 WHERE - 47 * - col1 + - + col0 * - col0 IS NOT NULL
----
-1
-1
-1

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

query II rowsort
SELECT ALL col2 * ( + col1 ), col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
210
87
3807
15
99
97

query III rowsort
SELECT * FROM tab2 WHERE NOT 19 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-755
SELECT col1 + - 14 FROM tab0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 72 * - col0 * col2 AS col2, + 61 FROM tab0
----
-50760
61
-62640
61
-691416
61

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT SUM( ALL - 75 ) col2 FROM tab0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-757
SELECT DISTINCT SUM ( ALL - 75 ) col2 FROM tab0
----
-225

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-760
SELECT col2 DIV - col1, col2 FROM tab0
----
-99
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-760
SELECT col2 / - col1, col2 FROM tab0
----
-99
99
0
10
0
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) / - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) / - col1 IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + + col2 + + + col1 FROM tab0 AS cor0 WHERE NOT + 76 / - - col1 / + col1 / - - col1 IS NULL
----
100
128
31

query II rowsort
SELECT - 79 + + col0, 66 AS col1 FROM tab1 cor0
----
-28
66
12
66
6
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + 53 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT + - ( - 84 ) + - ( - COUNT( ALL - col0 ) ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT + - ( - 84 ) + - ( - COUNT ( ALL - col0 ) ) AS col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL col2 + - - 15 FROM tab0
----
114
25
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - col1
----

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

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

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - col0 + + CAST ( + + 18 AS INTEGER ) / - - col1 AS col1 FROM tab1 AS cor0
----
-50
-82
-91

query II rowsort
SELECT + col1 * col2 + - col1, col1 FROM tab2 AS cor0
----
1122
51
3003
77
3819
67

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 92 * + + col0 * - - col1 / 16 <> - 43
----

query I rowsort
SELECT ALL + col0 + + - 54 FROM tab1 AS cor0
----
-3
31
37

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT ALL - CAST( NULL AS SIGNED ) + 32 * + + col0 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-778
SELECT ALL - CAST ( NULL AS INTEGER ) + 32 * + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT col0 + + 79 - - ( - ( col1 ) ) DIV - col0 FROM tab0
----
166
176
99

skipif mysql # not compatible
query I rowsort label-779
SELECT col0 + + 79 - - ( - ( col1 ) ) / - col0 FROM tab0
----
166
176
99

query I rowsort
SELECT DISTINCT + ( - ( + 15 ) ) FROM tab2 WHERE + - col2 + + col1 - - 28 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-781
SELECT DISTINCT 90 + + CAST( - - SUM( + + col2 ) AS SIGNED ) + + SUM( + - 40 ) FROM tab1
----
193

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT 90 + + CAST ( - - SUM ( + + col2 ) AS INTEGER ) + + SUM ( + - 40 ) FROM tab1
----
193

query II rowsort
SELECT 88 + - - col2, - col2 AS col2 FROM tab0
----
135
-47
187
-99
98
-10

query I rowsort
SELECT 78 * - col2 FROM tab1
----
-4602
-5304
-7488

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

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

query II rowsort
SELECT - col2 / + - col1 AS col1, + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT - MAX( 33 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-787
SELECT - MAX ( 33 ) FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-788
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + 56 * CAST( - col1 AS SIGNED ) + - + 98 * - 21
----

skipif mysql # not compatible
query III rowsort label-788
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + 56 * CAST ( - col1 AS INTEGER ) + - + 98 * - 21
----

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

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - MAX ( - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT SUM( DISTINCT + 54 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-790
SELECT SUM ( DISTINCT + 54 ) FROM tab2 AS cor0
----
54

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

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

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

query I rowsort
SELECT ALL + 82 * col1 AS col2 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT 61 * + - col2 FROM tab2
----
-1403
-2440
-3538

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-797
SELECT ALL col1, - col2 DIV col0 AS col2 FROM tab0
----
1
-1
21
0
81
-3

skipif mysql # not compatible
query II rowsort label-797
SELECT ALL col1, - col2 / col0 AS col2 FROM tab0
----
1
-1
21
0
81
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-798
SELECT - 96 DIV + + 44 AS col2, MIN( ALL col1 ) FROM tab2
----
-2
51

skipif mysql # not compatible
query II rowsort label-798
SELECT - 96 / + + 44 AS col2, MIN ( ALL col1 ) FROM tab2
----
-2
51

query I rowsort
SELECT + ( + 14 ) * + col1 + 12 * + - col2 * + - col2 + + - 21 AS col0 FROM tab0
----
117605
1473
27621

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

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL COUNT( DISTINCT - + 71 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL COUNT ( DISTINCT - + 71 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT + 11 AS col0, + COUNT( - - col1 ) FROM tab2 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-802
SELECT + 11 AS col0, + COUNT ( - - col1 ) FROM tab2 AS cor0
----
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL + + 28 + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + + 28 + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT 38 + col1 DIV 48 + - col0 FROM tab0
----
-49
-59
24

skipif mysql # not compatible
query I rowsort label-804
SELECT 38 + col1 / 48 + - col0 FROM tab0
----
-49
-59
24

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE - 45 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * 41 + - col0 col0 FROM tab0 AS cor0
----
1912
323
3962

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT DISTINCT + 68 AS col2, SUM( ALL - col1 ) AS col0 FROM tab1
----
68
-66

skipif mysql # not compatible
query II rowsort label-810
SELECT DISTINCT + 68 AS col2, SUM ( ALL - col1 ) AS col0 FROM tab1
----
68
-66

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

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

query II rowsort
SELECT 61 * 51 - + - 62 AS col2, col1 AS col1 FROM tab0
----
3173
1
3173
21
3173
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT ALL + + 41 DIV - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + + 41 / - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 30 + ( + ( + 14 ) ) FROM tab0 cor0
----
1
44
21
44
81
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT + - CAST( - + col0 AS SIGNED ) * - ( ( col0 ) ) FROM tab1 cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-816
SELECT + - CAST ( - + col0 AS INTEGER ) * - ( ( col0 ) ) FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT SUM( DISTINCT + - 55 ) DIV COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
-15

skipif mysql # not compatible
query I rowsort label-817
SELECT SUM ( DISTINCT + - 55 ) / COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT DISTINCT col0 DIV ( 58 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT col0 / ( 58 ) FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT 55 * - col1 * col2 AS col2 FROM tab2 AS cor0
----
-169400
-213730
-64515

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

query I rowsort
SELECT ALL - 73 - - - col1 AS col1 FROM tab0 AS cor0 WHERE + col1 * - col0 = + col0
----

query I rowsort
SELECT ALL - col2 * col0 * + 5 * + - col1 FROM tab0
----
285525
48015
91350

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-823
SELECT * FROM tab2 WHERE NOT 5 * - col1 * - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-823
SELECT * FROM tab2 WHERE NOT 5 * - col1 * - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT 75 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 91 + - 89 * + 67 * - - col1 AS col0 FROM tab1
----
-280170
-29724
-83391

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

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

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

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

query I rowsort
SELECT - col1 + 52 AS col2 FROM tab0 cor0
----
-29
31
51

query I rowsort
SELECT ALL + 37 * + col0 FROM tab1 AS cor0
----
1887
3145
3367

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - + 30 FROM tab2 AS cor0
----
1380
1920
2250

query I rowsort
SELECT - col2 + - col2 * + + col1 AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT + + col1 + - CAST( 93 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-46
-79
-88

skipif mysql # not compatible
query I rowsort label-836
SELECT + + col1 + - CAST ( 93 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-46
-79
-88

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

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

query II rowsort
SELECT 20 + - + 36 + + - col1 AS col2, + 82 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + + ( + 13 ) ) + - col1 FROM tab1 AS cor0
----
-18
-27
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT - 50 * MIN( + 87 ) AS col2 FROM tab0
----
-4350

skipif mysql # not compatible
query I rowsort label-840
SELECT - 50 * MIN ( + 87 ) AS col2 FROM tab0
----
-4350

query I rowsort
SELECT - ( ( - col2 ) ) AS col1 FROM tab0
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT ALL - - col2 DIV - 46 + - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-198
-2210
-26

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - - col2 / - 46 + - + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-198
-2210
-26

query I rowsort
SELECT - + col1 * - 51 + + col1 FROM tab2 AS cor0 WHERE NOT - 86 > col1
----
2652
3484
4004

onlyif mysql # DIV for integer division: 
query II rowsort label-846
SELECT ALL + - col2 DIV col0 AS col2, 45 - - - 88 col1 FROM tab1 AS cor0
----
-1
-43
0
-43
0
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-846
SELECT ALL + - col2 / col0 AS col2, 45 - - - 88 col1 FROM tab1 AS cor0
----
-1
-43
0
-43
0
-43

query I rowsort
SELECT + 17 * - 90 FROM tab2
----
-1530
-1530
-1530

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col0 ) * - col2 - - 3 <= ( + 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + + 64 + + col1 FROM tab1 AS cor0
----
111
69
78

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 8 + - 47 + - - ( + + ( - - col1 ) ) + + 94 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL col2 + - 15 FROM tab1
----
44
53
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-856
SELECT DISTINCT col1 + - col1 * - 98 + 54, col2 + - - col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
1440
NULL
4707
NULL
549
NULL

skipif mysql # not compatible
query II rowsort label-856
SELECT DISTINCT col1 + - col1 * - 98 + 54, col2 + - - col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
1440
NULL
4707
NULL
549
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT col2 + + 45 DIV + + 57 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-858
SELECT col2 + + 45 / + + 57 FROM tab0 AS cor0
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL 55 * COUNT( ALL - + col0 ) + COUNT( ALL 86 ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL 55 * COUNT ( ALL - + col0 ) + COUNT ( ALL 86 ) FROM tab2
----
168

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 73 > 27
----

query I rowsort
SELECT - 63 - - + col2 AS col1 FROM tab0 AS cor0
----
-16
-53
36

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

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL COUNT ( * ) / - 69 FROM tab2 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT COUNT( * ) * 27 AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-869
SELECT COUNT ( * ) * 27 AS col1 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT DISTINCT CAST( + 59 AS SIGNED ) col1 FROM tab0
----
59

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

query II rowsort
SELECT ALL col2, 16 + + col0 FROM tab2
----
23
62
40
80
58
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * 14 * - col1 col1 FROM tab2
----
-17136
-22512
-25872

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

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

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

skipif mysql # not compatible
query II rowsort label-875
SELECT ALL 94, - COUNT ( * ) + - 0 AS col0 FROM tab2
----
94
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT ALL + + CAST( col2 AS SIGNED ) FROM tab1 WHERE NOT - - col0 BETWEEN - 18 + + - col2 * - - 15 * col2 AND + + col1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + + CAST ( col2 AS INTEGER ) FROM tab1 WHERE NOT - - col0 BETWEEN - 18 + + - col2 * - - 15 * col2 AND + + col1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT + 94 * COUNT( - col0 ) AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT + 94 * COUNT ( - col0 ) AS col1 FROM tab1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT 81 * - 17 * COUNT( * ) AS col2 FROM tab2
----
-4131

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT 81 * - 17 * COUNT ( * ) AS col2 FROM tab2
----
-4131

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT ALL COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( ( + ( - - col2 ) ) NOT BETWEEN + 86 AND col0 + 3 ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-879
SELECT ALL COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( ( + ( - - col2 ) ) NOT BETWEEN + 86 AND col0 + 3 ) )
----
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-881
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 * + CAST( + - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-881
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 * + CAST ( + - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-882
SELECT DISTINCT + - MAX( + + ( CAST( - ( + 7 ) AS SIGNED ) ) ) DIV + MIN( - 70 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + - MAX ( + + ( CAST ( - ( + 7 ) AS INTEGER ) ) ) / + MIN ( - 70 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 col2, - col2 AS col0 FROM tab2 AS cor0
----
-78
-23
-78
-40
-78
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT - SUM( - - col1 ) * + - COUNT( * ) AS col2 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-884
SELECT - SUM ( - - col1 ) * + - COUNT ( * ) AS col2 FROM tab0
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT ( - col2 ) DIV 43 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-885
SELECT ( - col2 ) / 43 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-886
SELECT + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-888
SELECT ALL - COUNT( - col2 ) AS col1, - COUNT( * ) / + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-888
SELECT ALL - COUNT ( - col2 ) AS col1, - COUNT ( * ) / + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL - - col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
117
125
74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT 86 + - COUNT( * ) AS col0 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT 86 + - COUNT ( * ) AS col0 FROM tab1
----
83

query I rowsort
SELECT DISTINCT + col0 + + 91 FROM tab2
----
137
155
166

query I rowsort
SELECT + col2 + + 99 AS col0 FROM tab0 cor0
----
109
146
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-895
SELECT - CAST( NULL AS DECIMAL ) * - col0 * + col1 / + 89 * - 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT - CAST ( NULL AS REAL ) * - col0 * + col1 / + 89 * - 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 95 * col0 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL COUNT( * ) * - 22 AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL COUNT ( * ) * - 22 AS col1 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT COUNT( * ) - + 76 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT COUNT ( * ) - + 76 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE 34 * 22 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT ALL - 17 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - 17 / - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT DISTINCT + CAST( + 58 AS SIGNED ) + COUNT( * ) * + 14 AS col2 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT + CAST ( + 58 AS INTEGER ) + COUNT ( * ) * + 14 AS col2 FROM tab1
----
100

query I rowsort
SELECT ALL 93 / col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( NULL ) IN ( 34 )
----

query I rowsort
SELECT - col1 * + ( 42 ) AS col0 FROM tab1
----
-1974
-210
-588

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2 WHERE 40 / - 86 > col1
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT ( COUNT( * ) ) * SUM( ALL - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-907
SELECT ( COUNT ( * ) ) * SUM ( ALL - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
-597

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-908
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 col0 FROM tab1 WHERE NOT 8 IS NULL
----
NULL

query I rowsort
SELECT + col0 + - 21 FROM tab2
----
25
43
54

query I rowsort
SELECT ALL + 40 + - col1 AS col1 FROM tab1
----
-7
26
35

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

query I rowsort
SELECT 0 FROM tab1 WHERE NOT ( - 89 ) IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( - 54 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT ( 61 ) * 44 + col0 DIV 55 AS col0 FROM tab0
----
2684
2685
2685

skipif mysql # not compatible
query I rowsort label-915
SELECT ( 61 ) * 44 + col0 / 55 AS col0 FROM tab0
----
2684
2685
2685

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + col0 * - col2
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + 96 + col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL 88 - - COUNT ( * ) FROM tab0 WHERE NOT + 69 - + col1 IS NOT NULL
----
88

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

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

query I rowsort
SELECT DISTINCT + 75 * col0 FROM tab1
----
3825
6375
6825

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * + 13 AS col2 FROM tab0
----
1287
130
611

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + ( col0 ) < - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - 26 AS col2 FROM tab1 AS cor0
----
33
42
70

query I rowsort
SELECT 54 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT ALL col1 DIV col1 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL col1 / col1 AS col2 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) = col0
----

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT col2 <> ( 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT ALL - col0 + 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-932
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 + col1 BETWEEN col0 AND ( 2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT SUM( + 38 ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-935
SELECT SUM ( + 38 ) FROM tab1
----
114

query I rowsort
SELECT ALL 95 + col1 AS col2 FROM tab2
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT - MAX( - ( 91 ) ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT - MAX ( - ( 91 ) ) AS col0 FROM tab0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 51 - - 5 > NULL
----

query I rowsort
SELECT ALL - col1 - col1 FROM tab2 WHERE NOT NULL <> ( 25 * col2 + - col1 )
----

query I rowsort
SELECT - - col0 + col2 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-2456
-4217
-989

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT 58 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-10
-38

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 58 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
-10
-38

query I rowsort
SELECT - col0 + + 7 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT DISTINCT col0 - - col0 AS col2 FROM tab2
----
128
150
92

query II rowsort
SELECT DISTINCT col2, - 37 AS col0 FROM tab1
----
59
-37
68
-37
96
-37

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-946
SELECT ALL + - MAX ( ALL col2 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-947
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + - col0 * + 78
----

skipif mysql # not compatible
query III rowsort label-947
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + - col0 * + 78
----

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

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

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

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

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

query II rowsort
SELECT - - 64 AS col0, - col0 * + col2 * + col0 AS col0 FROM tab0 AS cor0
----
64
-10575
64
-75690
64
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, col0 + 92 AS col0 FROM tab0 AS cor0
----
10
179
47
107
99
189

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT DISTINCT + SUM( ALL - 17 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + SUM ( ALL - 17 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <> col2 * col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT - col0 * - col2 DIV + col2 - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-957
SELECT - col0 * - col2 / + col2 - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

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

query I rowsort
SELECT 59 + - col1 FROM tab2 WHERE NOT + col2 - col2 IS NULL
----
-18
-8
8

query III rowsort
SELECT * FROM tab2 WHERE NOT 83 BETWEEN ( + col1 * 97 ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 * + col1 col2 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT ALL - col2 * + + ( 99 ) AS col2 FROM tab2
----
-2277
-3960
-5742

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

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

skipif mysql # not compatible
query I rowsort label-964
SELECT - col2 / + - col1 AS col0 FROM tab0
----
0
0
99

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 91 AS col1 FROM tab2 cor0 WHERE NOT 45 IS NULL
----
-91
-91
-91

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

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + 94 * - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 93 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 25 * - col2 * + - ( 88 ) * col2 AS col2 FROM tab2 AS cor0
----
1163800
3520000
7400800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-973
SELECT DISTINCT COUNT( + col0 ) DIV - + 97 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT COUNT ( + col0 ) / - + 97 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE + + 0 + + - col0 IS NULL
----

query I rowsort
SELECT ALL ( + 49 ) + + 22 * + - col1 AS col2 FROM tab0
----
-1733
-413
27

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT - col0 - - col2 DIV 36 * + 63 - + 58 FROM tab2
----
-104
-59
-70

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT - col0 - - col2 / 36 * + 63 - + 58 FROM tab2
----
-104
-59
-70

query I rowsort
SELECT DISTINCT 93 * + ( + 48 ) FROM tab1
----
4464

query I rowsort
SELECT DISTINCT - 82 FROM tab1 WHERE - col1 + - 71 IS NOT NULL
----
-82

query I rowsort
SELECT + col0 * - col1 + + - col0 FROM tab1 cor0
----
-4368
-510
-765

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT + 78 > NULL
----

query I rowsort
SELECT 60 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL - 80 * COUNT( * ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - 80 * COUNT ( * ) FROM tab1 AS cor0
----
-240

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE 44 * 2 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT col1 / + - col0 FROM tab0 cor0
----
-5
0

query I rowsort
SELECT col0 * - - 43 FROM tab2
----
1978
2752
3225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-987
SELECT DISTINCT CAST( SUM( DISTINCT - CAST( + col0 AS DECIMAL ) ) AS SIGNED ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT CAST ( SUM ( DISTINCT - CAST ( + col0 AS REAL ) ) AS INTEGER ) AS col0 FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT DISTINCT - col1 DIV 86 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - col1 / 86 AS col1 FROM tab0 AS cor0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL BETWEEN ( + 26 ) AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19, col1 * + ( col0 ) col0 FROM tab0 AS cor0 WHERE NOT ( + 52 ) * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 48 * + col1 AS col1 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT - col1 * - 74 FROM tab2
----
3774
4958
5698

query II rowsort
SELECT ALL - col0 AS col0, 38 AS col0 FROM tab0
----
-15
38
-87
38
-97
38

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT NULL NOT BETWEEN - col1 + - - 55 AND 23
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL - MAX( DISTINCT + - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - MAX ( DISTINCT + - col1 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * col2 * + col2 + - 33 / - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col0 ) col0 FROM tab2
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL + + MAX( 44 ) * + 22 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
968

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + + MAX ( 44 ) * + 22 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + ( + + 71 ) col0 FROM tab2
----
168
168
168

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

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

query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0 WHERE - col0 * 5 NOT BETWEEN - col2 * - col1 + + 60 / + col0 + - col2 AND NULL
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT + col1 DIV - 82 * + - 22 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT + col1 / - 82 * + - 22 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - 95 * 80 IN ( - col0 * + - col1 )
----

query I rowsort
SELECT 76 - - + 88 AS col2 FROM tab1
----
164
164
164

query I rowsort
SELECT - ( + col1 ) * - col2 - + - col1 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL MIN( ALL + - col0 ) + 22 col2 FROM tab1
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1013
SELECT ALL MIN ( ALL + - col0 ) + 22 col2 FROM tab1
----
-69

query I rowsort
SELECT DISTINCT - col1 - + 31 + col1 + + col1 * - - 9 FROM tab2
----
428
572
662

query I rowsort
SELECT col0 - + ( + - col2 ) + - col2 + - col0 * col1 FROM tab0 WHERE + col2 IS NOT NULL AND NOT ( col1 / col2 + col2 ) IS NULL
----
-1200
-1740
0

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

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

query II rowsort
SELECT ALL ( + 4 ) * - col0 AS col1, 2 + - col2 AS col1 FROM tab0 AS cor0
----
-348
-8
-388
-97
-60
-45

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

query I rowsort
SELECT ALL - - 19 * 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c2ae7cfa50916b8d03e8d2b966274a1d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, 4 col2 FROM tab2
----
23
4
40
4
58
4

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

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

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

query I rowsort
SELECT ALL 50 * + - 39 FROM tab2 AS cor0
----
-1950
-1950
-1950

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1025
SELECT DISTINCT - COUNT( * ), 42 DIV + 50 AS col1 FROM tab1 AS cor0
----
-3
0

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

query II rowsort
SELECT ALL col2 AS col2, col0 - 3 FROM tab1 AS cor0
----
59
82
68
88
96
48

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

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

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

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

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

query I rowsort
SELECT + 49 * - col1 + - col1 + col0 * - col2 * + 47 AS col2 FROM tab0 AS cor0
----
-37185
-41940
-451391

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL - 53 * - - COUNT( * ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - 53 * - - COUNT ( * ) FROM tab1
----
-159

query I rowsort
SELECT + col2 + + 21 + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-46
100
122

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

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

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

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

query I rowsort
SELECT - col1 + - col0 + + col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 66 AND NULL AND NULL IS NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT - 42 - - MIN( ALL + 61 ) AS col1, - 30 * - + COUNT( * ) * + COUNT( DISTINCT 45 ) AS col2 FROM tab0 AS cor0
----
19
90

skipif mysql # not compatible
query II rowsort label-1037
SELECT - 42 - - MIN ( ALL + 61 ) AS col1, - 30 * - + COUNT ( * ) * + COUNT ( DISTINCT 45 ) AS col2 FROM tab0 AS cor0
----
19
90

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

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

query I rowsort
SELECT + col2 + + 74 AS col0 FROM tab0 AS cor0
----
121
173
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - COUNT( * ) * - 57 + - ( + COUNT( - - col0 ) ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1040
SELECT - COUNT ( * ) * - 57 + - ( + COUNT ( - - col0 ) ) FROM tab1 AS cor0
----
168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT - + ( - - 25 ) + + COUNT( * ) - - + 23 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1042
SELECT - + ( - - 25 ) + + COUNT ( * ) - - + 23 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT - 2 + 35 DIV + ( col0 ) FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1044
SELECT - 2 + 35 / + ( col0 ) FROM tab0 AS cor0
----
-2
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 10 > ( + - col1 )
----
15
81
47
87
21
10

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 27 * + 93 / + - col0 + + + col1 NOT IN ( col1, 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 12 + col2 - col2 * - col0 AS col2 FROM tab1
----
5004
5086
6268

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT 86 - - COUNT( * ) AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT 86 - - COUNT ( * ) AS col2 FROM tab0
----
89

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

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

skipif mysql # not compatible
query I rowsort label-1052
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT - 54 AS col0 FROM tab0 AS cor0 WHERE NOT 28 + + + col2 * - - CAST( + col0 AS SIGNED ) * + 52 + + + ( col1 ) IN ( + - col1 )
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-1054
SELECT - 54 AS col0 FROM tab0 AS cor0 WHERE NOT 28 + + + col2 * - - CAST ( + col0 AS INTEGER ) * + 52 + + + ( col1 ) IN ( + - col1 )
----
-54
-54
-54

query I rowsort
SELECT ALL - col0 * + 53 * 17 AS col2 FROM tab2 cor0
----
-41446
-57664
-67575

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

skipif mysql # not compatible
query II rowsort label-1056
SELECT - + ( COUNT ( * ) ) AS col0, - COUNT ( ALL + 93 ) AS col0 FROM tab1 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col2, 56 + + ( - col2 ) + - - col0 * ( 1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL - 10 * + MAX( DISTINCT - ( + 22 ) ) FROM tab2
----
220

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - 10 * + MAX ( DISTINCT - ( + 22 ) ) FROM tab2
----
220

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT + + col0 DIV - 98 - - - col2 + col1 * - + col1 FROM tab2 cor0
----
-2624
-4547
-5969

skipif mysql # not compatible
query I rowsort label-1059
SELECT + + col0 / - 98 - - - col2 + col1 * - + col1 FROM tab2 cor0
----
-2624
-4547
-5969

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1061
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * - CAST( NULL AS SIGNED ) + + col2 + + col2 / col0 - - 93, - ( col0 ), - + col2 + ( col1 ), + + col0 / 52 )
----

skipif mysql # not compatible
query III rowsort label-1061
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * - CAST ( NULL AS INTEGER ) + + col2 + + col2 / col0 - - 93, - ( col0 ), - + col2 + ( col1 ), + + col0 / 52 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT + + 35 * + col2 * ( + CAST( + ( + + col0 ) AS SIGNED ) ) + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24756
30471
336106

skipif mysql # not compatible
query I rowsort label-1063
SELECT + + 35 * + col2 * ( + CAST ( + ( + + col0 ) AS INTEGER ) ) + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24756
30471
336106

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

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

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

query I rowsort
SELECT ALL - col1 * + 6 * + col0 * + col0 FROM tab2
----
-1892352
-2261250
-647496

query I rowsort
SELECT col1 * 86 AS col0 FROM tab1
----
1204
4042
430

query I rowsort
SELECT + ( 46 ) * + col1 FROM tab0
----
3726
46
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + col2 col0 FROM tab1
----
-4896
-5015
-6188

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT CAST( - SUM( - 11 ) AS SIGNED ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-1071
SELECT CAST ( - SUM ( - 11 ) AS INTEGER ) FROM tab1
----
33

query II rowsort
SELECT ALL + 40 AS col2, + col1 FROM tab1 WHERE NULL NOT IN ( - + col2, 95 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT SUM( col0 ) * + + 6 * - - ( - 60 ) + 50 FROM tab1 AS cor0
----
-81670

skipif mysql # not compatible
query I rowsort label-1073
SELECT SUM ( col0 ) * + + 6 * - - ( - 60 ) + 50 FROM tab1 AS cor0
----
-81670

query II rowsort
SELECT ALL col1, col2 + col2 FROM tab2 AS cor0
----
51
46
67
116
77
80

query I rowsort
SELECT ALL ( + col0 ) + + ( - - 88 ) FROM tab2
----
134
152
163

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1078
SELECT col0 DIV - col0 - col2, + col2 * + + col2 AS col1 FROM tab1 cor0
----
-60
3481
-69
4624
-97
9216

skipif mysql # not compatible
query II rowsort label-1078
SELECT col0 / - col0 - col2, + col2 * + + col2 AS col1 FROM tab1 cor0
----
-60
3481
-69
4624
-97
9216

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

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

query I rowsort
SELECT ALL 8 + col1 + + - 14 FROM tab2 AS cor0
----
45
61
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1082
SELECT DISTINCT col2 DIV - col2 + + col0 + col0 + + + col1 * + col2, + col2 FROM tab0
----
292
99
383
10
3836
47

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT col2 / - col2 + + col0 + col0 + + + col1 * + col2, + col2 FROM tab0
----
292
99
383
10
3836
47

query I rowsort
SELECT ALL 76 * - col0 AS col0 FROM tab0
----
-1140
-6612
-7372

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

query I rowsort
SELECT + - 92 FROM tab1 cor0
----
-92
-92
-92

query II rowsort
SELECT + 22 AS col1, - 1 FROM tab2 AS cor0
----
22
-1
22
-1
22
-1

query I rowsort
SELECT DISTINCT col2 * - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * ( 90 ) * + + col1 + + + col2 * col2 BETWEEN NULL AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT + 10 * - - col0 DIV + - col0 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1090
SELECT + 10 * - - col0 / + - col0 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT - 80 * + col0 - 81 + + col0 * col0 - - col0 >= col0 * + col0 + + + col2 + 19 * + col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT + 44 + - ( + 49 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT + 44 + - ( + 49 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-103

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 35 NOT BETWEEN NULL AND col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT ALL 1 DIV COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 1 / COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + + 98 / - + col1 * col0 IS NOT NULL
----

query I rowsort
SELECT 6 + col2 + col0 FROM tab2
----
110
139
75

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

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

query I rowsort
SELECT 13 + - 89 AS col1 FROM tab1
----
-76
-76
-76

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

query I rowsort
SELECT col1 * - 37 + col1 + + ( - col2 ) FROM tab0
----
-135
-2963
-766

onlyif mysql # DIV for integer division: 
query I rowsort label-1105
SELECT + 16 * col0 + + 37 - + col2 * 30 * col1 * + 98 * + col1 DIV + - col1 FROM tab1
----
3952213
868697
9397733

skipif mysql # not compatible
query I rowsort label-1105
SELECT + 16 * col0 + + 37 - + col2 * 30 * col1 * + 98 * + col1 / + - col1 FROM tab1
----
3952213
868697
9397733

query II rowsort
SELECT ALL - - col2 AS col1, col0 * col2 * - col0 AS col2 FROM tab1 cor0
----
59
-426275
68
-563108
96
-249696

query I rowsort
SELECT ALL - 91 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
-19110
-346437
-9009

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 15 * - ( - + col0 ) + - col1 < NULL
----

query I rowsort
SELECT DISTINCT + 75 * - 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN 65 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - + 26 + + MIN( col0 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - + 26 + + MIN ( col0 ) FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL 15 * - - 79 * + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-11614185
-118500
-2617665

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

skipif mysql # not compatible
query I rowsort label-1113
SELECT + CAST ( NULL AS INTEGER ) * - 19 - + 67 + + + 9 * - col0 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + COUNT ( * ) - CAST ( + + 89 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1115
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1115
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 IN ( + CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col1 BETWEEN NULL AND + 36 + - col0 * - 70
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT 4 DIV col0 * + ( - col2 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT 4 / col0 * + ( - col2 ) AS col1 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL - MIN( - CAST( + 96 AS SIGNED ) ) AS col1 FROM tab0
----
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT 53 DIV - 25 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1124
SELECT 53 / - 25 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT - ( - + col2 ) AS col2, col2 * + + col0 AS col0 FROM tab1
----
59
5015
68
6188
96
4896

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT - - SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 37 - + - 9 >= 18
----
51
67
77

query I rowsort
SELECT + 44 * + 35 * - col2 FROM tab2
----
-35420
-61600
-89320

query I rowsort
SELECT - 93 * + col1 + + + col0 FROM tab1
----
-1251
-380
-4280

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT ( - col2 ) * + + col0 + - col2 DIV + + 33 - col0 FROM tab0
----
-721
-957
-9703

skipif mysql # not compatible
query I rowsort label-1130
SELECT ( - col2 ) * + + col0 + - col2 / + + 33 - col0 FROM tab0
----
-721
-957
-9703

query I rowsort
SELECT col0 + - 27 FROM tab1 AS cor0
----
24
58
64

query II rowsort
SELECT DISTINCT + + 63 AS col1, - 98 AS col0 FROM tab2 cor0
----
63
-98

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

skipif mysql # not compatible
query I rowsort label-1133
SELECT SUM ( DISTINCT - 17 ) FROM tab2 AS cor0
----
-17

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

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

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

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col0 * + col1 FROM tab0 cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT MIN( ALL - + 38 ) * + SUM( ALL col0 ) FROM tab2 AS cor0
----
-7030

skipif mysql # not compatible
query I rowsort label-1137
SELECT MIN ( ALL - + 38 ) * + SUM ( ALL col0 ) FROM tab2 AS cor0
----
-7030

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

query I rowsort
SELECT ( - - 54 ) + - col2 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-14
-42
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT - SUM( 13 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1140
SELECT - SUM ( 13 ) FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL - 43 + ( - - col1 ) FROM tab2
----
24
34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT DISTINCT - col1 + + col1 DIV + + col0 col0 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1142
SELECT DISTINCT - col1 + + col1 / + + col0 col0 FROM tab0
----
-1
-21
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT 34 * - ( MAX( + - 66 ) ) * - COUNT( ALL + col1 ) AS col1 FROM tab2
----
-6732

skipif mysql # not compatible
query I rowsort label-1143
SELECT 34 * - ( MAX ( + - 66 ) ) * - COUNT ( ALL + col1 ) AS col1 FROM tab2
----
-6732

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

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

query I rowsort
SELECT DISTINCT col2 * + col1 * 91 AS col2 FROM tab0
----
19110
346437
9009

query I rowsort
SELECT + - col0 * + + col1 AS col2 FROM tab1 cor0 WHERE 26 - col0 = + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT 38 - COUNT( * ) * 36 * 41 - + COUNT( * ) DIV - MAX( - col1 ) FROM tab0 AS cor0
----
-4393

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT 38 - COUNT ( * ) * 36 * 41 - + COUNT ( * ) / - MAX ( - col1 ) FROM tab0 AS cor0
----
-4393

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

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

query I rowsort
SELECT ALL - 23 * + + col2 * + col1 FROM tab1 AS cor0
----
-30912
-6785
-73508

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT DISTINCT 39 DIV - 48 + - + col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT 39 / - 48 + - + col0 FROM tab1
----
-51
-85
-91

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

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

query I rowsort
SELECT + col0 * - 18 + - 56 AS col1 FROM tab1 AS cor0
----
-1586
-1694
-974

query I rowsort
SELECT ALL + 94 AS col1 FROM tab2 AS cor0 WHERE - 95 IS NOT NULL
----
94
94
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1155
SELECT ALL CAST( + - MAX( ALL - col0 ) AS SIGNED ) DIV - ( - + SUM( + 48 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL CAST ( + - MAX ( ALL - col0 ) AS INTEGER ) / - ( - + SUM ( + 48 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT - 56 * + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-1156
SELECT - 56 * + col1 / + col1 AS col1 FROM tab1 AS cor0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL - 63 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - 63 / - col0 AS col0 FROM tab0 AS cor0
----
0
0
4

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - MIN( + - 87 ) + + 34 FROM tab1 WHERE NOT + 19 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT - MIN ( + - 87 ) + + 34 FROM tab1 WHERE NOT + 19 + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT ALL + COUNT( * ) DIV 83 FROM tab0
----
0

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

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

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

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

query I rowsort
SELECT + 22 * - - col1 FROM tab2
----
1122
1474
1694

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col0 * + col1 * + 65 * - col1 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT + 26 DIV MAX( + 33 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 26 / MAX ( + 33 ) FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT - col2 * 95 AS col1 FROM tab2 AS cor0
----
-2185
-3800
-5510

query I rowsort
SELECT ( - 73 ) FROM tab2 AS cor0
----
-73
-73
-73

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

query I rowsort
SELECT ALL + col1 * + ( - col1 ) + + col0 AS col1 FROM tab2
----
-2555
-4414
-5865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 4 col1 FROM tab1
----
-204
-340
-364

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

skipif mysql # not compatible
query I rowsort label-1176
SELECT - - 90 * - 87 * SUM ( DISTINCT - - col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-947433

query I rowsort
SELECT ALL + col0 * col2 * - + col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + col2 * + 5 + + col1 + + - col2 * - ( - col2 ) FROM tab1 AS cor0
----
-3181
-4237
-8722

query I rowsort
SELECT DISTINCT - col0 + col2 - - - col1 AS col0 FROM tab0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT + COUNT( * ) * - + 80 * - + 50 + + 96 FROM tab1
----
12096

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT + COUNT ( * ) * - + 80 * - + 50 + + 96 FROM tab1
----
12096

query I rowsort
SELECT + col0 + - - col2 + + + col1 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL col1 + + - 63 FROM tab1
----
-16
-49
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT ALL + CAST( + - 21 AS SIGNED ) FROM tab2 WHERE NOT 20 IS NULL
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + CAST ( + - 21 AS INTEGER ) FROM tab2 WHERE NOT 20 IS NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT + 34 * - + COUNT( col1 ) AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT + 34 * - + COUNT ( col1 ) AS col1 FROM tab2
----
-102

query I rowsort
SELECT + 93 * - + col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

query II rowsort
SELECT col1, + col1 * 8 FROM tab2 AS cor0
----
51
408
67
536
77
616

query I rowsort
SELECT 71 AS col0 FROM tab2 AS cor0 WHERE - 97 > + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT - MAX( ALL + col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1189
SELECT DISTINCT - MAX ( ALL + col0 ) col1 FROM tab0
----
-97

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT - MIN ( DISTINCT col0 ) + - 8 FROM tab0
----
-23

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + COUNT( * ) * + 72 col2 FROM tab1 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1193
SELECT + COUNT ( * ) * + 72 col2 FROM tab1 cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT 33 * - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1194
SELECT 33 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-99

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

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

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

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

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

query I rowsort
SELECT col2 * 56 AS col0 FROM tab2
----
1288
2240
3248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT + ( + + COUNT( * ) ) FROM tab1 WHERE NOT ( ( NOT NULL > NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT + ( + + COUNT ( * ) ) FROM tab1 WHERE NOT ( ( NOT NULL > NULL ) )
----
0

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

skipif mysql # not compatible
query I rowsort label-1201
SELECT + col2 / - + 46 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL MIN( 26 ) AS col1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL MIN ( 26 ) AS col1 FROM tab0
----
26

query I rowsort
SELECT - 79 * - 67 FROM tab2
----
5293
5293
5293

query I rowsort
SELECT ALL col2 * - 95 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
198
20
94

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

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

query I rowsort
SELECT 55 * - - col0 AS col2 FROM tab1
----
2805
4675
5005

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 - - col1 - + - 16 * - 30 ) < ( col2 )
----

query I rowsort
SELECT DISTINCT - 72 + - col0 FROM tab0 AS cor0
----
-159
-169
-87

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - 1 + - COUNT( * ) col1 FROM tab0
----
-4

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 25 col1 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT * FROM tab2 WHERE + - ( - - col1 ) <> + - col0 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT + MAX( ALL + - col0 ) * - 38 - 99 col1 FROM tab0
----
471

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1218
SELECT DISTINCT + MAX ( ALL + - col0 ) * - 38 - 99 col1 FROM tab0
----
471

query I rowsort
SELECT + ( 12 ) * + - 21 + + col2 FROM tab2 AS cor0
----
-194
-212
-229

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT DISTINCT 15 * - + SUM( - + 97 ) * - 90 + + - 3, + MIN( + 47 ) col2 FROM tab2 AS cor0
----
-392853
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1220
SELECT DISTINCT 15 * - + SUM ( - + 97 ) * - 90 + + - 3, + MIN ( + 47 ) col2 FROM tab2 AS cor0
----
-392853
47

query III rowsort
SELECT ALL * FROM tab1 WHERE + 1 NOT BETWEEN NULL AND + - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 NOT IN ( - 97 + + - col2, 11 + + + 88 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - col0 * + + 17 FROM tab0 AS cor0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-1225
SELECT DISTINCT - + COUNT( * ), - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1225
SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL
----
0
0

query II rowsort
SELECT + + col2, + 25 FROM tab0 AS cor0
----
10
25
47
25
99
25

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

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

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

query I rowsort
SELECT + 10 * 93 * ( col0 ) * - + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-1967857
-3809240
-5231192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL MIN( - 96 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL MIN ( - 96 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * - 67 * - - col2 FROM tab1
----
-233227
-309808
-617472

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1233
SELECT DISTINCT + MIN ( col0 ) col2 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 <> + 48 + + 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - + ( + col0 ) + + + col0 col2 FROM tab0 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT - col0 DIV - - col0 col0 FROM tab0
----
-1

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

query I rowsort
SELECT 40 * + 84 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cbe71c138ae0b68e52fe3134cddf6fef

query I rowsort
SELECT + 11 + 65 FROM tab0 AS cor0
----
76
76
76

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-1241
SELECT DISTINCT - + MIN( col0 ) AS col1 FROM tab2 AS cor0
----
-46

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL - - 20 * + COUNT( * ) * + 43 AS col0 FROM tab1 AS cor0
----
2580

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL - - 20 * + COUNT ( * ) * + 43 AS col0 FROM tab1 AS cor0
----
2580

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

query I rowsort
SELECT DISTINCT - ( + ( col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

query I rowsort
SELECT 39 + + - 44 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - ( + 76 ) * 25 - col1 AS col0 FROM tab0
----
-1901
-1921
-1981

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - 56 = + col0
----

query II rowsort
SELECT col1 AS col0, 37 * 6 FROM tab0
----
1
222
21
222
81
222

query I rowsort
SELECT col2 * + 91 - + col0 FROM tab2 WHERE + - 0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT DISTINCT + CAST( + 12 AS SIGNED ) * + + COUNT( * ) FROM tab2 WHERE ( NOT NULL > + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + CAST ( + 12 AS INTEGER ) * + + COUNT ( * ) FROM tab2 WHERE ( NOT NULL > + col2 )
----
0

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

query I rowsort
SELECT DISTINCT + col2 - - 77 + - col1 + - col1 FROM tab0 AS cor0
----
-38
174
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1256
SELECT - 53 * - - CAST( + MIN( + - col1 ) AS SIGNED ) AS col1 FROM tab0
----
4293

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 53 * - - CAST ( + MIN ( + - col1 ) AS INTEGER ) AS col1 FROM tab0
----
4293

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

query I rowsort
SELECT ALL + 18 * - - ( - col0 ) FROM tab2 cor0
----
-1152
-1350
-828

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1259
SELECT * FROM tab1 WHERE NOT col0 - col2 IN ( - 59, 81, + CAST( NULL AS SIGNED ) / + col0 )
----

skipif mysql # not compatible
query III rowsort label-1259
SELECT * FROM tab1 WHERE NOT col0 - col2 IN ( - 59, 81, + CAST ( NULL AS INTEGER ) / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT SUM( ALL + 71 ) FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-1260
SELECT SUM ( ALL + 71 ) FROM tab1
----
213

query I rowsort
SELECT + + ( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * - - ( - 58 ) * - col1 + - + col2 AS col0 FROM tab0
----
105956
5527
70423

query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 FROM tab2
----
-107916
-315392
-376875

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1266
SELECT 65 * + CAST( MAX( ALL - col2 ) AS SIGNED ) AS col1 FROM tab2
----
-1495

skipif mysql # not compatible
query I rowsort label-1266
SELECT 65 * + CAST ( MAX ( ALL - col2 ) AS INTEGER ) AS col1 FROM tab2
----
-1495

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT - COUNT( * ), 98 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
98

skipif mysql # not compatible
query II rowsort label-1267
SELECT - COUNT ( * ), 98 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
98

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + + col1 - + 4 FROM tab1 AS cor0
----
3482
4667
9226

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = - ( ( 76 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * col0 col2 FROM tab0
----
1380
8004
8924

query I rowsort
SELECT DISTINCT - ( col2 ) + + - 45 AS col2 FROM tab1
----
-104
-113
-141

query I rowsort
SELECT + 38 + - 7 + - + 31 FROM tab0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT ALL + CAST( - AVG ( DISTINCT - + 40 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + CAST ( - AVG ( DISTINCT - + 40 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT - 85 DIV - + col0 AS col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1275
SELECT - 85 / - + col0 AS col2 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1276
SELECT + + 73 DIV + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1276
SELECT + + 73 / + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - 74 * 42 * - + col1 AS col0 FROM tab0 AS cor0
----
251748
3108
65268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 + - - col1 * + col1 col0 FROM tab1 AS cor0
----
224
2303
35

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

query I rowsort
SELECT col0 - + - col0 - 2 FROM tab1
----
100
168
180

query I rowsort
SELECT DISTINCT 77 - + col0 FROM tab2
----
13
2
31

query I rowsort
SELECT col2 - - - ( - col1 ) + - col0 * + 90 FROM tab1
----
-4480
-7586
-8075

query I rowsort
SELECT ALL 92 + col0 AS col2 FROM tab2
----
138
156
167

query I rowsort
SELECT 17 * - col2 + - col0 + 56 AS col0 FROM tab2
----
-1005
-381
-688

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT + 47 AS col1, 81 * - MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
47
7857

skipif mysql # not compatible
query II rowsort label-1285
SELECT + 47 AS col1, 81 * - MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
47
7857

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT ALL COUNT( * ), 19 col0 FROM tab0
----
3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1287
SELECT ALL COUNT ( * ), 19 col0 FROM tab0
----
3
19

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

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

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

query I rowsort
SELECT DISTINCT - + 16 * + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1552
-19440
-29232

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT + MIN( + 19 ) AS col0 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-1291
SELECT + MIN ( + 19 ) AS col0 FROM tab1 cor0
----
19

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1294
SELECT ALL * FROM tab0 WHERE NOT - CAST( - col1 AS SIGNED ) <= - + 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1294
SELECT ALL * FROM tab0 WHERE NOT - CAST ( - col1 AS INTEGER ) <= - + 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 68 + - - col1 FROM tab0
----
-47
-67
13

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT DISTINCT - col0 * - col2 * - + 29 - + 31 * + 10 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - col0 * - col2 * - + 29 - + 31 * + 10 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT ALL - col2 - + col2 + - 85 DIV - col1 FROM tab0 AS cor0
----
-113
-16
-93

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - col2 - + col2 + - 85 / - col1 FROM tab0 AS cor0
----
-113
-16
-93

query I rowsort
SELECT DISTINCT - + col1 - + - 66 FROM tab2 AS cor0
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + ( - + 85 ) + - - ( COUNT( * ) ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1302
SELECT + ( - + 85 ) + - - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL + 6 DIV + - col1 + + 74 * - col0 - 58 + + + 82 AS col1 FROM tab0 AS cor0
----
-1086
-6414
-7160

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + 6 / + - col1 + + 74 * - col0 - 58 + + + 82 AS col1 FROM tab0 AS cor0
----
-1086
-6414
-7160

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

query I rowsort
SELECT ALL col2 + + 31 * col2 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT 70 * + col0 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT + ( ( + col2 ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 45 * col2 AS col2 FROM tab2
----
-1035
-1800
-2610

query I rowsort
SELECT ALL + col0 + + 40 * - col2 * ( 69 ) AS col0 FROM tab0
----
-129705
-273143
-27513

query I rowsort
SELECT DISTINCT + col0 * - 77 AS col0 FROM tab2
----
-3542
-4928
-5775

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

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

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

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

query I rowsort
SELECT ALL + 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

query I rowsort
SELECT ( - + 98 ) + + + col1 FROM tab1 AS cor0
----
-51
-84
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1316
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1316
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST ( col2 AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT - 78 + - 60 FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1319
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / + col2 <> + col0 * + col0 - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1319
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / + col2 <> + col0 * + col0 - - CAST ( NULL AS REAL )
----

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

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

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

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

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

query I rowsort
SELECT ALL + 11 + + - ( - col1 ) AS col0 FROM tab1
----
16
25
58

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

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT - ( - 14 ) * + COUNT ( - 29 ) FROM tab1
----
42

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT col1 < NULL
----

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

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

query II rowsort
SELECT ALL col1, col2 * + col1 + + - col0 * col0 FROM tab0
----
1
-9310
21
-7359
81
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT + - 2 + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT + - 2 + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT ALL - col1 + 60 * + CAST( - 77 AS SIGNED ) FROM tab2 AS cor0
----
-4671
-4687
-4697

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - col1 + 60 * + CAST ( - 77 AS INTEGER ) FROM tab2 AS cor0
----
-4671
-4687
-4697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1331
SELECT - CAST( + ( col2 ) AS SIGNED ) * + 20 + + col0 AS col1 FROM tab2 AS cor0
----
-1085
-414
-736

skipif mysql # not compatible
query I rowsort label-1331
SELECT - CAST ( + ( col2 ) AS INTEGER ) * + 20 + + col0 AS col1 FROM tab2 AS cor0
----
-1085
-414
-736

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

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

query I rowsort
SELECT DISTINCT col0 + col2 + + col1 * + - col0 FROM tab1
----
-281
-4118
-567

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

query I rowsort
SELECT DISTINCT - col2 - ( + col1 ) + + + col0 AS col0 FROM tab0 AS cor0
----
-113
-3
56

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

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

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

query I rowsort
SELECT ALL + col2 * - - 58 AS col2 FROM tab1 AS cor0
----
3422
3944
5568

query II rowsort
SELECT - + ( - 72 ) AS col1, col2 * + col2 FROM tab0 AS cor0
----
72
100
72
2209
72
9801

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

query I rowsort
SELECT 90 * + + col2 FROM tab1
----
5310
6120
8640

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - 35 AS col0 FROM tab1
----
-1645
-175
-490

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

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
-354
-6546
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT CAST( MIN( + 12 ) AS SIGNED ) + - COUNT( * ) * + 78 FROM tab2 WHERE ( NULL ) NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT CAST ( MIN ( + 12 ) AS INTEGER ) + - COUNT ( * ) * + 78 FROM tab2 WHERE ( NULL ) NOT IN ( col0 )
----
NULL

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

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

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( 35 * col1 ) IN ( + col0 * col2 )
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1353
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) BETWEEN + col2 AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-1353
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND ( + col2 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + - col2 * + 84 ) > col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0 WHERE NOT ( 86 ) NOT IN ( ( col2 ) * - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - MIN( - col0 ) AS col0 FROM tab1 WHERE NOT col1 = col1 * 23
----
91

skipif mysql # not compatible
query I rowsort label-1357
SELECT - MIN ( - col0 ) AS col0 FROM tab1 WHERE NOT col1 = col1 * 23
----
91

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE col1 + + ( 51 + - 55 ) IS NULL
----

query I rowsort
SELECT col1 * - 68 FROM tab1
----
-3196
-340
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT + COUNT( * ) * ( + 53 ) AS col0 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-1361
SELECT + COUNT ( * ) * ( + 53 ) AS col0 FROM tab1
----
159

query I rowsort
SELECT DISTINCT col2 * - 7 AS col2 FROM tab1
----
-413
-476
-672

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT ( - col0 ) * 78 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col2 / - col2 IN ( col1 + 53 )
----

skipif mysql # not compatible
query I rowsort label-1365
SELECT ( - col0 ) * 78 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col2 / - col2 IN ( col1 + 53 )
----

query I rowsort
SELECT col1 * 74 FROM tab1
----
1036
3478
370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1367
SELECT ALL - 29 + ( CAST( 67 AS SIGNED ) ) FROM tab2
----
38
38
38

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - 29 + ( CAST ( 67 AS INTEGER ) ) FROM tab2
----
38
38
38

query I rowsort
SELECT col2 + + 81 AS col1 FROM tab1
----
140
149
177

query I rowsort
SELECT DISTINCT col1 * 50 AS col2 FROM tab1
----
2350
250
700

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT 69 - COUNT( DISTINCT 79 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-1372
SELECT 69 - COUNT ( DISTINCT 79 ) FROM tab0
----
68

query I rowsort
SELECT col0 * 68 AS col1 FROM tab0 AS cor0
----
1020
5916
6596

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 48 * 74 )
----

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

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

query I rowsort
SELECT DISTINCT col0 + 77 AS col2 FROM tab0 AS cor0
----
164
174
92

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT col1 BETWEEN ( col1 ) / - ( - ( + col2 ) * - col1 - + 62 ) + - 33 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 73 >= - col2 + + 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT ( + MAX( DISTINCT 93 ) ) + + COUNT( * ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT ( + MAX ( DISTINCT 93 ) ) + + COUNT ( * ) AS col1 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT ALL 96 + + col1 DIV col0 FROM tab0
----
101
96
96

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 96 + + col1 / col0 FROM tab0
----
101
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL - SUM( ALL CAST( - 60 AS SIGNED ) ) - + 74 AS col0 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - SUM ( ALL CAST ( - 60 AS INTEGER ) ) - + 74 AS col0 FROM tab2
----
106

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

query I rowsort
SELECT - + col1 * - col1 + col2 FROM tab0 AS cor0
----
100
451
6608

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

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT 18 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - COUNT( * ) * - ( + 13 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - COUNT ( * ) * - ( + 13 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
39

query III rowsort
SELECT * FROM tab2 WHERE NOT 39 BETWEEN + col2 * 63 AND + col0 * 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 61 ) * col1 FROM tab2
----
-3111
-4087
-4697

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

query I rowsort
SELECT DISTINCT col0 * col0 * ( + 66 ) FROM tab1
----
171666
476850
546546

query I rowsort
SELECT - 82 * - + 38 FROM tab2
----
3116
3116
3116

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

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

query I rowsort
SELECT ALL + 46 * + - 63 FROM tab0 AS cor0
----
-2898
-2898
-2898

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 53 >= ( 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT ( - 96 ) DIV + col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT ( - 96 ) / + col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL + ( - COUNT( DISTINCT 92 ) ) + - 95 FROM tab1, tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + ( - COUNT ( DISTINCT 92 ) ) + - 95 FROM tab1, tab1 AS cor0
----
-96

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

query I rowsort
SELECT + + 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + col0 - 9 > ( - col2 * 72 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + col0 - 9 > ( - col2 * 72 + col0 )
----
0

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

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

query I rowsort
SELECT + 83 AS col1 FROM tab2 cor0
----
83
83
83

query II rowsort
SELECT + col2, + 61 * + + col0 AS col1 FROM tab0 AS cor0
----
10
5307
47
915
99
5917

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 71 ) NOT BETWEEN ( NULL ) AND col0 OR NOT + 30 * 55 + col2 IN ( 21 + + 16 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT MIN( ALL 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1415
SELECT MIN ( ALL 63 ) FROM tab1
----
63

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab2 WHERE - 34 + - col0 + - 57 * col1 IS NOT NULL
----
5

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

query I rowsort
SELECT ALL + col0 * 16 + + ( - col2 ) FROM tab2 WHERE ( - + 6 + - 42 ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT 40 + MIN( + ( + 84 ) ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT 40 + MIN ( + ( + 84 ) ) FROM tab2
----
124

query I rowsort
SELECT - 67 * col1 AS col0 FROM tab2 WHERE + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 + 75 * col1 * - + col0 - - col0 col1 FROM tab0
----
-136898
-7138
-91070

query I rowsort
SELECT ALL + - 49 AS col2 FROM tab0 cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT 54 + - + COUNT( * ) + - + 64 * + COUNT( * ) + 14 FROM tab1 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-1425
SELECT 54 + - + COUNT ( * ) + - + 64 * + COUNT ( * ) + 14 FROM tab1 AS cor0
----
-127

query II rowsort
SELECT + col2 + + col2 AS col0, + col1 FROM tab1 AS cor0
----
118
5
136
47
192
14

query I rowsort
SELECT + ( + 41 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 80 AS col1, col2 col1 FROM tab2 AS cor0
----
-80
23
-80
40
-80
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1431
SELECT MIN ( + col0 ) col1 FROM tab2 AS cor0
----
46

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

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

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

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

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

query I rowsort
SELECT + + 15 * + col2 + - - col2 + - col1 * - 89 * 73 AS col2 FROM tab1 AS cor0
----
306447
33429
92494

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 74 * - 17 NOT IN ( + 70 + - col2 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 21
----

query I rowsort
SELECT 92 * - col0 FROM tab0
----
-1380
-8004
-8924

query I rowsort
SELECT + 73 AS col1 FROM tab1 WHERE NOT + 16 NOT BETWEEN col1 AND - - col0 + - col2
----
73

query I rowsort
SELECT DISTINCT - - col1 * - + col1 - + ( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col0 / - col0 AND NULL
----

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

query I rowsort
SELECT ALL + 6 * - 83 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + col1 + + + col1 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT MAX( col0 ) FROM tab0 AS cor0 WHERE NOT ( 84 ) IS NULL OR NOT NULL <= col1
----
97

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT ( 84 ) IS NULL OR NOT NULL <= col1
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT 97 * - - col2 / 23 + - col1 * col1 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-1450
SELECT 97 * - - col2 / 23 + - col1 * col1 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT - 98 * col1 * + + 81 AS col2 FROM tab2
----
-404838
-531846
-611226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT - MIN( ALL - ( col1 ) ) * - 0 DIV - + 23 * - + MAX( + - 78 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT - MIN ( ALL - ( col1 ) ) * - 0 / - + 23 * - + MAX ( + - 78 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT 23 + 40 - + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - + MIN( - 57 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT 23 + 40 - + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + MIN ( - 57 ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT MIN( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT MIN ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT DISTINCT 30 AS col1 FROM tab0 AS cor0 WHERE NOT 81 - col0 NOT BETWEEN ( - CAST( 35 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT 30 AS col1 FROM tab0 AS cor0 WHERE NOT 81 - col0 NOT BETWEEN ( - CAST ( 35 AS INTEGER ) ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - 66 BETWEEN + 79 AND NULL
----

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

query I rowsort
SELECT - col2 + - + 28 FROM tab1 AS cor0
----
-124
-87
-96

query I rowsort
SELECT DISTINCT + col0 * + 34 AS col2 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT - col1 - + - 51 NOT IN ( - 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT col1 FROM tab1 WHERE - - col2 * - - 27 + - - col1 * col2 / + col1 IN ( col0 + CAST( NULL AS SIGNED ) / - ( col0 / col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1463
SELECT col1 FROM tab1 WHERE - - col2 * - - 27 + - - col1 * col2 / + col1 IN ( col0 + CAST ( NULL AS INTEGER ) / - ( col0 / col0 ) )
----

query I rowsort
SELECT ALL + 67 + - col1 AS col2 FROM tab2
----
-10
0
16

query I rowsort
SELECT - col1 FROM tab0 WHERE - 75 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 * + - col2 * - + col1 + - col2 FROM tab0
----
178882
2090
9702

query I rowsort
SELECT DISTINCT + 74 + - col0 FROM tab2
----
-1
10
28

query I rowsort
SELECT col2 * - + 2 * + col2 FROM tab2
----
-1058
-3200
-6728

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

query I rowsort
SELECT ALL - col2 + + + 44 FROM tab1
----
-15
-24
-52

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

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

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

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

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

query I rowsort
SELECT 63 + - - col0 AS col2 FROM tab1 AS cor0 WHERE 75 * - - col1 IS NOT NULL
----
114
148
154

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

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # DIV for integer division: 
query II rowsort label-1477
SELECT col2 * + + col1, - col1 DIV 50 AS col1 FROM tab1
----
1344
0
295
0
3196
0

skipif mysql # not compatible
query II rowsort label-1477
SELECT col2 * + + col1, - col1 / 50 AS col1 FROM tab1
----
1344
0
295
0
3196
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1482
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 < ( - CAST( - + col1 AS SIGNED ) * - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1482
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 < ( - CAST ( - + col1 AS INTEGER ) * - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL IN ( - - 28 / - col1 + + col0 * col1, col2 + - + 79 * - col1 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 55 / + 87 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ( - 31 ) * + COUNT( * ) col1 FROM tab2
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1486
SELECT ( - 31 ) * + COUNT ( * ) col1 FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL CAST( + 48 AS SIGNED ) + + - 83 AS col1 FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL CAST ( + 48 AS INTEGER ) + + - 83 AS col1 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT - 6 + + 71 AS col0 FROM tab1
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT DISTINCT 45 + - COUNT( CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT 45 + - COUNT ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT DISTINCT + + col2 * + 90 + + 86 FROM tab2 AS cor0
----
2156
3686
5306

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN + col2 + + - col0 AND + col0
----
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1492
SELECT DISTINCT - 88 * - - 1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-88
3

skipif mysql # not compatible
query II rowsort label-1492
SELECT DISTINCT - 88 * - - 1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-88
3

query I rowsort
SELECT DISTINCT 22 + - 85 AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL col2 + 21 AS col2 FROM tab0 AS cor0
----
120
31
68

query II rowsort
SELECT - 41 * col1 AS col2, - 69 * col2 FROM tab1 AS cor0
----
-1927
-4692
-205
-4071
-574
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT + ( - - 24 ) + - COUNT( * ) + + 28 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + ( - - 24 ) + - COUNT ( * ) + + 28 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
52

query I rowsort
SELECT col2 - + + 77 + + ( + + 96 ) AS col0 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT MIN( DISTINCT + - 14 ) - + 53 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1498
SELECT MIN ( DISTINCT + - 14 ) - + 53 FROM tab2
----
-67

query I rowsort
SELECT 19 * - col1 - - col1 FROM tab1
----
-252
-846
-90

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

query I rowsort
SELECT ALL - col2 * - 25 - - col2 AS col2 FROM tab1
----
1534
1768
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT DISTINCT + 28 DIV - 29 + + ( col2 ) - - col2 - col1 * + - col0 + - + ( + col0 ) AS col1 FROM tab1 cor0
----
4322
458
855

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + 28 / - 29 + + ( col2 ) - - col2 - col1 * + - col0 + - + ( + col0 ) AS col1 FROM tab1 cor0
----
4322
458
855

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 83 IN ( + col2, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT col1 + - + ( + - col2 ) - + CAST( ( + + col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1504
SELECT col1 + - + ( + - col2 ) - + CAST ( ( + + col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

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

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

query I rowsort
SELECT - - ( - 43 ) * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
2068
4356
440

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 28 * - - 2 NOT IN ( - 8 + col1, col0, col0, - + ( - 38 ) + - + 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT ALL - + 99 + col1 col0 FROM tab0 AS cor0 WHERE NOT ( + col1 * col0 - - col0 ) <> + CAST( NULL AS SIGNED ) / + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1508
SELECT ALL - + 99 + col1 col0 FROM tab0 AS cor0 WHERE NOT ( + col1 * col0 - - col0 ) <> + CAST ( NULL AS INTEGER ) / + col0
----

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

query I rowsort
SELECT - ( - - 28 ) FROM tab1
----
-28
-28
-28

query I rowsort
SELECT - 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # DIV for integer division: 
query II rowsort label-1512
SELECT - col0 AS col2, - col1 DIV - - col1 AS col1 FROM tab1 AS cor0
----
-51
-1
-85
-1
-91
-1

skipif mysql # not compatible
query II rowsort label-1512
SELECT - col0 AS col2, - col1 / - - col1 AS col1 FROM tab1 AS cor0
----
-51
-1
-85
-1
-91
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL >= 26 / 77 * + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT 65, COUNT( + col2 ) AS col2 FROM tab0 cor0
----
65
3

skipif mysql # not compatible
query II rowsort label-1515
SELECT 65, COUNT ( + col2 ) AS col2 FROM tab0 cor0
----
65
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT ALL - 10 DIV + - col0 + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - 10 / + - col0 + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - 61 * + col1 - - 24 AS col0 FROM tab1 AS cor0
----
-281
-2843
-830

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT CAST( NULL AS SIGNED ) * 22 * + + 27 * - 16 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT CAST ( NULL AS INTEGER ) * 22 * + + 27 * - 16 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 51 * - 92 AS col0 FROM tab1 AS cor0
----
-4692
-4692
-4692

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE 17 + - col1 + + - 82 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + COUNT( * ) + + - 23 AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1523
SELECT + COUNT ( * ) + + - 23 AS col1 FROM tab2
----
-20

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

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

query I rowsort
SELECT + 22 * - col1 AS col2 FROM tab2 WHERE NOT NULL <> 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - SUM( + col1 ) + + 98 AS col2 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1527
SELECT - SUM ( + col1 ) + + 98 AS col2 FROM tab2 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * 50 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT - + col0 DIV 59 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1529
SELECT - + col0 / 59 AS col0 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT + + 47 DIV - 29 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1530
SELECT + + 47 / - 29 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT col2 - 32 * CAST( + col0 AS SIGNED ) FROM tab1
----
-1536
-2661
-2844

skipif mysql # not compatible
query I rowsort label-1533
SELECT col2 - 32 * CAST ( + col0 AS INTEGER ) FROM tab1
----
-1536
-2661
-2844

query I rowsort
SELECT - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE + col1 IN ( + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT 96 + + - 79 * - - 15 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3459

skipif mysql # not compatible
query I rowsort label-1536
SELECT 96 + + - 79 * - - 15 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3459

query I rowsort
SELECT col1 + + + col1 + col0 AS col1 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT DISTINCT - col1 + + - 60 FROM tab0 AS cor0
----
-141
-61
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 71 + + col2 col1 FROM tab0 AS cor0
----
118
170
81

query I rowsort
SELECT ALL ( + + 32 ) + + col2 * + - col1 AS col0 FROM tab0
----
-178
-3775
-67

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

query III rowsort
SELECT * FROM tab1 WHERE 32 + 10 + - 71 <= NULL
----

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

query I rowsort
SELECT ALL + 78 + col1 FROM tab1
----
125
83
92

query I rowsort
SELECT DISTINCT - 96 * + + 4 * col2 FROM tab2
----
-15360
-22272
-8832

query I rowsort
SELECT DISTINCT col2 * - col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

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

query I rowsort
SELECT - + 6 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT ALL + 4 / + 46 * - col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL + 4 / + 46 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col2 <= - col1 + - + ( col0 )
----
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT + SUM( ALL - col1 ) + SUM( ALL - col0 ) FROM tab1
----
-293

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + SUM ( ALL - col1 ) + SUM ( ALL - col0 ) FROM tab1
----
-293

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT + COUNT( * ), - COUNT( * ) + - + COUNT( * ) * 10 AS col0 FROM tab1
----
3
-33

skipif mysql # not compatible
query II rowsort label-1556
SELECT + COUNT ( * ), - COUNT ( * ) + - + COUNT ( * ) * 10 AS col0 FROM tab1
----
3
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT 51 * SUM( ALL + 84 ) * - - ( + 15 ) AS col2 FROM tab0
----
192780

skipif mysql # not compatible
query I rowsort label-1557
SELECT 51 * SUM ( ALL + 84 ) * - - ( + 15 ) AS col2 FROM tab0
----
192780

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

query I rowsort
SELECT DISTINCT 26 * - 69 AS col2 FROM tab0
----
-1794

query I rowsort
SELECT DISTINCT - col0 * + ( - - col1 ) / - 8 FROM tab2 WHERE NOT NULL < + - 68 * - col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1561
SELECT col0 AS col1, + CAST( - + ( col2 ) AS SIGNED ) FROM tab2
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
query II rowsort label-1561
SELECT col0 AS col1, + CAST ( - + ( col2 ) AS INTEGER ) FROM tab2
----
46
-23
64
-40
75
-58

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1563
SELECT ALL - + CAST ( col1 AS INTEGER ) col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT CAST( + 12 AS SIGNED ) > + - 41
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT CAST ( + 12 AS INTEGER ) > + - 41
----
0

query I rowsort
SELECT DISTINCT col0 - - 19 FROM tab1 AS cor0 WHERE NULL IS NULL
----
104
110
70

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

query I rowsort
SELECT + col2 + + ( + - 19 ) * col0 FROM tab1 AS cor0
----
-1556
-1661
-873

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

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

query II rowsort
SELECT + - 34 * + - col0 - + + 2 * 85, - 66 AS col2 FROM tab2 AS cor0
----
1394
-66
2006
-66
2380
-66

query I rowsort
SELECT + 66 - - 43 AS col1 FROM tab1
----
109
109
109

query I rowsort
SELECT - ( + 78 ) FROM tab1
----
-78
-78
-78

query I rowsort
SELECT + col1 * - 50 AS col0 FROM tab2
----
-2550
-3350
-3850

onlyif mysql # DIV for integer division: 
query II rowsort label-1574
SELECT - ( + col2 ) DIV - col2, col0 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-1574
SELECT - ( + col2 ) / - col2, col0 FROM tab2
----
1
46
1
64
1
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT 18 + + 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-1576
SELECT 18 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 col2, - col2 AS col2 FROM tab0 AS cor0
----
37
-10
37
-47
37
-99

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

query I rowsort
SELECT + col1 + - col1 * - - col0 * - col1 AS col2 FROM tab2 cor0
----
119697
336742
379533

query I rowsort
SELECT ALL + + 57 * + 27 AS col1 FROM tab1 AS cor0
----
1539
1539
1539

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT ALL - ( col2 ) DIV col1 * + col0 * - col0 * - + col0 AS col0 FROM tab0 AS cor0
----
-90354627
0
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - ( col2 ) / col1 * + col0 * - col0 * - + col0 AS col0 FROM tab0 AS cor0
----
-90354627
0
0

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

query II rowsort
SELECT - col2 + + 17 AS col2, - col1 + + + 30 FROM tab1
----
-42
25
-51
-17
-79
16

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT + 22 DIV - 59 + - col2 + - 96 col0 FROM tab2 AS cor0
----
-119
-136
-154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1587
SELECT + 22 / - 59 + - col2 + - 96 col0 FROM tab2 AS cor0
----
-119
-136
-154

query I rowsort
SELECT DISTINCT - col0 + - 33 AS col1 FROM tab1
----
-118
-124
-84

query I rowsort
SELECT DISTINCT 64 + + - 23 AS col1 FROM tab2
----
41

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

query I rowsort
SELECT col2 * + + col2 + - + col2 + - 99 * 4 FROM tab1 cor0
----
3026
4160
8724

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT ALL + col0 DIV - + col0 - - - 78 + + 26 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + col0 / - + col0 - - - 78 + + 26 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ( - - col0 ) * + + col0 + - col0 + + col0 + + ( + col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
2564
7145
8237

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 60
----

query I rowsort
SELECT ALL - 44 FROM tab2 cor0 WHERE - col2 <= 86
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL 68 - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL 68 - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
71

query II rowsort
SELECT - ( + 18 ) AS col2, col2 - col1 AS col0 FROM tab1
----
-18
21
-18
54
-18
82

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

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

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab2 cor0
----
-25

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 67 AND col2 - - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT 96 * - - COUNT( * ) AS col1 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT 96 * - - COUNT ( * ) AS col1 FROM tab0
----
288

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 48 ) * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 14 * + + 0 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT - col2, - 27 AS col1 FROM tab2
----
-23
-27
-40
-27
-58
-27

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT DISTINCT COUNT( * ) * - 95 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT COUNT ( * ) * - 95 FROM tab1 AS cor0
----
-285

query I rowsort
SELECT + col2 * + + col0 * - col2 AS col1 FROM tab0 cor0
----
-33135
-8700
-950697

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

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

query I rowsort
SELECT ALL + 75 + - 34 AS col1 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT - 55 * - 46 FROM tab2
----
2530
2530
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT + MAX( - + 14 ) AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-1612
SELECT + MAX ( - + 14 ) AS col1 FROM tab1
----
-14

query I rowsort
SELECT ALL col0 + 85 AS col0 FROM tab1
----
136
170
176

query I rowsort
SELECT ALL - col2 + + 3 AS col1 FROM tab2
----
-20
-37
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT - 26 * - + COUNT( ALL + ( col1 ) ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT - 26 * - + COUNT ( ALL + ( col1 ) ) AS col1 FROM tab1
----
78

query I rowsort
SELECT ALL + - col0 - + + 91 FROM tab0 AS cor0
----
-106
-178
-188

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

skipif mysql # not compatible
query II rowsort label-1617
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
6

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col0 * - col0 AND + col0 + - 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT + - col1 DIV col0 + - col0 - - col0 + + - col2 * - 68 + - 14 AS col0 FROM tab0 AS cor0
----
3177
666
6718

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + - col1 / col0 + - col0 - - col0 + + - col2 * - 68 + - 14 AS col0 FROM tab0 AS cor0
----
3177
666
6718

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 70 + - col0 >= NULL
----

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

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

query I rowsort
SELECT ALL + col1 * + - 44 AS col0 FROM tab0 AS cor0
----
-3564
-44
-924

query I rowsort
SELECT - + ( + col1 ) * col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + - col2 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT DISTINCT + COUNT( * ), 86 col1 FROM tab0
----
3
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1628
SELECT DISTINCT + COUNT ( * ), 86 col1 FROM tab0
----
3
86

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 41 > NULL
----

query II rowsort
SELECT ALL - 73 AS col2, - col0 AS col2 FROM tab1
----
-73
-51
-73
-85
-73
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT DISTINCT CAST( + 76 AS SIGNED ) * - + col2 FROM tab0
----
-3572
-7524
-760

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT CAST ( + 76 AS INTEGER ) * - + col2 FROM tab0
----
-3572
-7524
-760

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 >= 69
----
87
21
10
97
1
99

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

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

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

query I rowsort
SELECT ALL + 17 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + 81 * - 62 AS col1 FROM tab2 AS cor0
----
-5022

query I rowsort
SELECT col0 + + - col2 + 95 * + col0 AS col1 FROM tab0 AS cor0
----
1393
8342
9213

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1638
SELECT ALL + 61 * - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST( col2 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + 61 * - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST ( col2 AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL + + MIN( - + 1 ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT - 19 FROM tab2, tab0 AS cor0
----
-19

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

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

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

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

query I rowsort
SELECT ALL - col0 + - col0 + + 59 FROM tab1
----
-111
-123
-43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL <= col1 * + col2 * + + 95 )
----

query I rowsort
SELECT DISTINCT col2 + + - 55 AS col2 FROM tab0
----
-45
-8
44

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

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

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

query I rowsort
SELECT col0 * - col1 * + col0 FROM tab2 cor0
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT + 18 + - col2 * - col2 + + col1 FROM tab2 AS cor0
----
1695
3449
598

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT 6 DIV - 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1653
SELECT 6 / - 83 FROM tab2
----
0
0
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1655
SELECT + col2 col1, + col0 / + col2 FROM tab2 AS cor0
----
23
2
40
1
58
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT DISTINCT + col0 * + col1 * - + col1 + - 34 + + CAST( NULL AS SIGNED ) + - ( - col2 ) - col1 / + + 53 + - 89 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + col0 * + col1 * - + col1 + - 34 + + CAST ( NULL AS INTEGER ) + - ( - col2 ) - col1 / + + 53 + - 89 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL + col2 * col1 + + col2 DIV col2 * + + 86 FROM tab2 AS cor0
----
1259
3166
3972

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + col2 * col1 + + col2 / col2 * + + 86 FROM tab2 AS cor0
----
1259
3166
3972

query I rowsort
SELECT DISTINCT col1 * - + col1 * - col1 FROM tab1 cor0
----
103823
125
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT COUNT( ALL + + 40 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1659
SELECT COUNT ( ALL + + 40 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL + COUNT( - - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + COUNT ( - - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 * - 19 AS col0 FROM tab2 AS cor0
----
46
-437
64
-760
75
-1102

query I rowsort
SELECT + ( col1 ) * 82 AS col2 FROM tab0
----
1722
6642
82

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

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

query I rowsort
SELECT - 71 * + col0 AS col2 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT col0 DIV + + ( + - col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1665
SELECT col0 / + + ( + - col2 ) FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT col2 * + 5 AS col0 FROM tab1
----
295
340
480

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 * 2 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT ALL - SUM( DISTINCT - col1 ) + - + 27 DIV - + SUM( DISTINCT + 92 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - SUM ( DISTINCT - col1 ) + - + 27 / - + SUM ( DISTINCT + 92 ) AS col0 FROM tab0 AS cor0
----
103

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL MAX( DISTINCT - 32 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-32

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL MAX ( DISTINCT - 32 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-32

query I rowsort
SELECT - col1 * + 43 + + col2 FROM tab1
----
-156
-1953
-506

query III rowsort
SELECT * FROM tab1 WHERE - + 87 NOT BETWEEN NULL AND - - col0
----

query I rowsort
SELECT ALL + 9 + - - col0 + col0 * col0 AS col1 FROM tab2
----
2171
4169
5709

query II rowsort
SELECT DISTINCT col0 * - ( - col1 ), col2 FROM tab1
----
425
59
4277
68
714
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT DISTINCT + col1 DIV + - col2 + + col1 * + 46 + - - 16 * + col2 - col2 FROM tab1 AS cor0
----
1115
2084
3182

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT + col1 / + - col2 + + col1 * + 46 + - - 16 * + col2 - col2 FROM tab1 AS cor0
----
1115
2084
3182

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

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

query I rowsort
SELECT - 96 * - col0 * - 68 * ( + 12 ) FROM tab0 AS cor0
----
-1175040
-6815232
-7598592

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

skipif mysql # not compatible
query II rowsort label-1680
SELECT + COUNT ( * ) AS col2, - 9 AS col0 FROM tab2 AS cor0
----
3
-9

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

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

query I rowsort
SELECT - + 21 * + + col0 AS col0 FROM tab2 AS cor0
----
-1344
-1575
-966

query I rowsort
SELECT 12 / - - col0 * - col2 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL - 25 + + col1 + + col1 + - 86 FROM tab0
----
-109
-69
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col1 + - col1 * col1 * + 18 col2 FROM tab2
----
-112651
-49419
-85291

query I rowsort
SELECT col2 * 93 - - col2 AS col2 FROM tab0
----
4418
9306
940

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

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

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

query I rowsort
SELECT ALL - - 71 - 46 + + + col1 + ( col1 ) * col2 AS col2 FROM tab2 cor0
----
1249
3182
3978

query I rowsort
SELECT + ( - - col2 ) * + col1 * - + col2 + col1 FROM tab2 cor0
----
-123123
-225321
-26928

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT MIN( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 31 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-1693
SELECT MIN ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 31 IS NULL
----
5

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

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

query I rowsort
SELECT 91 * - col0 FROM tab0 cor0
----
-1365
-7917
-8827

query I rowsort
SELECT - col2 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 24 * - col2 col0 FROM tab0 AS cor0
----
16920
20880
230472

query I rowsort
SELECT DISTINCT - 92 * col2 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1700
SELECT + CAST( + AVG ( DISTINCT 17 ) AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1700
SELECT + CAST ( + AVG ( DISTINCT 17 ) AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col1
----
NULL
0

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

query II rowsort
SELECT ALL col2, + 48 FROM tab1 WHERE NOT - + col0 + col1 NOT BETWEEN NULL AND + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT + + COUNT( * ) * + - 84 * - 70 FROM tab2 cor0
----
17640

skipif mysql # not compatible
query I rowsort label-1704
SELECT + + COUNT ( * ) * + - 84 * - 70 FROM tab2 cor0
----
17640

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

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

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

query III rowsort
SELECT col0, + col0, - col2 FROM tab2 AS cor0
----
9 values hashing to 94f6f2095e14bd72ddcac65c0796d4ea

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT + - SUM( ALL - col0 ) FROM tab1 WHERE NOT + - 58 NOT IN ( 6 + col2, - ( ( - - col0 ) ) + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT + - SUM ( ALL - col0 ) FROM tab1 WHERE NOT + - 58 NOT IN ( 6 + col2, - ( ( - - col0 ) ) + - col2 )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 77 FROM tab0 cor0 WHERE NOT col0 * 45 * col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 76 ) + - + col2, col2 * - ( - - col1 ) col1 FROM tab0 AS cor0
----
-23
-99
29
-3807
66
-210

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

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

query III rowsort
SELECT * FROM tab0 WHERE 74 < + - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT - MIN( + - 49 ) + 32 AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT - MIN ( + - 49 ) + 32 AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT + col2 * + col0 + 99 * + + col0 - + col0 - + + CAST( - 38 AS SIGNED ) * + col0 FROM tab2 WHERE + 81 <= - + 67
----

skipif mysql # not compatible
query I rowsort label-1718
SELECT + col2 * + col0 + 99 * + + col0 - + col0 - + + CAST ( - 38 AS INTEGER ) * + col0 FROM tab2 WHERE + 81 <= - + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL 94 * + + CAST( NULL AS SIGNED ) / + col1 + - 59 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL 94 * + + CAST ( NULL AS INTEGER ) / + col1 + - 59 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT DISTINCT - COUNT( * ) DIV - - 78 * + 13 - - COUNT( + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - COUNT ( * ) / - - 78 * + 13 - - COUNT ( + col0 ) FROM tab2
----
3

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

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

query I rowsort
SELECT DISTINCT + 3 * + + col0 + + + col0 AS col1 FROM tab1
----
204
340
364

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 + 52 / - 76 AND NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1725
SELECT ALL ( - - COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1726
SELECT ALL - ( - 44 ) AS col2, - MAX( - 59 ) FROM tab0 cor0
----
44
59

skipif mysql # not compatible
query II rowsort label-1726
SELECT ALL - ( - 44 ) AS col2, - MAX ( - 59 ) FROM tab0 cor0
----
44
59

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NULL = + col0
----
NULL

query I rowsort
SELECT ALL + + col1 * + - ( + + col2 ) FROM tab2 cor0
----
-1173
-3080
-3886

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + 96 + + - col0 AS col2 FROM tab1
----
11
45
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * - col2 col0 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT - - SUM( - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-1735
SELECT - - SUM ( - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

onlyif mysql # DIV for integer division: 
query II rowsort label-1736
SELECT DISTINCT 92 col0, 68 DIV + - col2 FROM tab1
----
92
-1
92
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1736
SELECT DISTINCT 92 col0, 68 / + - col2 FROM tab1
----
92
-1
92
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 26 * + - 57 AS col2 FROM tab1
----
-1482
-1482
-1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1739
SELECT DISTINCT - 36 DIV MIN( DISTINCT - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT - 36 / MIN ( DISTINCT - col0 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT 67 * col2 * 63 FROM tab1
----
249039
287028
405216

query I rowsort
SELECT ALL - + 4 FROM tab1 AS cor0 WHERE col0 < NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, + 24 AS col2 FROM tab2 AS cor0
----
-46
24
-64
24
-75
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 64 * + ( + 11 ) * - col1 = col2
----

query II rowsort
SELECT DISTINCT ( + 5 ) * col2 + - col1 + + + col0 AS col2, - col0 * - + col1 FROM tab0 AS cor0
----
116
1827
169
1215
591
97

query I rowsort
SELECT 80 + col0 FROM tab1
----
131
165
171

query II rowsort
SELECT - 26, col2 AS col1 FROM tab2
----
-26
23
-26
40
-26
58

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 72 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1750
SELECT ALL 53, - 51 * 93 + + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
53
-4737

skipif mysql # not compatible
query II rowsort label-1750
SELECT ALL 53, - 51 * 93 + + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
53
-4737

query I rowsort
SELECT DISTINCT + ( 8 ) FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + 99 AS col1 FROM tab2 WHERE ( ( col2 NOT IN ( - CAST( NULL AS SIGNED ) * + col0, col2, - + col0, 50 ) ) )
----

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 99 AS col1 FROM tab2 WHERE ( ( col2 NOT IN ( - CAST ( NULL AS INTEGER ) * + col0, col2, - + col0, 50 ) ) )
----

query I rowsort
SELECT - + col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 50 + col2 - + col0 col1 FROM tab2
----
-2323
-3224
-3767

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) - - + col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT 42 * + 1 + - COUNT( * ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-1756
SELECT 42 * + 1 + - COUNT ( * ) AS col1 FROM tab0
----
39

query I rowsort
SELECT + 35 * + - 0 + 93 * + 66 FROM tab1
----
6138
6138
6138

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - 86 FROM tab0
----
-1806
-6966
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1760
SELECT ALL * FROM tab2 WHERE NOT - + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1761
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + - 31 * - - 15 * - 58 FROM tab2 AS cor0
----
26970
26970
26970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1764
SELECT ALL + 79, - CAST( - - 86 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
79
-86
79
-86
79
-86

skipif mysql # not compatible
query II rowsort label-1764
SELECT ALL + 79, - CAST ( - - 86 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
79
-86
79
-86
79
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT - ( CAST( + col1 AS SIGNED ) ) * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1765
SELECT - ( CAST ( + col1 AS INTEGER ) ) * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + ( + + ( 71 ) ) AND 64 * + - col2
----

query II rowsort
SELECT col0 AS col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT DISTINCT + + col0 AS col2, col1 * - col1 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 col2, col1 FROM tab2 AS cor0
----
80
51
80
67
80
77

query II rowsort
SELECT + col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1771
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > + ( - CAST( + col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1771
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > + ( - CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + MIN( + col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1772
SELECT + MIN ( + col1 ) AS col0 FROM tab1 cor0
----
5

query II rowsort
SELECT col0 AS col0, - 34 FROM tab1 AS cor0
----
51
-34
85
-34
91
-34

query II rowsort
SELECT - col0 AS col1, col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + 11 FROM tab2 WHERE NOT NULL IS NOT NULL
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 + - + col2 col0 FROM tab1
----
-3
25
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT + SUM( - col1 ) / 12 + - - ( - 60 ) + + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT + SUM ( - col1 ) / 12 + - - ( - 60 ) + + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT + col2 + + - 37 AS col2 FROM tab1 AS cor0
----
22
31
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 - + 3 * + col1 * - col1 FROM tab1
----
160
639
6718

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT MAX( 34 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT MAX ( 34 ) FROM tab0
----
34

query I rowsort
SELECT + col1 + + - 47 AS col1 FROM tab2
----
20
30
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT 3 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT 3 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT - 52 + + + MAX( + ( - - 20 ) ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1785
SELECT - 52 + + + MAX ( + ( - - 20 ) ) FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1786
SELECT + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT - - COUNT( - col0 ) + SUM( DISTINCT 84 ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1787
SELECT - - COUNT ( - col0 ) + SUM ( DISTINCT 84 ) AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - 14 * - + col0 FROM tab2 AS cor0
----
1050
644
896

onlyif mysql # DIV for integer division: 
query II rowsort label-1789
SELECT DISTINCT + 45 * col1 DIV - col0 + col0 DIV - - col1, col1 AS col2 FROM tab2 cor0
----
-39
67
-49
51
-54
77

skipif mysql # not compatible
query II rowsort label-1789
SELECT DISTINCT + 45 * col1 / - col0 + col0 / - - col1, col1 AS col2 FROM tab2 cor0
----
-39
67
-49
51
-54
77

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab2 WHERE + 65 / + 51 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + 85 BETWEEN + + col0 * + 74 AND NULL
----

query II rowsort
SELECT + col2 AS col0, 56 FROM tab2
----
23
56
40
56
58
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1794
SELECT - CAST( NULL AS SIGNED ) AS col2, - 43 + 46 AS col2 FROM tab0
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
query II rowsort label-1794
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 43 + 46 AS col2 FROM tab0
----
NULL
3
NULL
3
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT ( CAST( - col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1795
SELECT ( CAST ( - col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT - 36 AS col1, col0 FROM tab0
----
-36
15
-36
87
-36
97

query I rowsort
SELECT DISTINCT - col0 * + - 72 FROM tab2 AS cor0
----
3312
4608
5400

query II rowsort
SELECT ALL - + col1 AS col2, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - col0 - + 3 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-54
-88
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + COUNT( ALL + ( - - 46 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + COUNT ( ALL + ( - - 46 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + col1 * + + col0 * + - col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT - COUNT( * ) * 10 AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1802
SELECT - COUNT ( * ) * 10 AS col0 FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT + + col1 * + - ( col2 ) + + + col1 AS col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL + 66 * + - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1386
-5346
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + COUNT( * ) + - + COUNT( * ) + - COUNT( * ) * + SUM( ALL col0 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT + COUNT ( * ) + - + COUNT ( * ) + - COUNT ( * ) * + SUM ( ALL col0 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - - 19 ) AS col1 FROM tab1 AS cor0
----
19

query I rowsort
SELECT DISTINCT + 96 * - col1 + - + col0 AS col1 FROM tab2
----
-4942
-6507
-7456

query I rowsort
SELECT - ( - - 64 ) AS col2 FROM tab0
----
-64
-64
-64

query II rowsort
SELECT - 48, col2 AS col2 FROM tab2
----
-48
23
-48
40
-48
58

query II rowsort
SELECT - - col1 AS col0, - col2 + - - ( - + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - COUNT( * ) * - SUM( DISTINCT + col0 ) + - 79 col0 FROM tab1 AS cor0
----
602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1812
SELECT - COUNT ( * ) * - SUM ( DISTINCT + col0 ) + - 79 col0 FROM tab1 AS cor0
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - COUNT( - 67 ) + - 12 col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT - COUNT ( - 67 ) + - 12 col1 FROM tab2 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 24 >= col2
----
64
77
40
75
67
58

query I rowsort
SELECT + col1 + 39 AS col1 FROM tab0
----
120
40
60

query I rowsort
SELECT col2 FROM tab2 WHERE NULL BETWEEN + col1 AND + 53
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT ( 46 ) + - 20 AS col0 FROM tab1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT col2 DIV + 34 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1820
SELECT col2 / + 34 AS col2 FROM tab0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT ALL 76 * col2 - - ( - 52 ) DIV - 98 AS col0 FROM tab2
----
1748
3040
4408

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL 76 * col2 - - ( - 52 ) / - 98 AS col0 FROM tab2
----
1748
3040
4408

query I rowsort
SELECT ALL + col1 * - col2 FROM tab0 WHERE - col0 / col1 IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT - 57 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - col1 + 11 FROM tab0
----
-10
-70
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT + CAST( - ( - col0 ) AS SIGNED ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1826
SELECT + CAST ( - ( - col0 ) AS INTEGER ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT + 53 - - col2 FROM tab0
----
100
152
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1828
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT COUNT( col2 ) FROM tab2 WHERE NOT col2 >= ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1829
SELECT COUNT ( col2 ) FROM tab2 WHERE NOT col2 >= ( col0 )
----
3

query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab2 WHERE NOT - col2 < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col0 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL ( - 80 ) AS col0 FROM tab2
----
-80
-80
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 18 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT ALL - 63 DIV 27 col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT ALL - 63 / 27 col0 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL COUNT( ALL + 25 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL COUNT ( ALL + 25 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 50 + - 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - col2 * col2 + 5 FROM tab1 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + col1 NOT BETWEEN NULL AND + col0 / 67
----

query I rowsort
SELECT 55 AS col0 FROM tab0 WHERE NOT + col2 > col1 * col1
----
55
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN + col2 * col0 + + col1 AND col0 * 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE + 52 * col1 + + col1 NOT IN ( + col1 )
----
10
47
99

query I rowsort
SELECT + - 73 AS col2 FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT + + MAX( ALL - col2 ) DIV + 51 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + + MAX ( ALL - col2 ) / + 51 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT + - 88 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1845
SELECT + - 88 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1846
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 53 AS col0 FROM tab1 WHERE NULL <= ( col0 ) + + 26 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 * + 82 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 * + 82 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - + col2 * col0 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT + 34 + - 94 AS col2 FROM tab0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL + MIN( col0 ) * + 86 FROM tab2 WHERE + col0 NOT IN ( - col1 )
----
3956

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + MIN ( col0 ) * + 86 FROM tab2 WHERE + col0 NOT IN ( - col1 )
----
3956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT - col2 * - 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-1853
SELECT - col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 13 * + col1 AS col1 FROM tab2 AS cor0
----
1001
663
871

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL + - 80 * + COUNT( * ) FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + - 80 * + COUNT ( * ) FROM tab2 AS cor0
----
-240

query I rowsort
SELECT + - col1 * + + col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - 69 + + col1 FROM tab0 AS cor0
----
-48
-68
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1858
SELECT - col0 / + col1 AS col1 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1858
SELECT - col0 / + col1 AS col1 FROM tab2 WHERE - CAST ( NULL AS REAL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
-81

query I rowsort
SELECT DISTINCT 94 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
94

query I rowsort
SELECT + + 97 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT col0 FROM tab0 WHERE + col1 NOT IN ( - col2 )
----
15
87
97

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT + - col2 BETWEEN + col1 AND ( NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT MIN( + col0 ) * + 98 + - 22 FROM tab2 AS cor0
----
4486

skipif mysql # not compatible
query I rowsort label-1865
SELECT MIN ( + col0 ) * + 98 + - 22 FROM tab2 AS cor0
----
4486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT DISTINCT - CAST( + - 28 AS SIGNED ) col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1866
SELECT DISTINCT - CAST ( + - 28 AS INTEGER ) col0 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( col0 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1868
SELECT ALL - - col0 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL - - col0 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + ( 35 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= + ( 40 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col0 * 20
----

query I rowsort
SELECT ( col2 ) * - 36 + - 13 AS col1 FROM tab2
----
-1453
-2101
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( + col1 - + + col0 ) >= col1 + col1
----
3

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( + col1 - + + col0 ) >= col1 + col1
----
3

query II rowsort
SELECT 86 * + - col0 AS col2, col1 FROM tab0
----
-1290
81
-7482
21
-8342
1

query I rowsort
SELECT col1 * - - 28 AS col1 FROM tab2
----
1428
1876
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT ALL - col2 DIV + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - col2 / + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND - ( 55 )
----
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND - ( 55 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * + - col2 col0 FROM tab1
----
5782
6664
9408

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT - 18 DIV - ( + col0 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1879
SELECT - 18 / - ( + col0 ) FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT ( + + col1 ) * - col1 - + 54 FROM tab0
----
-495
-55
-6615

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT ALL 6 DIV col0 * - - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL 6 / col0 * - - col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1882
SELECT ALL * FROM tab1 AS cor0 WHERE 8 NOT IN ( + CAST( - - 23 AS SIGNED ) / col0 - ( + CAST( 41 AS SIGNED ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1882
SELECT ALL * FROM tab1 AS cor0 WHERE 8 NOT IN ( + CAST ( - - 23 AS INTEGER ) / col0 - ( + CAST ( 41 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT DISTINCT + CAST( + 5 AS SIGNED ) AS col0 FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT + CAST ( + 5 AS INTEGER ) AS col0 FROM tab2 cor0
----
5

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR ( NULL ) NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * col1 FROM tab1 WHERE - 93 / - + col2 + col2 - col1 * - 39 * col1 BETWEEN NULL AND - col1 OR - ( col2 ) BETWEEN - 97 AND - 31
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL MIN( + ( - - col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL MIN ( + ( - - col1 ) ) AS col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + col0 * - 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 / + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 47 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 10 FROM tab1 AS cor0
----
-106
-69
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT - COUNT( - 43 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1890
SELECT - COUNT ( - 43 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE 44 BETWEEN col2 AND - + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 * - col2 + col2 * - + 19 * - - 94 * - 58 + + col0 * 83 col2 FROM tab0 cor0
----
10260590
1042831
4868612

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1893
SELECT * FROM tab1 AS cor0 WHERE + col1 + - + col0 + - CAST( NULL AS DECIMAL ) / + - col1 > - col0
----

skipif mysql # not compatible
query III rowsort label-1893
SELECT * FROM tab1 AS cor0 WHERE + col1 + - + col0 + - CAST ( NULL AS REAL ) / + - col1 > - col0
----

query I rowsort
SELECT - AVG ( + 49 ) FROM tab1 WHERE ( NOT NULL <= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - COUNT( * ) * - + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT - COUNT ( * ) * - + COUNT ( * ) col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1896
SELECT ALL + 55 * + - 3 + MAX( ALL - - col2 ) AS col1, - 57 * + + 73 col0 FROM tab1
----
-69
-4161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1896
SELECT ALL + 55 * + - 3 + MAX ( ALL - - col2 ) AS col1, - 57 * + + 73 col0 FROM tab1
----
-69
-4161

query I rowsort
SELECT col1 - col0 - - col0 AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1898
SELECT ( - 9 ) + + 47 + CAST( NULL AS DECIMAL ) / + 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1898
SELECT ( - 9 ) + + 47 + CAST ( NULL AS REAL ) / + 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT DISTINCT + 65 + col2 + + 19 + - - col1 DIV - col0 + + + ( 99 ) AS col2 FROM tab0
----
193
225
282

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT + 65 + col2 + + 19 + - - col1 / - col0 + + + ( 99 ) AS col2 FROM tab0
----
193
225
282

query III rowsort
SELECT * FROM tab0 WHERE 98 BETWEEN + - 60 * + 67 / - col0 AND ( NULL )
----

query I rowsort
SELECT + col1 + - 36 AS col0 FROM tab0
----
-15
-35
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT DISTINCT 97 - + - col1 - - 77 DIV col0 - - col0 FROM tab2
----
195
239
240

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT 97 - + - col1 - - 77 / col0 - - col0 FROM tab2
----
195
239
240

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + col2 * 71 * 71 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query II rowsort
SELECT 71 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
71
-51
71
-85
71
-91

query I rowsort
SELECT + 50 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT 54 DIV col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1907
SELECT 54 / col0 FROM tab0
----
0
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT MAX( CAST( NULL AS SIGNED ) ) - + 44 - - 68 FROM tab1 WHERE NOT NULL IS NULL AND NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT MAX ( CAST ( NULL AS INTEGER ) ) - + 44 - - 68 FROM tab1 WHERE NOT NULL IS NULL AND NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1909
SELECT + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT + COUNT( * ) * - 15 col0 FROM tab2 cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1910
SELECT + COUNT ( * ) * - 15 col0 FROM tab2 cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col0 * + - 74 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-3774
-14
-6290
-5
-6734
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT + MIN( ALL 9 ) FROM tab2 AS cor0 WHERE NOT + col0 * - + col0 + - + col0 BETWEEN 70 + - + CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT + MIN ( ALL 9 ) FROM tab2 AS cor0 WHERE NOT + col0 * - + col0 + - + col0 BETWEEN 70 + - + CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query I rowsort
SELECT - 15 * 22 AS col2 FROM tab1
----
-330
-330
-330

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + - MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1918
SELECT + - MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - 22 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + + + col0 col0 FROM tab0 AS cor0
----
6
78
88

query I rowsort
SELECT DISTINCT 0 + col0 + - col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE - ( + - col0 ) IN ( col1 + ( + 48 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT + CAST( - - col2 AS SIGNED ) + 70 FROM tab2 AS cor0
----
110
128
93

skipif mysql # not compatible
query I rowsort label-1923
SELECT + CAST ( - - col2 AS INTEGER ) + 70 FROM tab2 AS cor0
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - + ( 49 ) + + - COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1924
SELECT - + ( 49 ) + + - COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - + 19 + - + SUM( DISTINCT + 89 ) AS col2 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1925
SELECT - + 19 + - + SUM ( DISTINCT + 89 ) AS col2 FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT - 30 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1926
SELECT - 30 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT - 33 + col1 AS col1 FROM tab0 AS cor0
----
-12
-32
48

query I rowsort
SELECT ALL + col1 * - - col1 * - + 1 * - 8 - - 75 / + col0 * col0 - 46 * - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + + 25
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1929
SELECT 49 / + COUNT( + - 66 ) + - + CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT 49 / + COUNT ( + - 66 ) + - + CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 38 + + + col2 FROM tab0 AS cor0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL + COUNT( * ) * - - SUM( DISTINCT 61 ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + COUNT ( * ) * - - SUM ( DISTINCT 61 ) FROM tab2 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT DISTINCT CAST( 25 AS SIGNED ) * + col0 + 58 AS col1 FROM tab1 cor0
----
1333
2183
2333

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT CAST ( 25 AS INTEGER ) * + col0 + 58 AS col1 FROM tab1 cor0
----
1333
2183
2333

query II rowsort
SELECT 25 * + + col1, - col0 FROM tab0 WHERE 7 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col2 + 53 AS col1 FROM tab2
----
29
30
36

query I rowsort
SELECT ALL - col0 * + col0 + ( - col2 ) FROM tab1
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT + COUNT( * ) - ( MAX( - col2 ) ) AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT + COUNT ( * ) - ( MAX ( - col2 ) ) AS col1 FROM tab0
----
13

query I rowsort
SELECT ALL - col1 + - 28 AS col2 FROM tab1
----
-33
-42
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1938
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - - ( + CAST( NULL AS SIGNED ) ) NOT IN ( - + col0, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - - ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - + col0, + col1 )
----
0

query I rowsort
SELECT ALL + 63 + 20 FROM tab1
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT DISTINCT - 29 * - CAST( 25 AS SIGNED ) * + + COUNT( * ) - COUNT( * ) AS col2 FROM tab0
----
2172

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - 29 * - CAST ( 25 AS INTEGER ) * + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0
----
2172

query I rowsort
SELECT col1 - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT - MAX( + - col1 ) - - CAST( + 73 AS SIGNED ) AS col1 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-1942
SELECT - MAX ( + - col1 ) - - CAST ( + 73 AS INTEGER ) AS col1 FROM tab0 cor0
----
74

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - ( - 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT DISTINCT + COUNT( * ), COUNT( + ( + 28 ) ) FROM tab1 WHERE + 49 IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-1945
SELECT DISTINCT + COUNT ( * ), COUNT ( + ( + 28 ) ) FROM tab1 WHERE + 49 IS NOT NULL
----
3
3

query II rowsort
SELECT DISTINCT + 56, col2 AS col1 FROM tab1 AS cor0
----
56
59
56
68
56
96

query I rowsort
SELECT - ( - + ( 73 ) ) FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL ( + MAX( ALL - 27 ) ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL ( + MAX ( ALL - 27 ) ) AS col0 FROM tab0 AS cor0
----
-27

query II rowsort
SELECT + 17, - col2 AS col2 FROM tab0 AS cor0
----
17
-10
17
-47
17
-99

query II rowsort
SELECT DISTINCT - 25 AS col0, + col2 FROM tab0 cor0
----
-25
10
-25
47
-25
99

query II rowsort
SELECT DISTINCT + col0, + col2 + col2 FROM tab2 AS cor0
----
46
46
64
80
75
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, col0 col1 FROM tab1 cor0
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 66
----

query II rowsort
SELECT ALL + col0, + col0 + + col2 + 73 + + col2 FROM tab0 AS cor0
----
15
182
87
180
97
368

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + 64 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT - COUNT( DISTINCT + col1 ) * + + 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1956
SELECT - COUNT ( DISTINCT + col1 ) * + + 10 FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL COUNT( * ) * + - 45 * + - 56 + + + 58 FROM tab2
----
7618

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL COUNT ( * ) * + - 45 * + - 56 + + + 58 FROM tab2
----
7618

query I rowsort
SELECT + 31 * 87 AS col0 FROM tab2
----
2697
2697
2697

query I rowsort
SELECT - 80 * + - col0 AS col0 FROM tab0
----
1200
6960
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - 98 * - - COUNT( - 11 ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-1960
SELECT - 98 * - - COUNT ( - 11 ) FROM tab2
----
-294

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 cor0 WHERE NULL <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - col2 + + - col0 + + col0 + - - ( col1 ) * - col2 * + col1 * + - col0 FROM tab1 AS cor0
----
128856
13673916
968832

query I rowsort
SELECT DISTINCT - - 44 * - - 82 FROM tab2 AS cor0
----
3608

query I rowsort
SELECT ALL + 46 * col0 AS col0 FROM tab1 cor0
----
2346
3910
4186

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab1 cor0
----
21

query I rowsort
SELECT DISTINCT + col0 + - - 41 FROM tab0 AS cor0
----
128
138
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 70 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - 11 - + + MAX( ( - col1 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 11 - + + MAX ( ( - col1 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + COUNT( * ) + + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + COUNT ( * ) + + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - - 5 ) * + + 9 + ( - + col2 ) + col0 BETWEEN NULL AND - - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 71 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT COUNT( * ) * 41 - + - COUNT( * ) + + - 56 AS col2 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( * ) * 41 - + - COUNT ( * ) + + - 56 AS col2 FROM tab0
----
70

query II rowsort
SELECT ALL - col0 * col1 AS col2, 16 - col2 - col2 * - col1 AS col2 FROM tab2
----
-2346
1166
-4928
3056
-5025
3844

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT DISTINCT col2 + + + 22 DIV - col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT col2 + + + 22 / - col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - SUM( DISTINCT + col1 ) - + COUNT( * ) col1 FROM tab0
----
-106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1976
SELECT - SUM ( DISTINCT + col1 ) - + COUNT ( * ) col1 FROM tab0
----
-106

query I rowsort
SELECT DISTINCT + col2 - + 24 * col1 FROM tab2
----
-1201
-1550
-1808

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + col1 + + ( + + ( - - 56 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT - 77 * col1 DIV 59 AS col0 FROM tab2 AS cor0
----
-100
-66
-87

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 77 * col1 / 59 AS col0 FROM tab2 AS cor0
----
-100
-66
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - col2 BETWEEN NULL AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL >= ( - 48 * - 90 )
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT col1 * + ( + 99 ) AS col2 FROM tab1
----
1386
4653
495

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 77 * - 74 + - 61
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1984
SELECT ALL + col0 AS col2, col2 + + col1 + - 58 * col2 * - col2 * + ( + col1 ) + - col1 DIV - - col2 - + CAST( - + col2 AS SIGNED ) FROM tab2
----
46
1564877
64
7145756
75
13072686

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL + col0 AS col2, col2 + + col1 + - 58 * col2 * - col2 * + ( + col1 ) + - col1 / - - col2 - + CAST ( - + col2 AS INTEGER ) FROM tab2
----
46
1564877
64
7145756
75
13072686

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT - col1 DIV + - 88 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1985
SELECT - col1 / + - 88 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT DISTINCT col0 * + - col1 + + 62 * + CAST( NULL AS SIGNED ) * - + 4 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT col0 * + - col1 + + 62 * + CAST ( NULL AS INTEGER ) * - + 4 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + 75 * 30 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1987
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + 75 * 30 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 80 * - 60 AS col1 FROM tab0 AS cor0
----
-4800
-4800
-4800

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 79 IS NULL
----

query I rowsort
SELECT ALL - col2 + - 94 AS col0 FROM tab1 AS cor0
----
-153
-162
-190

query I rowsort
SELECT ALL - 72 FROM tab1 AS cor0 WHERE - col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1992
SELECT CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1992
SELECT CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) FROM tab0
----
NULL
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 41 ) IS NOT NULL
----

query I rowsort
SELECT col0 + - - 54 AS col1 FROM tab1
----
105
139
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - - 56 + + col1 * col2 col2 FROM tab2
----
-115
638
840

query I rowsort
SELECT DISTINCT ( - 15 ) FROM tab0
----
-15

query II rowsort
SELECT col0 AS col1, 68 AS col0 FROM tab2 AS cor0
----
46
68
64
68
75
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL - col2 / - 27 * - 82 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - col2 / - 27 * - 82 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT ALL + ( + - COUNT( * ) ) AS col1, 66 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL = + + col0 )
----
0
66

skipif mysql # not compatible
query II rowsort label-1999
SELECT ALL + ( + - COUNT ( * ) ) AS col1, 66 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL = + + col0 )
----
0
66

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( NOT NULL BETWEEN NULL AND col1 ) )
----

query II rowsort
SELECT + 73, + col2 + + 25 AS col1 FROM tab0 AS cor0
----
73
124
73
35
73
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col1 + + col2 <= col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + - col1 <> ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 <> ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT - CAST( col2 AS SIGNED ) + + col1 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-2004
SELECT - CAST ( col2 AS INTEGER ) + + col1 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 33 <= col2 / - col1 + + + 76 - col0 * + 14 * + 91
----

query I rowsort
SELECT + col0 + col1 + - col1 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2007
SELECT 25 + COUNT( * ) - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT 25 + COUNT ( * ) - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL - MIN( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 83 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 83 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 AS col1, - 14 col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2011
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2011
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT ALL - + 45 DIV + col0 + + 29 + 42 * - col0 FROM tab0 AS cor0
----
-3625
-4045
-604

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - + 45 / + col0 + + 29 + 42 * - col0 FROM tab0 AS cor0
----
-3625
-4045
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + 33 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + 33 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 IN ( - 10 + - + 19 + + col2, col2, col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2015
SELECT ALL + col2 + col1 - col1 AS col0, CAST( NULL AS SIGNED ) * - 57 / + - col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL + col2 + col1 - col1 AS col0, CAST ( NULL AS INTEGER ) * - 57 / + - col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT - col2 FROM tab1 WHERE NOT CAST( - col0 AS SIGNED ) <= - 52 + + + 31
----

skipif mysql # not compatible
query I rowsort label-2016
SELECT - col2 FROM tab1 WHERE NOT CAST ( - col0 AS INTEGER ) <= - 52 + + + 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT DISTINCT + - col0 * + col1 * col1 + + CAST( + col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-119618
-336666
-379419

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT + - col0 * + col1 * col1 + + CAST ( + col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-119618
-336666
-379419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * - col0 + - - col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT - - 86 + - + 31 * COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-193

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT - - 86 + - + 31 * COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-193

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col2 AS col2 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2022
SELECT ALL col1 / + + CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2022
SELECT ALL col1 / + + CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2023
SELECT DISTINCT - + SUM( ALL - col0 ), + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
185
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2023
SELECT DISTINCT - + SUM ( ALL - col0 ), + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
185
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2024
SELECT ALL + - 85 DIV CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL + - 85 / CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 72 * - col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT ALL - col1 * - + 15 - 38 * - col0 + - - col2 DIV + col1 + col1 FROM tab2 cor0
----
2564
3664
3922

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - col1 * - + 15 - 38 * - col0 + - - col2 / + col1 + col1 FROM tab2 cor0
----
2564
3664
3922

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT DISTINCT + MIN( ALL col0 ) AS col1, COUNT( * ) FROM tab2 cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-2027
SELECT DISTINCT + MIN ( ALL col0 ) AS col1, COUNT ( * ) FROM tab2 cor0
----
46
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT COUNT( * ) * - 50 DIV - + 5 AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-2028
SELECT COUNT ( * ) * - 50 / - + 5 AS col1 FROM tab1
----
30

query I rowsort
SELECT DISTINCT - 87 FROM tab0 WHERE NOT - col0 NOT BETWEEN + - col1 * col1 * + 21 * - - col0 AND - 27
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - SUM( ALL - 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2030
SELECT - SUM ( ALL - 60 ) FROM tab1
----
180

query II rowsort
SELECT col2 * + ( - col0 ) AS col1, + col2 AS col0 FROM tab2
----
-1058
23
-2560
40
-4350
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + 25 * - col0 col1 FROM tab1
----
-12750
-13650
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL 84 + - - COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL 84 + - - COUNT ( * ) AS col2 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT - MIN( + + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - MIN ( + + col2 ) AS col2 FROM tab2
----
-23

query II rowsort
SELECT DISTINCT + 64 AS col2, 41 * - 56 AS col1 FROM tab2 WHERE NOT + col1 * + - 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) + + 5 + 21 + - col1 AS col2 FROM tab1 AS cor0
----
-38
-84
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 + - 51 + - + 64 col2, + ( - + col1 ) col2 FROM tab2 AS cor0
----
-74
-51
-74
-67
-74
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT DISTINCT SUM( DISTINCT + 76 ) col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2038
SELECT DISTINCT SUM ( DISTINCT + 76 ) col2 FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT - MAX( + col2 ) + 76 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT - MAX ( + col2 ) + 76 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + col1 AND + - 57 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 96 + col2 FROM tab1
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + COUNT( * ) + - 80 + 80 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2042
SELECT + COUNT ( * ) + - 80 + 80 AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 + + col0 + + - ( - + col0 ) * - col1 * + + col1 FROM tab1
----
-1955
-200837
-9894

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2044
SELECT * FROM tab2 WHERE + col1 + + - CAST( - CAST( - 98 AS SIGNED ) AS SIGNED ) * - + col1 = 24
----

skipif mysql # not compatible
query III rowsort label-2044
SELECT * FROM tab2 WHERE + col1 + + - CAST ( - CAST ( - 98 AS INTEGER ) AS INTEGER ) * - + col1 = 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT col2 + - - 96 AS col0, + col1 FROM tab1 WHERE NULL NOT BETWEEN - - col1 AND + - col2 - + - 25 * col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-2045
SELECT col2 + - - 96 AS col0, + col1 FROM tab1 WHERE NULL NOT BETWEEN - - col1 AND + - col2 - + - 25 * col0 + + CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL >= + ( + - 43 ) )
----

query I rowsort
SELECT DISTINCT 91 + - + col0 FROM tab0
----
-6
4
76

query I rowsort
SELECT 37 * + col1 AS col0 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT ( 43 ) * + COUNT( - col0 ) DIV SUM( ALL 73 ) - 81 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2049
SELECT ( 43 ) * + COUNT ( - col0 ) / SUM ( ALL 73 ) - 81 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT col1 * - col0 * + ( + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT DISTINCT - 59 AS col0, - SUM( ALL - col2 ) FROM tab2 cor0
----
-59
121

skipif mysql # not compatible
query II rowsort label-2051
SELECT DISTINCT - 59 AS col0, - SUM ( ALL - col2 ) FROM tab2 cor0
----
-59
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT MIN( - - ( - 66 ) ) - + + 35 AS col0 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-2052
SELECT MIN ( - - ( - 66 ) ) - + + 35 AS col0 FROM tab2 AS cor0
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT DISTINCT 80 + 44 AS col1, MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
124
-59

skipif mysql # not compatible
query II rowsort label-2053
SELECT DISTINCT 80 + 44 AS col1, MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
124
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT - COUNT( * ) * - - 58 * + + 75 - - - MIN( - ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-13003

skipif mysql # not compatible
query I rowsort label-2054
SELECT - COUNT ( * ) * - - 58 * + + 75 - - - MIN ( - ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-13003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 + - - 81 + - ( - col2 ) * - col2 col0 FROM tab0 AS cor0
----
-2180
-71
-9772

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + MIN( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2056
SELECT + MIN ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 19 + col1 AND NULL
----

query I rowsort
SELECT + 56 * col1 AS col0 FROM tab0
----
1176
4536
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2060
SELECT ( - 72 ) / + + col2 * col0 * - 36 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT ( - 72 ) / + + col2 * col0 * - 36 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 FROM tab2 WHERE NOT + - 40 IS NULL
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - ( - 91 ) * - col0 col0 FROM tab1
----
445536
456365
563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT 78 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT 78 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + - 70 * + 83 FROM tab2 cor0
----
133630
232400
336980

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + + MIN( - - 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + + MIN ( - - 48 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT - + 86 AS col1 FROM tab0 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + COUNT( ALL col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2067
SELECT + COUNT ( ALL col1 ) col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 48 * - 6 col1 FROM tab0
----
-23328
-288
-6048

query II rowsort
SELECT ALL col1, + col0 * + col2 AS col1 FROM tab0
----
1
9603
21
870
81
705

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT col0 DIV - col1 AS col0 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2070
SELECT col0 / - col1 AS col0 FROM tab0 cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - MIN( DISTINCT + col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT - MIN ( DISTINCT + col1 ) col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2073
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + 72 * + CAST( NULL AS SIGNED ) * - - col2 * + - col2 / col2 - ( - - 65 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2073
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + 72 * + CAST ( NULL AS INTEGER ) * - - col2 * + - col2 / col2 - ( - - 65 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2074
SELECT ALL - col1 + - ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - col1 + - ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col0 + - 94 FROM tab0 AS cor0
----
-319
-7663
-9503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT ALL COUNT( * ) + - SUM( ALL + + 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-2076
SELECT ALL COUNT ( * ) + - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + + 5 * ( 8 ) + + col0 * + + col0 * - 45 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - + 57 + + - col1 + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT + 37 AS col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) + col2 * + + col2 IS NULL
----
37

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + 37 AS col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + col2 * + + col2 IS NULL
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 45 / + + col2 / + col2 * col0 * - - col1 + + col2 + + col0 + + col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - col1 - - - 96 * + ( col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
-1929
-7761
1

query I rowsort
SELECT DISTINCT - + col2 - 92 * + 49 FROM tab0 AS cor0
----
-4518
-4555
-4607

query I rowsort
SELECT ALL + - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + + COUNT( - + 86 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2083
SELECT + + COUNT ( - + 86 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col2, 75 FROM tab0
----
15
75
87
75
97
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL 73 AS col2, COUNT( + 99 ) FROM tab0
----
73
3

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL 73 AS col2, COUNT ( + 99 ) FROM tab0
----
73
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT + col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT + col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - 29 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT - col0 * + ( + - col2 ) FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * - + col2 * - col1 ) IS NOT NULL
----

query II rowsort
SELECT - col2 AS col0, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + 67 + + + col2 AS col1 FROM tab1 cor0
----
-3321
-5636
-6029

query II rowsort
SELECT ALL 33, col2 * + + col1 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
33
1248
33
236
33
3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT DISTINCT - SUM( col0 ) FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - SUM ( col0 ) FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) <> - col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT ( + + SUM( DISTINCT - col1 ) ) AS col2, COUNT( * ) + + 83 FROM tab2 AS cor0
----
-195
86

skipif mysql # not compatible
query II rowsort label-2096
SELECT ( + + SUM ( DISTINCT - col1 ) ) AS col2, COUNT ( * ) + + 83 FROM tab2 AS cor0
----
-195
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE + 32 + - + 19 * - CAST( NULL AS SIGNED ) NOT IN ( - col0 * + + col2 * 45 + + - col0, - ( + - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE + 32 + - + 19 * - CAST ( NULL AS INTEGER ) NOT IN ( - col0 * + + col2 * 45 + + - col0, - ( + - col2 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT + ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT + ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT ALL 79 + - col0 DIV col0 FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL 79 + - col0 / col0 FROM tab0
----
78
78
78

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - + col1 )
----

query I rowsort
SELECT ALL + col1 + - 15 FROM tab2
----
36
52
62

query I rowsort
SELECT DISTINCT 62 * - col1 + 53 AS col0 FROM tab2
----
-3109
-4101
-4721

query II rowsort
SELECT ALL col2, 8 FROM tab0
----
10
8
47
8
99
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT + COUNT( * ) * - - 87 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + COUNT ( * ) * - - 87 FROM tab1 AS cor0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT ALL col2 DIV + - col2 + + - col1 col1 FROM tab1 cor0
----
-15
-48
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2106
SELECT ALL col2 / + - col2 + + - col1 col1 FROM tab1 cor0
----
-15
-48
-6

query I rowsort
SELECT col2 + - + col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + 15 * + 69 + col1 >= NULL
----

query I rowsort
SELECT + col2 * + 72 FROM tab2 cor0
----
1656
2880
4176

query I rowsort
SELECT ALL ( + - 41 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( + ( col0 ) ) - + 83
----

query I rowsort
SELECT - 28 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
-1080
-1566
-621

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - COUNT( DISTINCT 89 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2114
SELECT - COUNT ( DISTINCT 89 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - - col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - + 8 AS col1 FROM tab1 AS cor0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 AS col1, + col0 col0 FROM tab2
----
70
46
70
64
70
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col0 + - 59 > + - 56 + 26 + + - 39
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 21 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT MAX( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT MAX ( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 10 BETWEEN + + ( + - ( 89 ) ) AND + col1
----

query II rowsort
SELECT ALL - col0 + - col2, col2 AS col0 FROM tab1
----
-144
59
-147
96
-159
68

query II rowsort
SELECT col1, - 46 AS col2 FROM tab1 AS cor0
----
14
-46
47
-46
5
-46

query I rowsort
SELECT + 94 + + - 77 AS col0 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - - 10 + - + col1 AS col0 FROM tab0 AS cor0
----
-11
-71
9

query I rowsort
SELECT DISTINCT - 57 + + col0 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col1 + + 66 AS col1 FROM tab2 AS cor0
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + - 70 + - - COUNT( * ) FROM tab1 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2128
SELECT + - 70 + - - COUNT ( * ) FROM tab1 cor0
----
-67

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 34 NOT BETWEEN NULL AND - 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 + - col2 col2 FROM tab2 AS cor0
----
21
39
56

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 48 * + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-10080
-182736
-4752

query I rowsort
SELECT - + 1 + - + col0 + 32 FROM tab2 AS cor0
----
-15
-33
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE 17 NOT IN ( col0 + + - CAST( ( col2 ) AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE 17 NOT IN ( col0 + + - CAST ( ( col2 ) AS INTEGER ) )
----
2

query I rowsort
SELECT ALL + ( - ( - + col1 ) ) + + + 15 - col2 + - col2 AS col0 FROM tab0
----
-182
16
2

query III rowsort
SELECT * FROM tab2 WHERE - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 - + 31 - + + 0 + col2 FROM tab0
----
-11
167
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT - 11 - + MAX( ALL + 58 ) col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2138
SELECT DISTINCT - 11 - + MAX ( ALL + 58 ) col0 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 92 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT + - col1 * + - col2 * col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT ALL + col1 * - - col0 + - col0 AS col1 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT + col1 DIV + col2 * - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + col1 / + col2 * - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( - ( - col2 ) ) FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT - + MAX( DISTINCT + 95 ) DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2145
SELECT DISTINCT - + MAX ( DISTINCT + 95 ) / + COUNT ( * ) col2 FROM tab0 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 22 col1 FROM tab2 AS cor0 WHERE col1 * + col0 + col2 BETWEEN - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - ( + ( + MAX( ALL + col1 ) ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2147
SELECT - ( + ( + MAX ( ALL + col1 ) ) ) AS col2 FROM tab0
----
-81

query I rowsort
SELECT col1 + col2 * + - col1 * - + 35 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * - ( + - 15 ) AS col1 FROM tab2
----
-31740
-61440
-84375

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - - col0 BETWEEN - col2 AND - + 68
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + col1 DIV - + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2151
SELECT + col1 / - + col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col0 * + - 62 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2153
SELECT ALL - col2 + col1 FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) = CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - col2 + col1 FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) = CAST ( - col2 AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT DISTINCT + - 33 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT + - 33 / col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + ( + + COUNT( * ) ) AS col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2155
SELECT + ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT DISTINCT + SUM( DISTINCT col1 ) * + - CAST( + MAX( ALL + + col1 ) AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-8343

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT + SUM ( DISTINCT col1 ) * + - CAST ( + MAX ( ALL + + col1 ) AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-8343

query II rowsort
SELECT DISTINCT + - 28 + + ( - - col0 ), col2 FROM tab1 AS cor0
----
23
96
57
59
63
68

query I rowsort
SELECT DISTINCT + + 83 FROM tab0 cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2160
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND col0 * col2
----

skipif mysql # not compatible
query III rowsort label-2160
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND col0 * col2
----

query I rowsort
SELECT DISTINCT + 96 - - 15 - 43 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 92 + - 73 FROM tab2 AS cor0
----
19

query I rowsort
SELECT + - col1 + col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col0 * col2 - - - col1 + + col0 + + 84 FROM tab1 AS cor0
----
-4775
-4851
-6060

query I rowsort
SELECT ( - col1 ) - 60 * - + col1 AS col2 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT - col1 - + + col2 AS col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT ALL - col2 - - 62 FROM tab1
----
-34
-6
3

query I rowsort
SELECT DISTINCT ( + col2 ) - 89 AS col1 FROM tab0
----
-42
-79
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ( + SUM( + 7 ) ) + - COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2170
SELECT ( + SUM ( + 7 ) ) + - COUNT ( * ) AS col1 FROM tab0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT - 30 DIV + + 75 - col0 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - 30 / + + 75 - col0 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - - col0 * col0 + - col1 FROM tab0 WHERE - - col2 <= + col1
----
144
7548

query I rowsort
SELECT DISTINCT + col1 - + 70 AS col1 FROM tab2 cor0
----
-19
-3
7

query II rowsort
SELECT 89, col1 AS col2 FROM tab1 cor0
----
89
14
89
47
89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL - 39 * + MIN( ALL + col0 ) FROM tab0 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - 39 * + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
-585

query I rowsort
SELECT - col2 * - - ( + - col0 ) AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT + MAX( 44 ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( 56, col2, + + col0, - col1, - - 4, + col1, + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT + MAX ( 44 ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( 56, col2, + + col0, - col1, - - 4, + col1, + 94 )
----
NULL

query I rowsort
SELECT + 83 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL col1 * - col1 * + col1 AS col0 FROM tab0
----
-1
-531441
-9261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT ALL + ( col0 ) * - - col0 - 41 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + ( col0 ) * - - col0 - 41 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-2181
SELECT DISTINCT - + col0 DIV + col2, + col1, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 7c854c7441608a436706c191a313905c

skipif mysql # not compatible
query III rowsort label-2181
SELECT DISTINCT - + col0 / + col2, + col1, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 7c854c7441608a436706c191a313905c

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT ALL + 29 DIV + 81 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + 29 / + 81 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + col1 * + - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - 34 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2185
SELECT ALL 98 AS col1, ( + MAX( DISTINCT + - 19 ) ) * COUNT( + CAST( 93 AS SIGNED ) ) + MAX( ALL - col0 ) + - 51 / COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL 98 AS col1, ( + MAX ( DISTINCT + - 19 ) ) * COUNT ( + CAST ( 93 AS INTEGER ) ) + MAX ( ALL - col0 ) + - 51 / COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT - 82 * - MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
7872

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - 82 * - MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
7872

query I rowsort
SELECT ALL + 82 + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2188
SELECT DISTINCT - 55 DIV - COUNT( * ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - 55 / - COUNT ( * ) AS col0 FROM tab2
----
18

query I rowsort
SELECT col0 + + + 48 * 29 * + col2 FROM tab2
----
32062
55744
80811

query I rowsort
SELECT 20 * - 91 AS col2 FROM tab0
----
-1820
-1820
-1820

query I rowsort
SELECT ALL - + ( - ( + - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL 9 * SUM( col1 ) AS col0 FROM tab1 AS cor0
----
594

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL 9 * SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
594

query II rowsort
SELECT + + col1 AS col2, col1 * 32 FROM tab0 AS cor0
----
1
32
21
672
81
2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 60 + - - 98 col1 FROM tab1 AS cor0
----
158

query II rowsort
SELECT + + col0 AS col0, + 34 * - col2 + - col0 + + ( - 96 ) FROM tab2 cor0
----
46
-924
64
-1520
75
-2143

query I rowsort
SELECT ALL col2 * - 31 + - 55 AS col2 FROM tab0
----
-1512
-3124
-365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL COUNT( ALL - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL COUNT ( ALL - col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT - - SUM( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - - SUM ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + 12 * - col2 + col1 + + - ( - col2 ) FROM tab0 cor0
----
-1088
-436
-89

query I rowsort
SELECT DISTINCT - ( - + 97 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT DISTINCT - 61 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT - 61 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 - + ( 39 ) * + 54 AS col1 FROM tab2
----
-2048
-2066
-2083

query I rowsort
SELECT ALL + 22 - + + 4 FROM tab1
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT - col0 - + - CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) * + col1 FROM tab1
----
-110
-2300
-247

skipif mysql # not compatible
query I rowsort label-2206
SELECT - col0 - + - CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) * + col1 FROM tab1
----
-110
-2300
-247

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2207
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2207
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 6 - - col0 FROM tab0 AS cor0
----
103
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + - MIN( ALL - - 69 ) AS col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2209
SELECT + - MIN ( ALL - - 69 ) AS col0 FROM tab0 AS cor0
----
-69

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 FROM tab1
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE col1 > + col2
----
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE col1 > + col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT + 15 AS col1, + MAX( ALL - + col2 ) FROM tab0 AS cor0
----
15
-10

skipif mysql # not compatible
query II rowsort label-2213
SELECT + 15 AS col1, + MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
15
-10

query II rowsort
SELECT ALL + - 55 AS col1, - 99 + + col2 FROM tab1 AS cor0
----
-55
-3
-55
-31
-55
-40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN + 47 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - ( col2 ) * - 13 / - col1
----

query II rowsort
SELECT ALL - col2, - col1 AS col0 FROM tab0 cor0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT ALL 2 + - + 58 * + col0 AS col2 FROM tab0
----
-5044
-5624
-868

query I rowsort
SELECT DISTINCT - 28 + + col2 FROM tab2
----
-5
12
30

query I rowsort
SELECT ALL + 95 * - col0 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT - col0 * - 4 FROM tab2
----
184
256
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + CAST( NULL AS SIGNED ) * - - ( + COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + CAST ( NULL AS INTEGER ) * - - ( + COUNT ( * ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - + 49 + + 72 + - - COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2223
SELECT - + 49 + + 72 + - - COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT - 87 + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL - col2 * 65 + col2 + 18 FROM tab1
----
-3758
-4334
-6126

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT + COUNT( * ), COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2226
SELECT + COUNT ( * ), COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT + 16 - + + COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + 16 - + + COUNT ( * ) FROM tab2
----
13

query I rowsort
SELECT DISTINCT - col0 + + 46 * + col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT ALL - 8 * + - CAST( + col0 AS SIGNED ) + 53 AS col2 FROM tab0 AS cor0 WHERE NOT col0 - - + col2 <= 31 * + - col1 * 33 + - 73
----
173
749
829

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - 8 * + - CAST ( + col0 AS INTEGER ) + 53 AS col2 FROM tab0 AS cor0 WHERE NOT col0 - - + col2 <= 31 * + - col1 * 33 + - 73
----
173
749
829

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + + 10 ) NOT BETWEEN - + col1 AND + + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL - col2 * 63 * - - CAST( + - ( - col0 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-308448
-315945
-389844

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2232
SELECT ALL - col2 * 63 * - - CAST ( + - ( - col0 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-308448
-315945
-389844

query I rowsort
SELECT col1 - + + col1 * - + col2 FROM tab0 cor0
----
100
231
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 + - col0 AS col1, + col2 col0 FROM tab2
----
-52
23
-70
40
-81
58

query I rowsort
SELECT - col0 + + - col2 + col2 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT + 72 + - + col0 AS col0 FROM tab2
----
-3
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL - col2 + - col0 + - + col0 + - + col2 + - CAST( NULL AS SIGNED ) * - col2 + ( col1 ) + + - 37 * - + 6 * + - 62 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - col2 + - col0 + - + col0 + - + col2 + - CAST ( NULL AS INTEGER ) * - col2 + ( col1 ) + + - 37 * - + 6 * + - 62 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL SUM( ALL + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL SUM ( ALL + + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT - COUNT( ALL - 98 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - COUNT ( ALL - 98 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 24 FROM tab2 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - 31 + + COUNT( * ) + + MIN( ALL - col2 ) + - + SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-271

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - 31 + + COUNT ( * ) + + MIN ( ALL - col2 ) + - + SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-271

query I rowsort
SELECT DISTINCT - + col0 + + col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2243
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 81 + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 81 + col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - SUM( - + col0 ) + + 31 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-2244
SELECT - SUM ( - + col0 ) + + 31 FROM tab2
----
216

query I rowsort
SELECT + col0 * + + col0 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + MIN( + - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + MIN ( + - col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2247
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( - col1 AS SIGNED ) + + 5 / + col1 + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2247
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) + + 5 / + col1 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + 97 * + + 75 * + col2 = NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2249
SELECT COUNT( * ) - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT COUNT ( * ) - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 58 + - col2 + + col1 FROM tab0 WHERE + 17 NOT BETWEEN - + col0 AND + col0
----
92

query I rowsort
SELECT + 19 + - col2 FROM tab1 cor0
----
-40
-49
-77

query I rowsort
SELECT ALL + - ( + 12 ) - - col0 * - 88 * + 52 + - 18 AS col2 FROM tab1 AS cor0
----
-233406
-388990
-416446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 cor0 WHERE NOT + 58 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - 76 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-157
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT 9 + - - 92 * + COUNT( * ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT 9 + - - 92 * + COUNT ( * ) FROM tab1 AS cor0
----
285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 71 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-71

query II rowsort
SELECT DISTINCT col1 AS col0, + 20 AS col0 FROM tab2
----
51
20
67
20
77
20

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 BETWEEN - + col1 AND + + 47 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - MAX( + - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2260
SELECT - MAX ( + - col1 ) FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col1 ) * - col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT ALL - 77 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - 77 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT MAX( ALL - - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT MAX ( ALL - - col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT + - ( - + 39 ) FROM tab0 cor0
----
39
39
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + col0 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 88 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + ( + col2 ) * col1 + - + col2 + - col2 * ( 88 ) + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 28 ) * - col1 IS NOT NULL
----

query I rowsort
SELECT 30 AS col0 FROM tab0 WHERE col1 * col2 IS NOT NULL
----
30
30
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT ALL - 90 - + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - 90 - + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-89

query I rowsort
SELECT col2 * - 22 AS col0 FROM tab2
----
-1276
-506
-880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2273
SELECT CAST( NULL AS DECIMAL ) * col1 - 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT CAST ( NULL AS REAL ) * col1 - 45 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 25 ) AS col0 FROM tab1
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - COUNT( 93 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - COUNT ( 93 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2276
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2276
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) < ( NULL )
----

query I rowsort
SELECT ALL col1 + + ( ( - col1 ) ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT ( - ( + col2 ) ) * + col1 FROM tab0 WHERE - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT ( - ( + col2 ) ) * + col1 FROM tab0 WHERE - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL - col1 * - ( CAST( NULL AS SIGNED ) * 65 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - col1 * - ( CAST ( NULL AS INTEGER ) * 65 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT ( col0 ) + - col2 DIV - 68 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-2281
SELECT ( col0 ) + - col2 / - 68 FROM tab0
----
15
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT col1 DIV col2 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT col1 / col2 + - col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - col1 + + 24 FROM tab1 WHERE NULL < ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 51 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 84 * col1 AS col0 FROM tab0
----
1764
6804
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 64 col2 FROM tab0
----
-49
23
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * 71 col2 FROM tab2
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT MIN( DISTINCT + 44 ) AS col0 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-2288
SELECT MIN ( DISTINCT + 44 ) AS col0 FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT + 68 * - col1 FROM tab2 WHERE NOT col2 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2289
SELECT + 68 * - col1 FROM tab2 WHERE NOT col2 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT - 74 * + COUNT( * ) col1 FROM tab1
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2290
SELECT DISTINCT - 74 * + COUNT ( * ) col1 FROM tab1
----
-222

query I rowsort
SELECT ALL + 92 * col2 AS col0 FROM tab2
----
2116
3680
5336

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( 8 + + col2 ) IS NULL
----

query I rowsort
SELECT 36 * col0 AS col1 FROM tab0
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT COUNT( * ) - COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2295
SELECT COUNT ( * ) - COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 17 * + 73 FROM tab0 cor0
----
1241

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2297
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 NOT BETWEEN ( CAST( col1 AS DECIMAL ) + 3 ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-2297
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 NOT BETWEEN ( CAST ( col1 AS REAL ) + 3 ) AND - col1
----

query I rowsort
SELECT col1 * - col0 + + col2 FROM tab0 AS cor0 WHERE ( + ( col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT COUNT( * ) * 41 + - 21 col2 FROM tab0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2299
SELECT DISTINCT COUNT ( * ) * 41 + - 21 col2 FROM tab0
----
102

query I rowsort
SELECT ALL 77 * col1 - - col2 FROM tab0 AS cor0
----
1627
176
6284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 95 col2 FROM tab2 AS cor0
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL - COUNT( DISTINCT col0 ) * + MIN( ALL + 71 ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - COUNT ( DISTINCT col0 ) * + MIN ( ALL + 71 ) FROM tab1 AS cor0
----
-213

query I rowsort
SELECT + + 39 * + col1 FROM tab1 AS cor0
----
1833
195
546

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 + + col2 / col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT 42 * COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2305
SELECT 42 * COUNT ( * ) FROM tab1 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + COUNT( * ) * MIN( 19 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2306
SELECT + COUNT ( * ) * MIN ( 19 ) FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT + - COUNT( * ) * + 6 AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2307
SELECT + - COUNT ( * ) * + 6 AS col1 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT - SUM( + col1 ) * - MIN( ALL - 18 DIV + col0 ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2308
SELECT - SUM ( + col1 ) * - MIN ( ALL - 18 / + col0 ) col1 FROM tab0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN col1 * + 30 AND + ( + col0 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - ( + SUM( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2310
SELECT - ( + SUM ( + col1 ) ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT col2 * 29 + col1 FROM tab0 WHERE NOT ( NULL ) <> ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2312
SELECT * FROM tab0 WHERE NOT ( - 66 + col0 * - CAST( + col0 AS SIGNED ) ) > ( + 41 * + col2 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2312
SELECT * FROM tab0 WHERE NOT ( - 66 + col0 * - CAST ( + col0 AS INTEGER ) ) > ( + 41 * + col2 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col2 ) < + 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col2 col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE + col2 * 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 34 col0 FROM tab0 cor0
----
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 14 + col2 AND + 45 + + 51 AND NOT ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 90 * + 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - COUNT( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2319
SELECT - COUNT ( ALL - - col1 ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col0, col0 * 82 AS col0 FROM tab0
----
15
1230
87
7134
97
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL + COUNT( * ) - + ( 13 + SUM( ALL col2 ) ) col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2321
SELECT ALL + COUNT ( * ) - + ( 13 + SUM ( ALL col2 ) ) col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 42 ) NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 * - - 23 FROM tab0
----
-10143
-150903
-23

query I rowsort
SELECT 53 * - col0 FROM tab0 WHERE NOT ( col1 BETWEEN ( 97 ) AND NULL )
----
-4611
-5141
-795

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT DISTINCT - 8 DIV - 75 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - 8 / - 75 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
0

query I rowsort
SELECT ALL + 33 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <> ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + - MIN( col2 ) AS col1 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2328
SELECT + - MIN ( col2 ) AS col1 FROM tab1 cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + col2 + + 61 * col2 AS col1 FROM tab0 AS cor0
----
2914
6138
620

query I rowsort
SELECT ALL ( col1 ) FROM tab2 AS cor0 WHERE - col2 BETWEEN ( - 70 ) + col2 AND - 8 + 50
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT DISTINCT + COUNT( * ) + + - 8 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + COUNT ( * ) + + - 8 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2333
SELECT ALL CAST( NULL AS DECIMAL ) / 39 + + 40 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL CAST ( NULL AS REAL ) / 39 + + 40 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 82 + + 17 col0 FROM tab1
----
1165
3871
427

query III rowsort
SELECT ALL * FROM tab0 WHERE 99 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 40 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) * - col2 + - - col1 FROM tab2
----
-1523
-3297
-478

query II rowsort
SELECT ALL - ( + col0 ), col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + SUM( ALL - + col0 ) * + MIN( + col0 ) + 3 AS col0 FROM tab2
----
-8507

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + SUM ( ALL - + col0 ) * + MIN ( + col0 ) + 3 AS col0 FROM tab2
----
-8507

query I rowsort
SELECT col0 * + 97 * + 51 FROM tab2
----
227562
316608
371025

query I rowsort
SELECT DISTINCT + col2 - - ( - col1 ) * col1 FROM tab0
----
-431
-6514
98

query III rowsort
SELECT * FROM tab1 WHERE + col2 < + + 76 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 96 AS col1 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT ( + 28 ) FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL col2 + - - 72 AS col0 FROM tab0
----
119
171
82

query I rowsort
SELECT col0 * + 6 AS col1 FROM tab0
----
522
582
90

query I rowsort
SELECT ALL - - 98 * + col2 AS col2 FROM tab1 AS cor0
----
5782
6664
9408

query I rowsort
SELECT DISTINCT - col2 * col1 + + - col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-11477
-3945
-7520

query I rowsort
SELECT ALL + 61 * + col1 AS col1 FROM tab0 AS cor0
----
1281
4941
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT MIN( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2350
SELECT MIN ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10

query II rowsort
SELECT DISTINCT + 93, - 96 AS col1 FROM tab1 AS cor0
----
93
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2352
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 cor0
----
3
-3

query I rowsort
SELECT ALL + ( 44 ) FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + ( - ( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 = - 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT DISTINCT COUNT( * ) + - 32 * + MAX( - col1 ) FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
1635

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT COUNT ( * ) + - 32 * + MAX ( - col1 ) FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
1635

query I rowsort
SELECT - 83 * + 52 * + + 50 FROM tab0
----
-215800
-215800
-215800

query I rowsort
SELECT ALL + 56 * 92 * 67 FROM tab1
----
345184
345184
345184

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL + 50 * - SUM( ALL 68 ) AS col2 FROM tab0
----
-10200

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + 50 * - SUM ( ALL 68 ) AS col2 FROM tab0
----
-10200

query I rowsort
SELECT - 50 * col2 AS col0 FROM tab1
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2361
SELECT - COUNT( * ), 38 DIV - COUNT( * ) - + COUNT( col1 ) * 0 col0 FROM tab2
----
-3
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2361
SELECT - COUNT ( * ), 38 / - COUNT ( * ) - + COUNT ( col1 ) * 0 col0 FROM tab2
----
-3
-12

query I rowsort
SELECT ALL col2 * + + col2 * + col0 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - COUNT( 95 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2363
SELECT - COUNT ( 95 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT ALL COUNT( * ) AS col1, 49 * + COUNT( ALL 80 ) FROM tab1 AS cor0
----
3
147

skipif mysql # not compatible
query II rowsort label-2364
SELECT ALL COUNT ( * ) AS col1, 49 * + COUNT ( ALL 80 ) FROM tab1 AS cor0
----
3
147

query I rowsort
SELECT - + col1 + + 65 * + col1 FROM tab0 cor0
----
1344
5184
64

query III rowsort
SELECT * FROM tab2 WHERE NOT - 81 * ( + 84 ) >= - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 27 + - col2 AS col0, 72 FROM tab0
----
-126
72
-37
72
-74
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL col2 DIV 30 AS col0 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL col2 / 30 AS col0 FROM tab1
----
1
2
3

query I rowsort
SELECT + col1 + + 15 * - 53 FROM tab1
----
-748
-781
-790

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT 46 * col2 FROM tab1 AS cor0 WHERE ( ( - ( col1 ) ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - 61 / - - ( + col2 ) + - col0 + + 39 ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( - 61 / - - ( + col2 ) + - col0 + + 39 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2373
SELECT ALL - AVG ( + col1 ) FROM tab0 AS cor0 WHERE - col0 * - + col2 * + 64 NOT IN ( CAST( NULL AS DECIMAL ) * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - AVG ( + col1 ) FROM tab0 AS cor0 WHERE - col0 * - + col2 * + 64 NOT IN ( CAST ( NULL AS REAL ) * - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT col1 col1 FROM tab2 AS cor0 WHERE ( ( 91 * + 2 * col1 + + CAST( 84 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2374
SELECT col1 col1 FROM tab2 AS cor0 WHERE ( ( 91 * + 2 * col1 + + CAST ( 84 AS INTEGER ) ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT + col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT + col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 92 AS col1 FROM tab1
----
151
160
188

query I rowsort
SELECT ALL col0 + 37 AS col0 FROM tab2
----
101
112
83

query I rowsort
SELECT 15 + col0 AS col1 FROM tab0
----
102
112
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + COUNT( * ) + 4 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2380
SELECT + COUNT ( * ) + 4 FROM tab2
----
7

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE + col2 NOT BETWEEN - col2 * + col1 AND - 55 / - 12
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT 56 + - COUNT( ALL + col0 ) + COUNT( * ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-2382
SELECT 56 + - COUNT ( ALL + col0 ) + COUNT ( * ) FROM tab0
----
56

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( NULL ) <> + 50 + + + col2
----

query I rowsort
SELECT DISTINCT - 54 + + 28 AS col0 FROM tab2
----
-26

query I rowsort
SELECT 64 + + + col1 FROM tab1
----
111
69
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT - col2 * col1 * col1 DIV - 18 + - col2 FROM tab2 AS cor0
----
13135
14406
3300

skipif mysql # not compatible
query I rowsort label-2386
SELECT - col2 * col1 * col1 / - 18 + - col2 FROM tab2 AS cor0
----
13135
14406
3300

query II rowsort
SELECT + col1 AS col1, - col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

query I rowsort
SELECT col2 * - ( col1 ) FROM tab0 cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE - col1 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <> ( + 9 )
----

query I rowsort
SELECT - - ( - col2 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT DISTINCT CAST( SUM( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT CAST ( SUM ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + 53 AS col2 FROM tab1 cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col2 FROM tab1 cor0
----
97
97
97

query II rowsort
SELECT - 33 * 41 AS col1, - col0 FROM tab2 AS cor0
----
-1353
-46
-1353
-64
-1353
-75

query I rowsort
SELECT - 43 * - - 11 AS col2 FROM tab1 AS cor0
----
-473
-473
-473

query II rowsort
SELECT ALL ( 55 ) * + 30, + 23 + - col1 AS col2 FROM tab0 WHERE NOT ( col1 + + col1 * - - 0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2398
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + - col2 BETWEEN col2 * 24 AND ( + + col0 / + - 71 - - CAST( + col0 AS DECIMAL ) * ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2398
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + - col2 BETWEEN col2 * 24 AND ( + + col0 / + - 71 - - CAST ( + col0 AS REAL ) * ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + 98 col2 FROM tab0
----
-1470
-8526
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - SUM( - ( - 90 ) ) col0 FROM tab2
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT ALL - SUM ( - ( - 90 ) ) col0 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 22 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL - + CAST( NULL AS SIGNED ) + + + COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2404
SELECT ALL - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL - SUM( DISTINCT - - 75 ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - SUM ( DISTINCT - - 75 ) AS col1 FROM tab1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT 45 / CAST( NULL AS SIGNED ) / - col2 + + CAST( NULL AS SIGNED ) + + 61 + - - col0 + 67 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT 45 / CAST ( NULL AS INTEGER ) / - col2 + + CAST ( NULL AS INTEGER ) + + 61 + - - col0 + 67 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - 67 * - 41 IS NOT NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - ( 0 ) * + + COUNT( ALL - - col1 ) + + 75 + AVG ( DISTINCT - 89 ) FROM tab2 AS cor0 WHERE ( NULL ) <> + - ( - col1 ) * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT - ( 0 ) * + + COUNT ( ALL - - col1 ) + + 75 + AVG ( DISTINCT - 89 ) FROM tab2 AS cor0 WHERE ( NULL ) <> + - ( - col1 ) * - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2409
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + COUNT( DISTINCT col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT + COUNT ( DISTINCT col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT - ( + + 39 ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <> col0 + 63 * col2
----

skipif mysql # not compatible
query I rowsort label-2411
SELECT - ( + + 39 ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> col0 + 63 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2412
SELECT ALL ( + + col0 ) * + 1 + + 94 DIV - col2 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL ( + + col0 ) * + 1 + + 94 / - col2 FROM tab1 AS cor0
----
51
84
90

query I rowsort
SELECT DISTINCT + ( + - 27 ) * + - 44 + + 7 FROM tab0 AS cor0
----
1195

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 65
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2416
SELECT + col2, col1 / col2 * - col0 AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) + + col1 * col1 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2416
SELECT + col2, col1 / col2 * - col0 AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + + col1 * col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 88 - - col2 + - col2 FROM tab0
----
88
88
88

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT + col2 DIV - col0 - + ( col0 ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2419
SELECT + col2 / - col0 - + ( col0 ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + + 44 - - + col0 AS col2 FROM tab2 AS cor0
----
108
119
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) + 14 <= NULL
----

query II rowsort
SELECT ALL col0 AS col2, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col1 + col1 AND + - 32
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( 83 + - col1 ) AND - col0 / - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - - col2 ) col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL + - 26 AS col0, col1 FROM tab1 AS cor0
----
-26
14
-26
47
-26
5

query I rowsort
SELECT + 61 AS col0 FROM tab2 cor0
----
61
61
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= - - col2 * + + col1 * - col1 * + 58
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT + 12 * col2 + - - col1 DIV - + col1 FROM tab2 AS cor0
----
275
479
695

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 12 * col2 + - - col1 / - + col1 FROM tab2 AS cor0
----
275
479
695

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL - - COUNT( * ) * - + 45 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - - COUNT ( * ) * - + 45 FROM tab2 AS cor0
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL ( + 80 ) AS col1 FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT 98 * + COUNT( * ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-2435
SELECT 98 * + COUNT ( * ) FROM tab0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ) col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2437
SELECT DISTINCT + COUNT( * ) * 32 * - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + COUNT ( * ) * 32 * - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT - - col0 DIV + - ( - + 3 ) FROM tab1 AS cor0
----
17
28
30

skipif mysql # not compatible
query I rowsort label-2438
SELECT - - col0 / + - ( - + 3 ) FROM tab1 AS cor0
----
17
28
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 24 * + - 87 * + - col0 - - - col1, col2 * 60 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2440
SELECT + 20 + + 95 + - - COUNT( * ) FROM tab2 WHERE - CAST( + ( 58 ) AS DECIMAL ) + + 2 IS NOT NULL
----
118

skipif mysql # not compatible
query I rowsort label-2440
SELECT + 20 + + 95 + - - COUNT ( * ) FROM tab2 WHERE - CAST ( + ( 58 ) AS REAL ) + + 2 IS NOT NULL
----
118

query I rowsort
SELECT + col1 * - + col2 * + col1 + - col0 FROM tab1
----
-150303
-1560
-18867

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL + 91 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-819

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + 91 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT DISTINCT 96 * - col0 + - CAST( NULL AS SIGNED ) + col2 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2443
SELECT DISTINCT 96 * - col0 + - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - col1 * + col1 * - ( + + 61 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + + 34 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 59 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
91

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col1 / - col0 + - col2 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - - 69 * - COUNT( * ) - 23 * - + 51 FROM tab1 cor0
----
966

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - - 69 * - COUNT ( * ) - 23 * - + 51 FROM tab1 cor0
----
966

query I rowsort
SELECT DISTINCT - 69 * + col2 AS col0 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2452
SELECT DISTINCT * 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-2452
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - 7 + col2 AS col2 FROM tab1 AS cor0
----
-354
-408
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT DISTINCT + col1 DIV + 78 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + col1 / + 78 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 40 + - + col0 * + 14 AS col0 FROM tab0
----
-1178
-1318
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT col1 + CAST( col0 AS SIGNED ) + + + col1 + col1 FROM tab1
----
100
232
93

skipif mysql # not compatible
query I rowsort label-2456
SELECT col1 + CAST ( col0 AS INTEGER ) + + + col1 + col1 FROM tab1
----
100
232
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + SUM( + 86 ) + - 53 AS col2 FROM tab2
----
205

skipif mysql # not compatible
query I rowsort label-2457
SELECT + SUM ( + 86 ) + - 53 AS col2 FROM tab2
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL - 61 + - COUNT( * ) AS col2 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - 61 + - COUNT ( * ) AS col2 FROM tab0
----
-64

query I rowsort
SELECT DISTINCT - 93 * - + col0 - col1 AS col1 FROM tab2
----
4227
5875
6908

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT + 28 + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + 28 + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT ALL col1 + col2 DIV + - 38 - ( + + col1 ) + col1 + col0 * col1 AS col1 FROM tab2
----
2397
5004
5091

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL col1 + col2 / + - 38 - ( + + col1 ) + col1 + col0 * col1 AS col1 FROM tab2
----
2397
5004
5091

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col1 FROM tab0 AS cor0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + 44 col2 FROM tab1 AS cor0
----
1936
1936
1936

query II rowsort
SELECT + col2 * - + 19, col1 AS col0 FROM tab2 cor0
----
-1102
67
-437
51
-760
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 + - col1 + + + 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT DISTINCT + 36 DIV + 20 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT + 36 / + 20 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( - 38 ) FROM tab0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT ALL - 15 DIV + 51 * - 85 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - 15 / + 51 * - 85 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT - + col0 AS col2 FROM tab2 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, + col2 )
----

query I rowsort
SELECT ALL - - 14 * - - col2 + col2 AS col0 FROM tab1 AS cor0
----
1020
1440
885

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT 6 + - COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2475
SELECT 6 + - COUNT ( * ) col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 1 + + + 17 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL MAX( ALL 80 ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL MAX ( ALL 80 ) AS col0 FROM tab2
----
80

query II rowsort
SELECT DISTINCT col0 AS col2, + ( - col2 ) FROM tab2
----
46
-23
64
-40
75
-58

query II rowsort
SELECT ALL - col1 AS col0, col0 - + ( - 82 ) FROM tab1 AS cor0
----
-14
133
-47
173
-5
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
-93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 * + 62 - 61 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT + col1 DIV - 25 + + col2 AS col2 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-2483
SELECT + col1 / - 25 + + col2 AS col2 FROM tab0
----
10
44
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT - 81 + - + CAST( NULL AS SIGNED ) - col2 / + - 31 * - 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 81 + - + CAST ( NULL AS INTEGER ) - col2 / + - 31 * - 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + col0 col1, + 67 * + col1 FROM tab0 AS cor0
----
1215
5427
1827
1407
97
67

query I rowsort
SELECT - + 76 + - col2 FROM tab2 AS cor0
----
-116
-134
-99

query I rowsort
SELECT 3 + - + col2 + + col2 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL + + COUNT( col2 ) - - 65 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + + COUNT ( col2 ) - - 65 FROM tab0 AS cor0
----
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 40 AND - 52 * - + 13 * col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2490
SELECT ALL col0 DIV col2 * col2 * - + CAST( + 70 AS SIGNED ) col1 FROM tab1 AS cor0
----
-4130
-4760
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2490
SELECT ALL col0 / col2 * col2 * - + CAST ( + 70 AS INTEGER ) col1 FROM tab1 AS cor0
----
-4130
-4760
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2491
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col0 / 13, + col1, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2491
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col0 / 13, + col1, + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT ALL ( - CAST( - - AVG ( ALL - 9 ) AS SIGNED ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL ( - CAST ( - - AVG ( ALL - 9 ) AS INTEGER ) ) AS col0 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <= - - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 = 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - MAX( + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2497
SELECT - MAX ( + col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL + col1 * + - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + col1 * + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 57 * + + col1 FROM tab1
----
2679
285
798

query III rowsort
SELECT * FROM tab2 WHERE NOT 98 <> - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT DISTINCT 32 DIV + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT 32 / + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * 53 * - - col2 AS col1 FROM tab1 AS cor0
----
259488
265795
327964

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 38 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT DISTINCT CAST( - 12 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT CAST ( - 12 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT DISTINCT + + col1 DIV + - 58 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT + + col1 / + - 58 FROM tab2 AS cor0
----
-1
0

query II rowsort
SELECT 19, col2 FROM tab2 AS cor0
----
19
23
19
40
19
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - COUNT( * ) * 76 AS col0 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2508
SELECT - COUNT ( * ) * 76 AS col0 FROM tab2 AS cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT - + col0 * + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT - + col0 * + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - ( + - 73 ) NOT IN ( + col2 * 96, - 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2511
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + + 59 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2511
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + + 59 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + ( - + 21 ) <> + col1
----

query I rowsort
SELECT DISTINCT col2 + - 55 * col1 FROM tab1
----
-216
-2517
-674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT + CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT + CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT 8 + MIN( ALL - - col1 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2515
SELECT 8 + MIN ( ALL - - col1 ) AS col2 FROM tab0
----
9

query II rowsort
SELECT ALL + col1 * - + 84 + + - 65, col2 AS col0 FROM tab2
----
-4349
23
-5693
58
-6533
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + COUNT( * ) + - 25 + + - 84 * + COUNT( * ) AS col0 FROM tab2
----
-274

skipif mysql # not compatible
query I rowsort label-2517
SELECT + COUNT ( * ) + - 25 + + - 84 * + COUNT ( * ) AS col0 FROM tab2
----
-274

query I rowsort
SELECT DISTINCT - 25 + col1 AS col0 FROM tab1 AS cor0
----
-11
-20
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT ALL 99 + COUNT( - col1 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
102
3

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL 99 + COUNT ( - col1 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
102
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2520
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT ALL + - COUNT( * ), - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-62

skipif mysql # not compatible
query II rowsort label-2521
SELECT ALL + - COUNT ( * ), - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 - - col2 col2 FROM tab0 cor0
----
109
161
72

query I rowsort
SELECT + col2 - 21 + + ( + + col2 ) * + 31 FROM tab1 AS cor0
----
1867
2155
3051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 - + 23 + - col0 col1 FROM tab0 AS cor0
----
187
7459
9289

query I rowsort
SELECT - + col0 - - col0 * + - col1 * - - col0 + + 40 AS col1 FROM tab2 AS cor0
----
-107922
-315416
-376910

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT - col0 DIV - + 3 AS col1 FROM tab0 AS cor0
----
29
32
5

skipif mysql # not compatible
query I rowsort label-2526
SELECT - col0 / - + 3 AS col1 FROM tab0 AS cor0
----
29
32
5

query I rowsort
SELECT - 52 * col1 FROM tab2 AS cor0
----
-2652
-3484
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - - MIN( col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2528
SELECT - - MIN ( col0 ) FROM tab2 cor0
----
46

query II rowsort
SELECT ALL col2 * + 71, col0 + - + col2 AS col0 FROM tab2
----
1633
23
2840
24
4118
17

query I rowsort
SELECT ALL - - 62 * - col0 * - ( + 99 ) * + 51 AS col2 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT ALL COUNT( * ) + + ( + + 0 ) + - + 18 AS col0, + 9 AS col0 FROM tab2, tab2 AS cor0
----
-9
9

skipif mysql # not compatible
query II rowsort label-2531
SELECT ALL COUNT ( * ) + + ( + + 0 ) + - + 18 AS col0, + 9 AS col0 FROM tab2, tab2 AS cor0
----
-9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2532
SELECT - 82 DIV + MAX( + - col0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT - 82 / + MAX ( + - col0 ) FROM tab2
----
1

query I rowsort
SELECT - col0 * + col0 * - col0 + - ( 38 ) FROM tab2 AS cor0
----
262106
421837
97298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col1 * - col0 col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT col2 * + - 22 AS col1 FROM tab0
----
-1034
-2178
-220

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 + + 96 > ( col1 + + 59 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT ALL - col2 DIV + col0 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - col2 / + col0 AS col1 FROM tab1 cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT - col1 DIV 77 * - 73 * + col1 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2538
SELECT - col1 / 77 * - 73 * + col1 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT DISTINCT + - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT + - col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 60 - - - col1 + 29 AS col2 FROM tab1 cor0 WHERE - 56 / + col0 <= + col0
----
42
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( + col2 ) - + col2 * - + col1
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( + col2 ) - + col2 * - + col1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT col1 < 33 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 19 + - col2 AS col1 FROM tab2 AS cor0
----
-42
-59
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 + 14 + - col1 col1 FROM tab1
----
24
57
66

query I rowsort
SELECT ALL - col0 + - col1 + - 93 FROM tab0
----
-189
-191
-201

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col1 + + + ( + col1 ) AS col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT + + COUNT( DISTINCT + + 50 ) * - ( - 36 ) FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-2548
SELECT + + COUNT ( DISTINCT + + 50 ) * - ( - 36 ) FROM tab2 cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT - 89 - + col0 DIV - - col0 + + + 63 col2 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2549
SELECT - 89 - + col0 / - - col0 + + + 63 col2 FROM tab0 AS cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 6 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL + - COUNT( * ) * - CAST( NULL AS SIGNED ) + 31 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 31 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 85 + + + col0 FROM tab1
----
-34
0
6

query I rowsort
SELECT ALL + 52 - col0 AS col2 FROM tab0
----
-35
-45
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - col1 IN ( col2 + - col0, - 20, + - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2555
SELECT ALL - col1 / - 26, + CAST( - - col1 AS SIGNED ) FROM tab1 cor0 WHERE NULL > - col0 * col0
----

skipif mysql # not compatible
query II rowsort label-2555
SELECT ALL - col1 / - 26, + CAST ( - - col1 AS INTEGER ) FROM tab1 cor0 WHERE NULL > - col0 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 82 <> - + col2 + + 86
----

query I rowsort
SELECT ALL + col0 * 61 AS col2 FROM tab0
----
5307
5917
915

query III rowsort
SELECT * FROM tab2 WHERE NOT 57 + col2 / - 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT MAX( col2 ) * - + ( + 73 ) FROM tab0
----
-7227

skipif mysql # not compatible
query I rowsort label-2559
SELECT MAX ( col2 ) * - + ( + 73 ) FROM tab0
----
-7227

query II rowsort
SELECT ALL 2 AS col0, + col1 FROM tab2
----
2
51
2
67
2
77

query II rowsort
SELECT DISTINCT col0, + 13 * + col1 * - 75 FROM tab1
----
51
-13650
85
-4875
91
-45825

query II rowsort
SELECT DISTINCT + 79 AS col1, + 49 * - col0 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
79
-2254
79
-3136
79
-3675

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * + - 59 col0 FROM tab1 AS cor0 WHERE NOT 23 * + col1 + + col1 / 80 < + - col0
----
-5428
-5428
-5428

query I rowsort
SELECT + 17 + + ( 95 ) FROM tab1
----
112
112
112

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT col2 + - col0 * col0 DIV + ( - - col2 ) AS col0 FROM tab2
----
-38
-62
-69

skipif mysql # not compatible
query I rowsort label-2566
SELECT col2 + - col0 * col0 / + ( - - col2 ) AS col0 FROM tab2
----
-38
-62
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT MIN( DISTINCT - col1 ) + + + 82 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2567
SELECT MIN ( DISTINCT - col1 ) + + + 82 AS col1 FROM tab0
----
1

query II rowsort
SELECT col1 + + - col1 AS col1, + col2 AS col0 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL 98 * + + col1 FROM tab0
----
2058
7938
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + + col2 DIV - 84 + + 64 * + + 38 FROM tab1 AS cor0
----
2431
2432
2432

skipif mysql # not compatible
query I rowsort label-2570
SELECT + + col2 / - 84 + + 64 * + + 38 FROM tab1 AS cor0
----
2431
2432
2432

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( - - col1 ) )
----

query II rowsort
SELECT ALL col1 + col1 AS col1, col1 * 95 FROM tab0 AS cor0
----
162
7695
2
95
42
1995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT + 61 * - CAST( - 47 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2867

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + 61 * - CAST ( - 47 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2575
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2575
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL 71 + + COUNT( * ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL 71 + + COUNT ( * ) AS col2 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ( - COUNT( * ) ) + - 9 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-2577
SELECT ( - COUNT ( * ) ) + - 9 FROM tab1
----
-12

query II rowsort
SELECT DISTINCT - col0 * + + col2 - - - 21 AS col1, + 33 AS col1 FROM tab1
----
-4917
33
-5036
33
-6209
33

query I rowsort
SELECT ALL col2 + 92 * col1 AS col1 FROM tab2
----
4715
6222
7124

query I rowsort
SELECT + 49 + + col2 AS col1 FROM tab0
----
148
59
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 49 + + - 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT + CAST( NULL AS SIGNED ) + - 82 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2582
SELECT + CAST ( NULL AS INTEGER ) + - 82 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - 17 ) AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - ( + 66 ) + - + col0 AS col2 FROM tab2 cor0
----
-3082
-4288
-5025

query II rowsort
SELECT 84 AS col0, - col2 FROM tab0
----
84
-10
84
-47
84
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-2587
SELECT col0, 51 DIV - 44 + + col1 col0 FROM tab2
----
46
50
64
76
75
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2587
SELECT col0, 51 / - 44 + + col1 col0 FROM tab2
----
46
50
64
76
75
66

query II rowsort
SELECT DISTINCT col2 AS col2, 94 AS col2 FROM tab1
----
59
94
68
94
96
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 AS cor0 WHERE ( NOT + + 99 * 75 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT + SUM( ALL + + 17 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + SUM ( ALL + + 17 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT ALL - COUNT( * ) AS col0, + 67 AS col2 FROM tab0 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-2591
SELECT ALL - COUNT ( * ) AS col0, + 67 AS col2 FROM tab0 AS cor0
----
-3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT MAX( 12 ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-2592
SELECT MAX ( 12 ) FROM tab0 cor0
----
12

query II rowsort
SELECT DISTINCT col1 AS col0, + col0 + - - 46 AS col1 FROM tab0 AS cor0
----
1
143
21
133
81
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 * + 44, ( - col0 ) * + col2 col2 FROM tab1 cor0
----
3740
-4896
3740
-5015
3740
-6188

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - + col0
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL >= + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT COUNT( DISTINCT + 55 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT COUNT ( DISTINCT + 55 ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 47 + + col2 + + col1 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + - 20 ) AS col0 FROM tab0 AS cor0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 / + ( - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2601
SELECT + 39 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - + col1 * - col0 * - + col1 * + + CAST( NULL AS DECIMAL ) + + col2 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 39 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - + col1 * - col0 * - + col1 * + + CAST ( NULL AS REAL ) + + col2 AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # DIV for integer division: 
query II rowsort label-2603
SELECT DISTINCT col1 AS col2, col1 DIV - ( - col2 ) FROM tab2
----
51
2
67
1
77
1

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT col1 AS col2, col1 / - ( - col2 ) FROM tab2
----
51
2
67
1
77
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 56 NOT BETWEEN NULL AND - + col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2605
SELECT DISTINCT - - CAST( NULL AS SIGNED ), col0 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), col0 + - col0 AS col0 FROM tab2 AS cor0
----
NULL
0

query I rowsort
SELECT - 50 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL + - 78 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + - 78 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT + ( + col0 ) FROM tab2 AS cor0 WHERE 38 / - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2608
SELECT + ( + col0 ) FROM tab2 AS cor0 WHERE 38 / - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT 76 + - MIN( DISTINCT - 57 ) AS col1 FROM tab0 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-2609
SELECT 76 + - MIN ( DISTINCT - 57 ) AS col1 FROM tab0 AS cor0
----
133

query II rowsort
SELECT DISTINCT 83 * col1 + + - col2 + + col2 * + 84 + - - col0 AS col1, 49 FROM tab0 AS cor0
----
10639
49
2660
49
8397
49

query I rowsort
SELECT ALL - col0 * - 74 FROM tab1 AS cor0
----
3774
6290
6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2612
SELECT + COUNT( * ) + + MIN( ALL + + ( - CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) - + + COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2612
SELECT + COUNT ( * ) + + MIN ( ALL + + ( - CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) - + + COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + 87 AS col0 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL + - SUM( + col0 ) + - 48 - - COUNT( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + - SUM ( + col0 ) + - 48 - - COUNT ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-230

query I rowsort
SELECT ALL + 44 * col0 * - 54 + col2 + + col2 AS col1 FROM tab1
----
-120984
-201842
-216080

query I rowsort
SELECT + 6 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col1 * - + col0 + col1 AS col2 FROM tab0
----
-1149
-1893
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT ALL col2 - + - CAST( - 2 AS SIGNED ) AS col2 FROM tab1
----
57
66
94

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL col2 - + - CAST ( - 2 AS INTEGER ) AS col2 FROM tab1
----
57
66
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2621
SELECT - ( + col2 ) - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT - ( + col2 ) - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + COUNT( * ) - - COUNT( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + COUNT ( * ) - - COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 29 + + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-128
-239
-3836

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + COUNT( * ) + + 2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + COUNT ( * ) + + 2 FROM tab2 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 9 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT + ( - 96 ) * COUNT( * ) + - 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-909

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + ( - 96 ) * COUNT ( * ) + - 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-909

query I rowsort
SELECT DISTINCT - - col1 * - 2 - - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL col0 * col2 + - col1 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT DISTINCT - - 40 DIV - 53 * + COUNT( * ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2630
SELECT DISTINCT - - 40 / - 53 * + COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT DISTINCT + 65 DIV col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + 65 / col1 FROM tab2 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2634
SELECT + + col0, col1 + + 66 / - col1 / + CAST( - 87 AS SIGNED ) + - col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2634
SELECT + + col0, col1 + + 66 / - col1 / + CAST ( - 87 AS INTEGER ) + - col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT col1 DIV + - 13 AS col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT col1 / + - 13 AS col1 FROM tab1
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2636
SELECT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2636
SELECT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT ALL - 68 DIV + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - 68 / + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - MAX( - 9 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2639
SELECT - MAX ( - 9 ) AS col0 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2640
SELECT col0 AS col2, - col0 DIV + + col0 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-2640
SELECT col0 AS col2, - col0 / + + col0 FROM tab1
----
51
-1
85
-1
91
-1

query I rowsort
SELECT - 19 * + + 99 FROM tab1
----
-1881
-1881
-1881

query II rowsort
SELECT 18, 32 * + - col2 + + col2 * - - 52 AS col1 FROM tab0
----
18
1980
18
200
18
940

query II rowsort
SELECT 24 AS col0, - col0 FROM tab1
----
24
-51
24
-85
24
-91

query II rowsort
SELECT ALL 8 AS col2, col0 FROM tab0
----
8
15
8
87
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT + + MIN( ALL - col0 ) * - + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2645
SELECT + + MIN ( ALL - col0 ) * - + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-225

query I rowsort
SELECT ALL + ( + col1 ) + col2 + - 67 * + col2 FROM tab0 cor0
----
-3021
-639
-6533

query II rowsort
SELECT DISTINCT - 16 + + - col1, col2 FROM tab2 AS cor0
----
-67
23
-83
58
-93
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + col1 col2 FROM tab1
----
101
110
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 84 col2 FROM tab1 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT + col2 NOT BETWEEN + col2 AND + col1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT + col2 NOT BETWEEN + col2 AND + col1 ) )
----
1

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 / - - 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - 83 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 34 IN ( + + col1 + - col0 + + col2, col2, col2 + + - col2, + col0 )
----
-83

skipif mysql # not compatible
query I rowsort label-2653
SELECT - 83 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 34 IN ( + + col1 + - col0 + + col2, col2, col2 + + - col2, + col0 )
----
-83

query I rowsort
SELECT - 68 * + col1 FROM tab1 AS cor0
----
-3196
-340
-952

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - - col2
----

query I rowsort
SELECT 15 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
15
15
15

query I rowsort
SELECT DISTINCT 52 + + + col0 * 64 FROM tab0 AS cor0
----
1012
5620
6260

query II rowsort
SELECT DISTINCT col1 AS col1, - col1 + + - 16 FROM tab0
----
1
-17
21
-37
81
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT + ( 45 ) + + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + ( 45 ) + + COUNT ( * ) FROM tab0
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > col1 + + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col0 col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT - 75 + + col1 + - col0 + + col0 FROM tab1
----
-28
-61
-70

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( DISTINCT + + col0 ) + - SUM( col1 ) - + COUNT( * ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( DISTINCT + + col0 ) + - SUM ( col1 ) - + COUNT ( * ) AS col2 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2665
SELECT DISTINCT col1 - col1 * - 57, - CAST( NULL AS SIGNED ) * 10 AS col2 FROM tab2
----
2958
NULL
3886
NULL
4466
NULL

skipif mysql # not compatible
query II rowsort label-2665
SELECT DISTINCT col1 - col1 * - 57, - CAST ( NULL AS INTEGER ) * 10 AS col2 FROM tab2
----
2958
NULL
3886
NULL
4466
NULL

query I rowsort
SELECT DISTINCT + col1 + 32 + 56 AS col0 FROM tab0
----
109
169
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - + 48 * + col1 * - 65 col2, 22 col1 FROM tab1 cor0
----
146687
22
15605
22
43694
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + + MIN( ALL - 62 ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2668
SELECT + + MIN ( ALL - 62 ) FROM tab2 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + - col0 / + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + - col0 / + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col1 + + 31 FROM tab1 AS cor0
----
-165
-2178
6

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 3 > + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + col1 AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL COUNT( * ) * + + 78 AS col1 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL COUNT ( * ) * + + 78 AS col1 FROM tab0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col0 FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + + MAX( - + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2677
SELECT + + MAX ( - + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col2 * + 28 * - col1 AS col1 FROM tab1 AS cor0
----
-37632
-8260
-89488

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT + - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT DISTINCT + - col0 DIV 4 AS col1 FROM tab0 AS cor0
----
-21
-24
-3

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + - col0 / 4 AS col1 FROM tab0 AS cor0
----
-21
-24
-3

query I rowsort
SELECT DISTINCT - 28 * col1 FROM tab1 AS cor0
----
-1316
-140
-392

query I rowsort
SELECT + 47 + - + 57 FROM tab0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2683
SELECT - + col1 DIV + ( + 79 ) AS col0, - 61 AS col0 FROM tab1 AS cor0
----
0
-61
0
-61
0
-61

skipif mysql # not compatible
query II rowsort label-2683
SELECT - + col1 / + ( + 79 ) AS col0, - 61 AS col0 FROM tab1 AS cor0
----
0
-61
0
-61
0
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + 88 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT + + SUM( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2685
SELECT + + SUM ( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT DISTINCT + ( + COUNT( + col0 ) ) + + ( + ( - COUNT( * ) ) ) AS col1, + COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-2687
SELECT DISTINCT + ( + COUNT ( + col0 ) ) + + ( + ( - COUNT ( * ) ) ) AS col1, + COUNT ( * ) AS col1 FROM tab0
----
0
3

query I rowsort
SELECT + 53 + + - col1 FROM tab1
----
39
48
6

query I rowsort
SELECT ALL + 13 + - ( - 46 ) FROM tab0
----
59
59
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 80 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL 55 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL 55 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT col0 + 12 + - + col0 AS col0 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT + + col0 * 46 + - col1 AS col2 FROM tab0 AS cor0
----
3981
4461
609

query I rowsort
SELECT col2 + + + ( + 2 ) FROM tab1 AS cor0
----
61
70
98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2695
SELECT DISTINCT - - col0 / - ( 39 ) - - - ( - - CAST( NULL AS DECIMAL ) ) AS col2, + 9 + ( col0 ) - 49 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2695
SELECT DISTINCT - - col0 / - ( 39 ) - - - ( - - CAST ( NULL AS REAL ) ) AS col2, + 9 + ( col0 ) - 49 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + 85, - col1 AS col1 FROM tab2 AS cor0
----
85
-51
85
-67
85
-77

query I rowsort
SELECT ALL ( + col1 ) + + ( col1 ) + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
4924
5025
6282

query I rowsort
SELECT col2 + + - 94 AS col2 FROM tab0 WHERE - col2 + - 94 + + 50 * + + 56 >= - 29 * - col2 - + - col0
----
-47
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + COUNT( * ) + - - ( + 45 ) AS col0 FROM tab0, tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + COUNT ( * ) + - - ( + 45 ) AS col0 FROM tab0, tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2700
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - - 20 + + - col2 / - + CAST( NULL AS DECIMAL ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - - 20 + + - col2 / - + CAST ( NULL AS REAL ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - MIN( 70 ) AS col0 FROM tab0, tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2701
SELECT - MIN ( 70 ) AS col0 FROM tab0, tab0 AS cor0
----
-70

query I rowsort
SELECT ALL col2 * col0 - + col1 * + - col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 - - + 17, col0, + 37, - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2703
SELECT DISTINCT col2 * CAST( - - 73 AS DECIMAL ) + + col1 AS col0 FROM tab1 WHERE NOT NULL < 88 / + - 65 + + - col0
----

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT col2 * CAST ( - - 73 AS REAL ) + + col1 AS col0 FROM tab1 WHERE NOT NULL < 88 / + - 65 + + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT col2 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT col2 / - + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT - ( + SUM( + col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - ( + SUM ( + col2 ) ) AS col0 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + + col2 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + col0 * col2 * + - 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 64 * + 75 FROM tab2
----
4800
4800
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT col1 DIV + ( + - col1 ) + + col0 AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT col1 / + ( + - col1 ) + + col0 AS col0 FROM tab0
----
14
86
96

query I rowsort
SELECT 32 * + + 42 * + - col2 AS col1 FROM tab2
----
-30912
-53760
-77952

query I rowsort
SELECT ALL - 53 + - + 78 AS col1 FROM tab2
----
-131
-131
-131

onlyif mysql # DIV for integer division: 
query II rowsort label-2713
SELECT DISTINCT col1 DIV + col2, + col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-2713
SELECT DISTINCT col1 / + col2, + col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT MIN( ALL ( + 60 ) ) * + MAX( DISTINCT 67 ) AS col2 FROM tab1
----
4020

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT MIN ( ALL ( + 60 ) ) * + MAX ( DISTINCT 67 ) AS col2 FROM tab1
----
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL COUNT( * ) FROM tab2 WHERE + + col0 - - col0 * + + 28 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL COUNT ( * ) FROM tab2 WHERE + + col0 - - col0 * + + 28 = NULL
----
0

query I rowsort
SELECT DISTINCT + 84 * - + 56 FROM tab1
----
-4704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + 1 col0 FROM tab0
----
81
81
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 * + + col1 / - col1 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT COUNT( * ) + + 46 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2719
SELECT COUNT ( * ) + + 46 FROM tab2 AS cor0
----
49

query I rowsort
SELECT col0 + + 96 FROM tab1 AS cor0
----
147
181
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 60 + - 62 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 60 + - 62 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, 52 col0 FROM tab0
----
15
52
87
52
97
52

query I rowsort
SELECT ALL - - col0 - - 60 FROM tab2 cor0
----
106
124
135

query I rowsort
SELECT + col0 * + + col2 - + 62 + col0 AS col2 FROM tab2 AS cor0
----
1042
2562
4363

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL - - MAX( - 96 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - - MAX ( - 96 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT + + SUM( ALL - 86 ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( 36 ) + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + + SUM ( ALL - 86 ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( 36 ) + + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 25 + + col2 * + col1 FROM tab2
----
-102
1155
2211

query III rowsort
SELECT * FROM tab1 WHERE - col1 + col2 < - col0
----

query I rowsort
SELECT ALL - 20 + + - col1 AS col1 FROM tab1
----
-25
-34
-67

query I rowsort
SELECT DISTINCT 83 * + col1 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT SUM( + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT SUM ( + + col2 ) AS col2 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 11 AS col0, + col2 col0 FROM tab1 AS cor0
----
11
59
11
68
11
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 46 * 34 * - ( - ( - 84 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT - COUNT( * ) AS col1, + COUNT( + - col0 ) * - + MAX( - col1 ) FROM tab2 AS cor0
----
-3
153

skipif mysql # not compatible
query II rowsort label-2734
SELECT - COUNT ( * ) AS col1, + COUNT ( + - col0 ) * - + MAX ( - col1 ) FROM tab2 AS cor0
----
-3
153

query II rowsort
SELECT 80 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
80
-10
80
-47
80
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 97 col0 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT DISTINCT col2 * - col1 + + 77 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1267
-218
-3119

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 12 * + + 31 FROM tab2 AS cor0
----
-372
-372
-372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col0 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT ALL col0 + - 89 AS col0 FROM tab1
----
-38
-4
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT - 92 * + 90 DIV - COUNT( * ) AS col0 FROM tab1
----
2760

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - 92 * + 90 / - COUNT ( * ) AS col0 FROM tab1
----
2760

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 * - 69 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + COUNT( ALL 44 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > col1 * - col1 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-2744
SELECT + COUNT ( ALL 44 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > col1 * - col1 * - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT + + col1 DIV - - 75 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2745
SELECT + + col1 / - - 75 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT - 51 * CAST( 90 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-4590
-4590
-4590

skipif mysql # not compatible
query I rowsort label-2746
SELECT - 51 * CAST ( 90 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-4590
-4590
-4590

query I rowsort
SELECT + ( + col1 ) * col1 * - col2 * + + 53 FROM tab0 AS cor0
----
-16343451
-233730
-5247

query I rowsort
SELECT ALL col1 + + 0 + + 52 AS col0 FROM tab2 AS cor0
----
103
119
129

query I rowsort
SELECT ALL col0 FROM tab1 WHERE - col2 IN ( + col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT - COUNT( DISTINCT - col1 ) + - 50 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) + - 50 FROM tab0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 * 19 < NULL
----

skipif mysql # not compatible
query I rowsort label-2751
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 * 19 < NULL
----

query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab0 WHERE 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL SUM( DISTINCT ( col1 ) ) FROM tab0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL SUM ( DISTINCT ( col1 ) ) FROM tab0 WHERE ( NULL ) > NULL
----
NULL

query I rowsort
SELECT + 78 * col1 FROM tab0
----
1638
6318
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL ( - col0 ) + 34 DIV 76 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL ( - col0 ) + 34 / 76 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2758
SELECT - CAST( MAX( ALL + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + - SUM( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT - CAST ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS REAL ) + - SUM ( col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2759
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + col2 + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + col2 + col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( + 43 * + col1 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT ALL + 88 DIV + 82 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + 88 / + 82 AS col0 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2762
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IN ( + col2 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2762
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IN ( + col2 + + col2 )
----

query I rowsort
SELECT + col2 FROM tab2 WHERE col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT + 0 - - col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2764
SELECT + 0 - - col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT COUNT( * ) - 68 AS col2 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2765
SELECT COUNT ( * ) - 68 AS col2 FROM tab2
----
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2766
SELECT - col2 AS col0 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2766
SELECT - col2 AS col0 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL 28 + 37 AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
65
65
65

query I rowsort
SELECT DISTINCT ( - 4 ) FROM tab2
----
-4

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 16 col1 FROM tab1 WHERE NOT ( col0 ) / + col2 + 70 = col1 * - col2
----
-31
11
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 70 ) < 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT 34 * - 97 - + COUNT( * ) FROM tab0
----
-3301

skipif mysql # not compatible
query I rowsort label-2772
SELECT 34 * - 97 - + COUNT ( * ) FROM tab0
----
-3301

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT DISTINCT COUNT( * ) col0 FROM tab2 WHERE ( + col1 ) IN ( col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2773
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 WHERE ( + col1 ) IN ( col1 )
----
3

query I rowsort
SELECT + col2 * 64 + col2 * + col2 FROM tab1
----
15360
7257
8976

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col0 * + ( - col2 * - col1 ) > ( col0 )
----
-1
-21
-81

query I rowsort
SELECT ALL + 85 + col0 AS col2 FROM tab1
----
136
170
176

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT 22 - col1 FROM tab0
----
-59
1
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 75 > + 19 * 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT DISTINCT + 40 DIV col2 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT + 40 / col2 FROM tab0 AS cor0
----
0
4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 + - 5 ) IS NOT NULL
----

query I rowsort
SELECT + 33 * col2 FROM tab0
----
1551
3267
330

query I rowsort
SELECT - 66 + col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-15
19
25

query I rowsort
SELECT ALL - col0 * + ( col2 * - col1 ) AS col2 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + COUNT( * ) * + COUNT( + col0 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2785
SELECT + COUNT ( * ) * + COUNT ( + col0 ) AS col0 FROM tab1
----
9

query I rowsort
SELECT + 19 * + col1 FROM tab2
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL + + SUM( ALL + ( + 38 ) ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + + SUM ( ALL + ( + 38 ) ) FROM tab0 AS cor0
----
114

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 - col0 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL col2 * 3 FROM tab1 AS cor0 WHERE + CAST( + 37 AS SIGNED ) > ( + 51 )
----

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL col2 * 3 FROM tab1 AS cor0 WHERE + CAST ( + 37 AS INTEGER ) > ( + 51 )
----

query I rowsort
SELECT ALL - col0 - + col2 FROM tab0 AS cor0 WHERE col1 * - col2 + + col0 * - col1 IN ( 1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT MIN( DISTINCT col1 ) + SUM( col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
228

skipif mysql # not compatible
query I rowsort label-2791
SELECT MIN ( DISTINCT col1 ) + SUM ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
228

query I rowsort
SELECT ALL - col0 + - 46 AS col2 FROM tab0 AS cor0
----
-133
-143
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + + MIN( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2793
SELECT + + MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + + 58 + col2 FROM tab2 AS cor0
----
116
81
98

query III rowsort
SELECT * FROM tab0 WHERE + ( + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT DISTINCT + 1 + + col0 DIV - col1 AS col1 FROM tab1
----
-16
-2
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + 1 + + col0 / - col1 AS col1 FROM tab1
----
-16
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2797
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) / 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2797
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) / 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL + COUNT( * ) + + + 69 + + 7 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + COUNT ( * ) + + + 69 + + 7 FROM tab0
----
79

query I rowsort
SELECT col0 + - col2 + + col1 FROM tab2
----
101
74
84

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab2 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT - col0 + - 53 + + CAST( - col0 + + col0 * + col0 AS SIGNED ) * 64 FROM tab2
----
132381
257931
355072

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - col0 + - 53 + + CAST ( - col0 + + col0 * + col0 AS INTEGER ) * 64 FROM tab2
----
132381
257931
355072

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + col0 NOT BETWEEN + 79 AND col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2803
SELECT ALL 64 + MIN( col0 ) * 42 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + CAST( NULL AS SIGNED ) - + ( CAST( NULL AS SIGNED ) + 66 ) IS NOT NULL
----
1996

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL 64 + MIN ( col0 ) * 42 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + CAST ( NULL AS INTEGER ) - + ( CAST ( NULL AS INTEGER ) + 66 ) IS NOT NULL
----
1996

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2804
SELECT COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT + - COUNT( * ) col2 FROM tab1 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-2805
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + MAX( + 82 ) FROM tab0 AS cor0 WHERE NOT NULL < + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT + MAX ( + 82 ) FROM tab0 AS cor0 WHERE NOT NULL < + 26
----
NULL

query I rowsort
SELECT - col2 * + - col0 FROM tab0 cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 NOT BETWEEN ( col0 / 57 ) AND ( + col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2809
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - 25 AS SIGNED ) * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2809
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - 25 AS INTEGER ) * col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 77 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT DISTINCT + CAST( + - 19 AS SIGNED ) FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT + CAST ( + - 19 AS INTEGER ) FROM tab2 cor0
----
-19

query I rowsort
SELECT ALL + col0 * + 95 FROM tab2 AS cor0
----
4370
6080
7125

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 1 OR NULL BETWEEN + 78 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL + 33 AS col1, COUNT( * ) * + - 31 AS col0 FROM tab1 AS cor0
----
33
-93

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL + 33 AS col1, COUNT ( * ) * + - 31 AS col0 FROM tab1 AS cor0
----
33
-93

query I rowsort
SELECT - 54 * - col2 AS col2 FROM tab1 AS cor0
----
3186
3672
5184

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT col0 DIV - - 71 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT col0 / - - 71 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + - col0 - + + 64 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT + MIN( - 42 ) * + + 39 AS col1 FROM tab2
----
-1638

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT + MIN ( - 42 ) * + + 39 AS col1 FROM tab2
----
-1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT - 5 * 81 FROM tab0 WHERE NOT - col2 + + - col0 + col1 * - col2 <= ( CAST( 93 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 5 * 81 FROM tab0 WHERE NOT - col2 + + - col0 + col1 * - col2 <= ( CAST ( 93 AS INTEGER ) )
----

query I rowsort
SELECT 12 AS col0 FROM tab1 cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE ( + col0 NOT IN ( + col0 ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - + 21 + + + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - + 21 + + + COUNT ( * ) FROM tab0 AS cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + 15 / - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2825
SELECT - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + MAX( ALL + ( + - 41 ) ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2826
SELECT + MAX ( ALL + ( + - 41 ) ) AS col1 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - - col1 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - - col1 >= ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 * + 8 * + col1 * col1 NOT BETWEEN + 71 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL - + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 + + col2 col0 FROM tab2 cor0 WHERE col0 + + - col2 IS NOT NULL
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL - - 17 * - COUNT( * ) - + 80 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - - 17 * - COUNT ( * ) - + 80 FROM tab0 AS cor0
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2833
SELECT 30 + COUNT( ALL + 8 ) DIV ( - + SUM( ( 27 ) ) ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2833
SELECT 30 + COUNT ( ALL + 8 ) / ( - + SUM ( ( 27 ) ) ) FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT - col2 DIV - col1 + - 10 + - - col0 AS col0 FROM tab0 AS cor0
----
186
5
77

skipif mysql # not compatible
query I rowsort label-2834
SELECT - col2 / - col1 + - 10 + - - col0 AS col0 FROM tab0 AS cor0
----
186
5
77

query I rowsort
SELECT + - 70 + + + col2 AS col1 FROM tab0 AS cor0
----
-23
-60
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col1 + + 27 col2 FROM tab1 AS cor0
----
223
2236
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + COUNT( * ) FROM tab0 WHERE ( - 35 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2837
SELECT + COUNT ( * ) FROM tab0 WHERE ( - 35 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT SUM( ALL + + ( + 75 ) ) AS col0 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-2838
SELECT SUM ( ALL + + ( + 75 ) ) AS col0 FROM tab0
----
225

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab2 WHERE ( + - 18 + - 95 ) >= + col1
----

query II rowsort
SELECT + col2, + col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * col2 * 18 < - col1 * col2
----

query II rowsort
SELECT 78 AS col1, 83 + 88 FROM tab0
----
78
171
78
171
78
171

query II rowsort
SELECT ALL + col0 AS col2, 42 FROM tab2
----
46
42
64
42
75
42

query I rowsort
SELECT + - col2 FROM tab0 cor0 WHERE col0 + col1 + col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - 80 * COUNT( * ) - - ( SUM( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-2845
SELECT - 80 * COUNT ( * ) - - ( SUM ( DISTINCT - + col2 ) ) FROM tab0 AS cor0
----
-396

query I rowsort
SELECT - 52 + - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL - 12 + + + 45 FROM tab0
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT - - 97 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 50 * col1 IN ( 8, col2 - + CAST( NULL AS SIGNED ) )
----
97

skipif mysql # not compatible
query I rowsort label-2848
SELECT - - 97 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 50 * col1 IN ( 8, col2 - + CAST ( NULL AS INTEGER ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + ( + MIN( + + col2 ) ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2849
SELECT + ( + MIN ( + + col2 ) ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT DISTINCT + 34 DIV + 19 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2850
SELECT DISTINCT + 34 / + 19 col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 77 BETWEEN + 14 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col2 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + + COUNT( DISTINCT + - col1 ) FROM tab2 WHERE NOT - - col1 >= - - col2 + + col2
----
2

skipif mysql # not compatible
query I rowsort label-2853
SELECT + + COUNT ( DISTINCT + - col1 ) FROM tab2 WHERE NOT - - col1 >= - - col2 + + col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2854
SELECT + 20 DIV + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2854
SELECT + 20 / + - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL ( col1 ) * 22 FROM tab0
----
1782
22
462

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT COUNT( * ) AS col2, - COUNT( * ) + + + 70 FROM tab2
----
3
67

skipif mysql # not compatible
query II rowsort label-2857
SELECT COUNT ( * ) AS col2, - COUNT ( * ) + + + 70 FROM tab2
----
3
67

query I rowsort
SELECT ALL + 7 * - col1 FROM tab2
----
-357
-469
-539

query II rowsort
SELECT ALL col2 * - - col0 * col0 AS col2, col0 AS col1 FROM tab2
----
163840
64
326250
75
48668
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2860
SELECT + CAST( + + CAST( - + 32 AS DECIMAL ) AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab0
----
-32
3

skipif mysql # not compatible
query II rowsort label-2860
SELECT + CAST ( + + CAST ( - + 32 AS REAL ) AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
-32
3

query I rowsort
SELECT ALL + 39 * + col1 AS col2 FROM tab1 AS cor0
----
1833
195
546

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 25 BETWEEN - + col1 * - - col1 + - + 75 * 88 AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( - - col1 ) + col0 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT ALL col2 AS col1, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + - ( + ( - 96 ) ) FROM tab2 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 >= 84
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2867
SELECT col2 + - 5 * ( + + col2 ), col0 DIV - col1 col0 FROM tab2
----
-160
0
-232
-1
-92
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2867
SELECT col2 + - 5 * ( + + col2 ), col0 / - col1 col0 FROM tab2
----
-160
0
-232
-1
-92
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 * - - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT + COUNT( 56 ) + + MAX( col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT + COUNT ( 56 ) + + MAX ( col0 ) FROM tab0 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2870
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( + 68 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2870
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( + 68 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2872
SELECT ALL COUNT ( * ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - col0 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT - CAST( - 4 AS SIGNED ) + + + MAX( DISTINCT - col2 ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-2874
SELECT - CAST ( - 4 AS INTEGER ) + + + MAX ( DISTINCT - col2 ) FROM tab1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT MIN( 93 ) + + 68 + + - 95 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT MIN ( 93 ) + + 68 + + - 95 FROM tab0
----
66

query I rowsort
SELECT + col1 + + 66 AS col1 FROM tab2
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL - 87 * MAX( DISTINCT - 14 ) + - 30 FROM tab1
----
1188

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - 87 * MAX ( DISTINCT - 14 ) + - 30 FROM tab1
----
1188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col0 + - 0 col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT - 91 + + MIN( + - 10 ) AS col0 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-2879
SELECT - 91 + + MIN ( + - 10 ) AS col0 FROM tab2
----
-101

query I rowsort
SELECT ALL - 79 + - + col1 FROM tab2
----
-130
-146
-156

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2881
SELECT - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT - COUNT ( * ) + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT - 51 * ( - - CAST( 75 AS SIGNED ) ) FROM tab2 AS cor0
----
-3825
-3825
-3825

skipif mysql # not compatible
query I rowsort label-2882
SELECT - 51 * ( - - CAST ( 75 AS INTEGER ) ) FROM tab2 AS cor0
----
-3825
-3825
-3825

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) <= col1 * col1
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + 8 AS col0 FROM tab1 cor0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT ALL - col1 DIV - - 55 - 50 AS col2 FROM tab2 AS cor0
----
-50
-51
-51

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - col1 / - - 55 - 50 AS col2 FROM tab2 AS cor0
----
-50
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2886
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 AND - 34 OR NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2886
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 AND - 34 OR NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - - 10 AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - ( + - col0 ) AS col2 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col2 + - col2 NOT IN ( + col1, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + col2 - 91
----

query II rowsort
SELECT ALL + + col0 AS col0, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + - col2 * - - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - col1 * + + 85 * - col2 AS col2 FROM tab0
----
17850
323595
8415

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL MAX( - 31 ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL MAX ( - 31 ) AS col2 FROM tab2
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2895
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - col1 AS col2, 45 AS col1 FROM tab2 WHERE NOT - col0 - + col0 * + + col2 IS NULL
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2895
SELECT DISTINCT - CAST ( NULL AS REAL ) / - col1 AS col2, 45 AS col1 FROM tab2 WHERE NOT - col0 - + col0 * + + col2 IS NULL
----
NULL
45

query I rowsort
SELECT ALL + col2 + col0 - - - col1 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT ALL + - col1 * - col1 + + + col2 * 99 + + col2 FROM tab0 cor0
----
11261
1441
9901

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - + SUM( ALL + + ( 71 ) ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2898
SELECT - + SUM ( ALL + + ( 71 ) ) FROM tab2 AS cor0
----
-213

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( - ( + ( - 56 ) ) - - 25, - col1 )
----

query II rowsort
SELECT ALL + 81 AS col1, 37 FROM tab1
----
81
37
81
37
81
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2901
SELECT * FROM tab1 AS cor0 WHERE CAST( 65 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2901
SELECT * FROM tab1 AS cor0 WHERE CAST ( 65 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( - + col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col1 >= - 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - 2 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2905
SELECT - 2 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + MIN( 17 ) FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-2906
SELECT + MIN ( 17 ) FROM tab1 cor0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2907
SELECT ALL + - CAST( NULL AS DECIMAL ) + - 43 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + - CAST ( NULL AS REAL ) + - 43 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1, - 81 AS col0 FROM tab2 WHERE + 68 IS NOT NULL
----
-51
-81
-67
-81
-77
-81

query I rowsort
SELECT DISTINCT + 98 + - + col2 * + col2 AS col0 FROM tab2
----
-1502
-3266
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL 75 + + COUNT( * ) * + MAX( col2 ) AS col0 FROM tab0
----
372

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL 75 + + COUNT ( * ) * + MAX ( col2 ) AS col0 FROM tab0
----
372

query III rowsort
SELECT * FROM tab2 WHERE - 83 * + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( + col1 * - + col0 )
----

query I rowsort
SELECT DISTINCT + col2 + + 21 AS col0 FROM tab1
----
117
80
89

query I rowsort
SELECT + - 64 + - + AVG ( col1 ) FROM tab1 WHERE + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT 43 - SUM( + col1 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT 43 - SUM ( + col1 ) FROM tab0
----
-60

query I rowsort
SELECT DISTINCT col0 * + col0 + - + col2 FROM tab0
----
178
7559
9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT - 93 * + 45 - - CAST( 39 AS SIGNED ) + - 56 FROM tab2
----
-4202
-4202
-4202

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 93 * + 45 - - CAST ( 39 AS INTEGER ) + - 56 FROM tab2
----
-4202
-4202
-4202

query I rowsort
SELECT ALL + col0 - + 84 * col1 * + 38 AS col1 FROM tab2
----
-162746
-213789
-245720

query I rowsort
SELECT col2 - ( + + ( - col1 ) ) AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL col0 * + 15 * - + 47 + - ( ( - 86 ) ) AS col2 FROM tab2 AS cor0
----
-32344
-45034
-52789

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col2 - col0 / - col1 + - col2 + + + col2 * + 84
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 74 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 3 / - 93 + - col0 - + ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 57 ) FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT ALL - + ( + - ( - col1 ) ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 * + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col2, - col0, col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 * 30 col0, + 6 AS col2 FROM tab1
----
450
6
450
6
450
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL - COUNT( * ) + 82 AS col2 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - COUNT ( * ) + 82 AS col2 FROM tab1
----
79

query II rowsort
SELECT DISTINCT + col1, 23 AS col0 FROM tab2
----
51
23
67
23
77
23

query II rowsort
SELECT + 41 AS col0, - col2 FROM tab2
----
41
-23
41
-40
41
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 * 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + - col0 col2 FROM tab0 AS cor0
----
-51
-61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT - 13 * + ( MIN( + 48 ) ) AS col1 FROM tab0
----
-624

skipif mysql # not compatible
query I rowsort label-2935
SELECT - 13 * + ( MIN ( + 48 ) ) AS col1 FROM tab0
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL 52 * + COUNT( * ) AS col2 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 52 * + COUNT ( * ) AS col2 FROM tab1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + COUNT( * ) * - 25 * - - COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + COUNT ( * ) * - 25 * - - COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
-225

query II rowsort
SELECT ALL + col2 * col2, - col2 AS col0 FROM tab0 AS cor0
----
100
-10
2209
-47
9801
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + 75 - SUM( - - col1 ) AS col1 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2939
SELECT + 75 - SUM ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT ALL + + 1 * + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 30 + - col1 AS col2 FROM tab0
----
-51
29
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT ALL 98 + - 37 + + - 10, - ( - + ( - + ( COUNT( * ) ) ) ) AS col2 FROM tab2
----
51
-3

skipif mysql # not compatible
query II rowsort label-2942
SELECT ALL 98 + - 37 + + - 10, - ( - + ( - + ( COUNT ( * ) ) ) ) AS col2 FROM tab2
----
51
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT - COUNT( + 29 ) + 9 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - COUNT ( + 29 ) + 9 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL COUNT( * ) + + 91 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL COUNT ( * ) + + 91 FROM tab2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL CAST( NULL AS SIGNED ) - + 1 * - ( + col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL CAST ( NULL AS INTEGER ) - + 1 * - ( + col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 * col2 FROM tab1
----
205374
314385
884722

query I rowsort
SELECT ALL + 35 AS col0 FROM tab2 WHERE NOT - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( + - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( + - col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT MAX( + 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2949
SELECT MAX ( + 8 ) FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col0 FROM tab2
----
52
52
52

query I rowsort
SELECT - 65 * - + 58 AS col2 FROM tab0 AS cor0
----
3770
3770
3770

onlyif mysql # DIV for integer division: 
query II rowsort label-2953
SELECT - - col2 DIV + col2, col2 col1 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2953
SELECT - - col2 / + col2, col2 col1 FROM tab0 AS cor0
----
1
10
1
47
1
99

query I rowsort
SELECT - + col1 * 70 + + - 82 FROM tab0 cor0
----
-152
-1552
-5752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2955
SELECT 75 + - col2, - CAST( + 91 AS SIGNED ) * col2 + col1 AS col0 FROM tab2 AS cor0
----
17
-5211
35
-3563
52
-2042

skipif mysql # not compatible
query II rowsort label-2955
SELECT 75 + - col2, - CAST ( + 91 AS INTEGER ) * col2 + col1 AS col0 FROM tab2 AS cor0
----
17
-5211
35
-3563
52
-2042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - - 82 col0 FROM tab2 AS cor0
----
105
122
140

query I rowsort
SELECT ALL + col2 + + + col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL + col1 + + - col1 * col1 AS col2 FROM tab2
----
-2550
-4422
-5852

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 72 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT COUNT( DISTINCT + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / - col0 * col2 + + 64 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col1 col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL col1 + col2 + + 83 AS col1 FROM tab1 AS cor0
----
147
193
198

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - 38 < - col1
----

query II rowsort
SELECT ALL col1 AS col0, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT - 32 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + ( 27 ) > - col0 + + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + - 21 - - + MAX( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + - 21 - - + MAX ( + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 45 * + 23 FROM tab1 AS cor0
----
1035
1035
1035

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT col1 DIV + col2 + + ( 95 ) AS col1 FROM tab1 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-2973
SELECT col1 / + col2 + + ( 95 ) AS col1 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT + 86 * + + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
4386
7310
7826

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col1 / - - col0 * + 89 + 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT + + COUNT( * ) + + 22 AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT + + COUNT ( * ) + + 22 AS col0 FROM tab2 AS cor0
----
25

query II rowsort
SELECT + + 34 AS col0, - col1 FROM tab1 AS cor0
----
34
-14
34
-47
34
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT - ( - MAX( - - 30 ) ) * - 61 + - + 47 FROM tab0 AS cor0
----
-1877

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - ( - MAX ( - - 30 ) ) * - 61 + - + 47 FROM tab0 AS cor0
----
-1877

query I rowsort
SELECT ALL - - col0 * - col1 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT - col0 * - 38 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - + 46 + + 29 + - COUNT( * ) FROM tab0 WHERE col2 * 41 + - col0 BETWEEN - + col0 * - col2 AND - ( + + 74 )
----
-17

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - + 46 + + 29 + - COUNT ( * ) FROM tab0 WHERE col2 * 41 + - col0 BETWEEN - + col0 * - col2 AND - ( + + 74 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT + 64 + MAX( DISTINCT + 89 ) AS col2 FROM tab1 AS cor0 WHERE NOT 28 + - 64 BETWEEN 65 * col0 AND col0
----
153

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + 64 + MAX ( DISTINCT + 89 ) AS col2 FROM tab1 AS cor0 WHERE NOT 28 + - 64 BETWEEN 65 * col0 AND col0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT + 67 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( CAST( NULL AS SIGNED ) ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-2985
SELECT + 67 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( CAST ( NULL AS INTEGER ) ) AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT - col2 DIV + col1 col2 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2986
SELECT - col2 / + col1 col2 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - + COUNT( ALL + + 84 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2987
SELECT - + COUNT ( ALL + + 84 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - + MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2988
SELECT - + MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT - MAX( DISTINCT - - 89 ) AS col2 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - MAX ( DISTINCT - - 89 ) AS col2 FROM tab0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL + 27 * - ( ( - - col0 ) ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + 27 * - ( ( - - col0 ) ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + SUM( DISTINCT - - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2991
SELECT + SUM ( DISTINCT - - col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT ALL + 47 * + col2 + + 92 AS col2 FROM tab2
----
1173
1972
2818

query I rowsort
SELECT DISTINCT + col2 * col0 * - ( - 41 ) FROM tab1
----
200736
205615
253708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - MAX( + 97 ) + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - MAX ( + 97 ) + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL COUNT( - - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL COUNT ( - - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 86 + + ( - col0 ) + col0 AS col2 FROM tab2
----
86

query I rowsort
SELECT ALL - 17 + + 81 AS col0 FROM tab1 AS cor0
----
64
64
64

query II rowsort
SELECT ALL col2 AS col2, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ( + - 7 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL - MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + COUNT( * ) * - - ( + - MIN( ALL - col0 ) ) col0 FROM tab1
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3002
SELECT + COUNT ( * ) * - - ( + - MIN ( ALL - col0 ) ) col0 FROM tab1
----
273

query II rowsort
SELECT + 74 AS col1, col2 AS col2 FROM tab2
----
74
23
74
40
74
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3004
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 * - 10 FROM tab2
----
460
640
750

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT + col1 DIV - - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3006
SELECT + col1 / - - col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + 72 * + 94 AS col1 FROM tab2
----
6768
6768
6768

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 72 AS col1 FROM tab0 cor0
----
72
72
72

query II rowsort
SELECT - col1, col1 + + - ( + 48 ) AS col0 FROM tab0 AS cor0
----
-1
-47
-21
-27
-81
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT + col2 * col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT + col2 * col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 70 * - col2 AS col2 FROM tab0
----
3290
6930
700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 13 + col2 + col2 * + - col0 - + col2 + - + 68 * - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / - 34 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE NOT 70 >= ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE NOT 70 >= ( - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 11 + + col0 + col1 * - col1 FROM tab2 AS cor0
----
-2566
-4425
-5876

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT ALL - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - + col2 / + col2 <> - + col2 * - 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 * - + col1 + - - col1 AND + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT SUM( + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT SUM ( + col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT + - 76 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN - col2 * + col2 / col2 + col1 AND + - 65 + - col2
----
-76
-76
-76

query II rowsort
SELECT - col1, + col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 0 NOT IN ( + col2, ( + col1 ), - + 43 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col1 + - - ( col0 ) FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) + - - ( + 12 ) * + + 18 col0 FROM tab2 WHERE NULL IS NULL
----
239
256
274

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 64 + + 79 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT col2 - - - col1 - + + col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT 5 * + + 57, - col0 + + + 32 + - col1 AS col0, - 45 AS col2 FROM tab1 cor0
----
9 values hashing to 553764d6526bc742a5fd613a037a1c81

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT - + ( + + 21 ) col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3033
SELECT - + ( + + 21 ) col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3034
SELECT + - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL + COUNT( * ) col1 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3035
SELECT ALL + COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + ( + + col2 ) - col0 * - col0 FROM tab2 AS cor0 WHERE NOT + 56 + 59 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT - MAX( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 44 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - MAX ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 44 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab1 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT + + COUNT( col2 ) * 15 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + + COUNT ( col2 ) * 15 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT DISTINCT CAST( + - 83 AS SIGNED ) AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CAST ( + - 83 AS INTEGER ) AS col0 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL col2 + + col0 * - 20, + col0 * + col0 - 37 AS col0 FROM tab1 WHERE + ( - col2 ) < + 50
----
-1641
7188
-1752
8244
-924
2564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab1
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - col0 + + - 42
----

query I rowsort
SELECT + col1 * + + col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - col2 * - 77 FROM tab1
----
4543
5236
7392

query II rowsort
SELECT DISTINCT + - col1 AS col2, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT DISTINCT + 99, 24 * - col1 FROM tab0 AS cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT + + 71 * + 32 AS col2 FROM tab0 cor0
----
2272
2272
2272

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT + ( + COUNT( * ) ), ( 28 ) AS col0 FROM tab0 AS cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-3052
SELECT DISTINCT + ( + COUNT ( * ) ), ( 28 ) AS col0 FROM tab0 AS cor0
----
3
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= - 78 * + col1 * + - col1 * + - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL col1 * - ( col1 ) * CAST( - col1 AS SIGNED ) + - 15 FROM tab2 AS cor0
----
132636
300748
456518

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL col1 * - ( col1 ) * CAST ( - col1 AS INTEGER ) + - 15 FROM tab2 AS cor0
----
132636
300748
456518

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT DISTINCT + + 3 AS col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3055
SELECT DISTINCT + + 3 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE col0 + 48 > NULL
----

query I rowsort
SELECT ALL - - col1 * - col2 + 18 + - col1 * + - col1 FROM tab2 cor0
----
1446
2867
621

query II rowsort
SELECT col1, col0 * col0 AS col1 FROM tab1 AS cor0
----
14
2601
47
8281
5
7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT - MAX( ALL + 15 ) + SUM( DISTINCT col0 ) FROM tab1
----
212

skipif mysql # not compatible
query I rowsort label-3059
SELECT - MAX ( ALL + 15 ) + SUM ( DISTINCT col0 ) FROM tab1
----
212

query I rowsort
SELECT DISTINCT - - col2 + - - col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
104
133
69

query II rowsort
SELECT ALL 61 + + + col2 AS col2, col0 AS col0 FROM tab0
----
108
15
160
97
71
87

query I rowsort
SELECT DISTINCT + 25 - + col0 FROM tab1
----
-26
-60
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 86 + 49 FROM tab2
----
4005
5553
6499

query I rowsort
SELECT + 68 * - 6 + + col0 FROM tab2
----
-333
-344
-362

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT COUNT( ALL + 69 ) FROM tab0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( ALL + 69 ) FROM tab0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT - col2 + + col0 + ( - col1 ) FROM tab0
----
-113
-3
56

query I rowsort
SELECT ALL 81 + - - 46 FROM tab0
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - COUNT( + - ( ( 70 ) ) ) - + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > 7
----
0

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - COUNT ( + - ( ( 70 ) ) ) - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > 7
----
0

query I rowsort
SELECT DISTINCT + + 93 * + col1 FROM tab2 AS cor0
----
4743
6231
7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - ( + col0 ) * - + CAST( NULL AS SIGNED ) * - 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT - ( + col0 ) * - + CAST ( NULL AS INTEGER ) * - 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - + 20 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT - 42 - COUNT( * ) FROM tab0, tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3073
SELECT - 42 - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT - ( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + ( CAST( col0 AS SIGNED ) ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3075
SELECT - ( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + ( CAST ( col0 AS INTEGER ) ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab0 cor0
----
-15
-15
-15

query II rowsort
SELECT + 99 AS col1, 74 FROM tab2 AS cor0
----
99
74
99
74
99
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT DISTINCT 20 AS col2, + MIN( + col1 ) - - 4 FROM tab1 cor0
----
20
9

skipif mysql # not compatible
query II rowsort label-3079
SELECT DISTINCT 20 AS col2, + MIN ( + col1 ) - - 4 FROM tab1 cor0
----
20
9

query I rowsort
SELECT 96 * + 52 * col1 AS col0 FROM tab0
----
104832
404352
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT SUM( ALL - ( - + 89 ) ) col2 FROM tab0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT SUM ( ALL - ( - + 89 ) ) col2 FROM tab0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col0 col0 FROM tab0
----
-1218
-1358
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL MAX( ALL + + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL MAX ( ALL + + col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT + 80 * - col1 FROM tab1
----
-1120
-3760
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT COUNT( ALL - - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT COUNT ( ALL - - col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - + 36 AS col0 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 44 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + col1 * - 85, + 74 AS col1 FROM tab1 AS cor0
----
1190
74
3995
74
425
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + - col1
----

query I rowsort
SELECT DISTINCT + 43 + - ( col1 ) + + col2 FROM tab0
----
141
32
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 15 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 88 IS NOT NULL
----

query II rowsort
SELECT ALL + 64 AS col1, - col0 AS col1 FROM tab1
----
64
-51
64
-85
64
-91

query I rowsort
SELECT - col2 * + - col2 + ( col0 ) + col0 FROM tab2
----
1728
3514
621

onlyif mysql # DIV for integer division: 
query II rowsort label-3096
SELECT - col1 DIV + col0 + + - 19 + col1 * + col1 AS col2, - ( - col2 ) col1 FROM tab1 AS cor0
----
177
96
2190
68
6
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3096
SELECT - col1 / + col0 + + - 19 + col1 * + col1 AS col2, - ( - col2 ) col1 FROM tab1 AS cor0
----
177
96
2190
68
6
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - ( col1 ) ) * - - 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT ALL + col2 * - col0 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 18 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + col2 * - col0 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 + col1 col0 FROM tab2 AS cor0
----
40
56
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / - + col1 * col0 * - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 * + col0 + col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + 64 + + MIN( ALL col2 ) AS col0 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + 64 + + MIN ( ALL col2 ) AS col0 FROM tab1
----
123

query II rowsort
SELECT + col0 + + + col1 + + 58, - 1 / - 64 * 98 FROM tab1 WHERE + - 99 IS NULL
----

query II rowsort
SELECT - col2, + ( + col0 ) AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL 90 - - col0 * + + col1 FROM tab1
----
4367
515
804

query II rowsort
SELECT - 56 AS col1, col1 AS col1 FROM tab0
----
-56
1
-56
21
-56
81

query I rowsort
SELECT ALL 43 + - - 19 + - col2 * + 90 FROM tab1
----
-5248
-6058
-8578

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + - 50 - + + COUNT( * ) col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3109
SELECT + - 50 - + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT ALL + col2 * col2 * + + col2 AS col2 FROM tab2 AS cor0
----
12167
195112
64000

query II rowsort
SELECT - - col0 - col0 - col0 - + col2, col0 FROM tab1 AS cor0
----
-144
85
-147
51
-159
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT SUM( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 * + col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL 7 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT CAST( + - 5 AS SIGNED ) * - col2 * - col2 + - 85 AS col2 FROM tab1
----
-17490
-23205
-46165

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( + - 5 AS INTEGER ) * - col2 * - col2 + - 85 AS col2 FROM tab1
----
-17490
-23205
-46165

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT DISTINCT 39 * + - 25, - ( + COUNT( * ) ) + SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
-975
118

skipif mysql # not compatible
query II rowsort label-3116
SELECT DISTINCT 39 * + - 25, - ( + COUNT ( * ) ) + SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
-975
118

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT + 65 + col2 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT col0 DIV + - col1 AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3118
SELECT col0 / + - col1 AS col1 FROM tab1
----
-1
-17
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 88 * - 80 * - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT 98 DIV + col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3120
SELECT 98 / + col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + 14 * + 71 FROM tab0 WHERE NOT - col2 NOT BETWEEN - col2 AND 15
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT - 36 * COUNT( * ) * - ( - + 80 ) * + ( - COUNT( DISTINCT - col0 ) ) FROM tab0
----
25920

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT - 36 * COUNT ( * ) * - ( - + 80 ) * + ( - COUNT ( DISTINCT - col0 ) ) FROM tab0
----
25920

query I rowsort
SELECT 56 * + col1 FROM tab0 AS cor0
----
1176
4536
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL MIN( + - 1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL MIN ( + - 1 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-50

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col1 * + - 8 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col1 * col1 * - col1 + col1 FROM tab0 AS cor0
----
2
531522
9282

query I rowsort
SELECT ALL 29 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT col1 * + + col0 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-3130
SELECT ALL - 92 AS col2, MIN( ALL ( - + 1 ) ) AS col0 FROM tab2, tab0 AS cor0
----
-92
-1

skipif mysql # not compatible
query II rowsort label-3130
SELECT ALL - 92 AS col2, MIN ( ALL ( - + 1 ) ) AS col0 FROM tab2, tab0 AS cor0
----
-92
-1

query I rowsort
SELECT DISTINCT 54 * 58 + - - col2 FROM tab2 AS cor0
----
3155
3172
3190

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 26 * + 5 NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - COUNT( * ) * + - 73 AS col2 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - COUNT ( * ) * + - 73 AS col2 FROM tab2 AS cor0
----
219

query I rowsort
SELECT ALL - + col0 * col1 + + 37 + - 49 * - + col2 + - - col1 FROM tab1 AS cor0
----
-861
2508
4041

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - COUNT( * ) * - MAX( col0 ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - COUNT ( * ) * - MAX ( col0 ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT - 64 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - 64 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + + ( + col0 ) + - - 92 * ( + col2 ) + + + 74 FROM tab2 AS cor0
----
2236
3818
5485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3140
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 68 + + - col1 + + CAST( 20 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3140
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 68 + + - col1 + + CAST ( 20 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT 0 + 75 + + + COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT 0 + 75 + + + COUNT ( * ) FROM tab2
----
78

query I rowsort
SELECT 56 + + col1 FROM tab2
----
107
123
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT + CAST( + col0 AS SIGNED ) * 47 + + 35 AS col2 FROM tab0
----
4124
4594
740

skipif mysql # not compatible
query I rowsort label-3143
SELECT + CAST ( + col0 AS INTEGER ) * 47 + + 35 AS col2 FROM tab0
----
4124
4594
740

query I rowsort
SELECT DISTINCT + col2 + col1 * - ( - col2 ) FROM tab1
----
1440
3264
354

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT col1 DIV - 83 + - - col0 + + + ( col1 ) * + col0 FROM tab0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-3145
SELECT col1 / - 83 + - - col0 + + + ( col1 ) * + col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT col2 + - 57 AS col0 FROM tab2
----
-17
-34
1

query I rowsort
SELECT DISTINCT 81 * - col0 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
3107727
7857
7971615

query I rowsort
SELECT ALL - + 94 AS col1 FROM tab1 cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3149
SELECT DISTINCT col2, + 20 / + 45 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3149
SELECT DISTINCT col2, + 20 / + 45 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT 94 FROM tab0 WHERE NOT NULL IS NOT NULL
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + 13 col0 FROM tab0 AS cor0 WHERE 78 IS NULL
----

query I rowsort
SELECT col0 + + col1 + + col2 FROM tab2
----
120
181
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - 65 + + col2 col1 FROM tab2
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - col1 col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 + + 74, - col2, - 0 + - col2 )
----

query I rowsort
SELECT DISTINCT - AVG ( ALL ( - - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE col0 * - col1 IS NULL
----
NULL

query II rowsort
SELECT + - ( + + col2 ), col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT ALL ( + - 4 ) + CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-3
17
77

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL ( + - 4 ) + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-3
17
77

query I rowsort
SELECT DISTINCT - col1 + - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT col2 + + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT col2 + + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3161
SELECT DISTINCT + 98, CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3161
SELECT DISTINCT + 98, CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
98
NULL

query I rowsort
SELECT DISTINCT col1 - + - 21 AS col2 FROM tab1 AS cor0
----
26
35
68

query I rowsort
SELECT DISTINCT + - 26 * + - col1 - - col2 AS col0 FROM tab1 cor0
----
1290
189
460

query II rowsort
SELECT ALL col0, 22 FROM tab0 AS cor0
----
15
22
87
22
97
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT COUNT( * ) * - 88 col2 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3165
SELECT COUNT ( * ) * - 88 col2 FROM tab1 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - CAST( NULL AS SIGNED ) * + 62 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( NULL AS INTEGER ) * + 62 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE NOT col1 * - col0 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT MAX( DISTINCT + CAST( - ( + 42 ) AS SIGNED ) ) + + - 70 FROM tab1 cor0
----
-112

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT MAX ( DISTINCT + CAST ( - ( + 42 ) AS INTEGER ) ) + + - 70 FROM tab1 cor0
----
-112

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 55 NOT BETWEEN 42 AND 83 / + 27 + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col1, + 56 AS col0 FROM tab1 WHERE + col1 <= NULL
----

query I rowsort
SELECT col2 - - col2 * col1 * + 41 FROM tab2
----
126320
159384
48116

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT ALL - 67 DIV col1 + col0 FROM tab2
----
45
64
74

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - 67 / col1 + col0 FROM tab2
----
45
64
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 44 IS NOT NULL
----

query II rowsort
SELECT - col2 - - 15, col2 FROM tab0
----
-32
47
-84
99
5
10

query I rowsort
SELECT col1 * - 19 AS col2 FROM tab2
----
-1273
-1463
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ALL - COUNT( * ) * - + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3178
SELECT ALL + + CAST( + ( col2 ) AS DECIMAL ) FROM tab0 cor0 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + + CAST ( + ( col2 ) AS REAL ) FROM tab0 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + - ( + + 67 ) AS col2 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + 82 * + 37 FROM tab0 AS cor0
----
3034
3034
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * - col2 + + + col1 FROM tab0 cor0
----
121
2290
9802

query II rowsort
SELECT DISTINCT + - col2 * - - col0 * col1 AS col2, col0 FROM tab0 AS cor0 WHERE + 14 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab1 cor0
----
77

query II rowsort
SELECT DISTINCT ( - col0 ) * col2 * + - col2 * - 73 AS col0, col0 AS col1 FROM tab0 AS cor0
----
-2418855
15
-635100
87
-69400881
97

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 14
----

query I rowsort
SELECT DISTINCT col2 * - col0 + - - 75 FROM tab2
----
-2485
-4275
-983

query I rowsort
SELECT DISTINCT ( 88 ) * + - 26 FROM tab1
----
-2288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3189
SELECT + 50 * - ( ( COUNT( DISTINCT + - col1 ) ) ) * 88 + - ( + 0 ) DIV + 14 col0 FROM tab2
----
-13200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3189
SELECT + 50 * - ( ( COUNT ( DISTINCT + - col1 ) ) ) * 88 + - ( + 0 ) / + 14 col0 FROM tab2
----
-13200

query I rowsort
SELECT ALL - col2 * - ( col0 ) + - 33 AS col2 FROM tab1
----
4863
4982
6155

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL 90 DIV col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL 90 / col2 FROM tab0
----
0
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + - COUNT( * ) + - 41 FROM tab0 WHERE NULL > NULL
----
-41

skipif mysql # not compatible
query I rowsort label-3192
SELECT + - COUNT ( * ) + - 41 FROM tab0 WHERE NULL > NULL
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT - 9 * - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT - 9 * - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
9

query III rowsort
SELECT * FROM tab2 WHERE + 16 + - + col1 / - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - + 16 + - 57 AS col1 FROM tab0
----
-1353
-393
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ALL - 15 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - 15 / col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 53 AS col0, + col0 col0 FROM tab1
----
53
51
53
85
53
91

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + + 49 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT MAX( + ( + - 65 ) ) AS col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3200
SELECT MAX ( + ( + - 65 ) ) AS col1 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - + 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN 84 AND NULL
----

query I rowsort
SELECT DISTINCT + + 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - col1 <> + + 70 AND NOT ( - col1 ) * - - col2 IS NULL
----

query I rowsort
SELECT + 81 + + 69 * - col0 AS col1 FROM tab0 AS cor0
----
-5922
-6612
-954

query I rowsort
SELECT + 86 + col0 * col0 AS col1 FROM tab2 AS cor0
----
2202
4182
5711

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col0 * + + 70
----

query I rowsort
SELECT 48 * ( col2 ) FROM tab0
----
2256
4752
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 AS col1, - 29 col1 FROM tab1
----
99
-29
99
-29
99
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT MAX( - - col1 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3210
SELECT MAX ( - - col1 ) col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT MAX( ALL ( - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3211
SELECT MAX ( ALL ( - col2 ) ) FROM tab1
----
-59

query II rowsort
SELECT + 2, col2 FROM tab0
----
2
10
2
47
2
99

query I rowsort
SELECT DISTINCT - col2 * - 5 FROM tab2
----
115
200
290

query I rowsort
SELECT + 5 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3215
SELECT - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT SUM( + - 80 ) AS col0 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT SUM ( + - 80 ) AS col0 FROM tab0 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL + MAX( 41 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + MAX ( 41 ) FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - COUNT( * ) * + MAX( DISTINCT + 47 ) col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3218
SELECT - COUNT ( * ) * + MAX ( DISTINCT + 47 ) col1 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT DISTINCT - 35 + + col0 FROM tab1
----
16
50
56

query I rowsort
SELECT col0 * col2 + 33 FROM tab0
----
738
903
9636

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) = col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 + col1 ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col0 + col1 ) BETWEEN 98 * + col0 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col0 + col1 ) BETWEEN 98 * + col0 AND ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT + col0 / CAST( NULL AS SIGNED ) + + col2 / 30 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + col0 / CAST ( NULL AS INTEGER ) + + col2 / 30 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( 32 + - col2 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3228
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT COUNT( * ) + + MAX( col1 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3230
SELECT COUNT ( * ) + + MAX ( col1 ) FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT SUM( ALL col1 ) + + 38 AS col0 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-3231
SELECT SUM ( ALL col1 ) + + 38 AS col0 FROM tab0
----
141

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 / + 26 - ( col1 ) NOT BETWEEN ( 9 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL + 96 * + COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + 96 * + COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT 79 + - 64 AS col1 FROM tab1
----
15
15
15

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 + - 89 )
----

query I rowsort
SELECT - col2 * 76 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT COUNT( * ) * + ( COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0
----
9

query I rowsort
SELECT - 48 - 36 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL 59 + COUNT( * ) AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL 59 + COUNT ( * ) AS col0 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT COUNT( * ) - + 49 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-3240
SELECT COUNT ( * ) - + 49 FROM tab0
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - ( + col0 ) ) BETWEEN NULL AND col2 * 8 + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 84 FROM tab2
----
130
148
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NOT NULL BETWEEN ( 55 + - ( + col0 + col2 ) ) AND - 65 + col2
----

query I rowsort
SELECT 2 * col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3246
SELECT * FROM tab1 WHERE ( + ( - CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT * FROM tab1 WHERE ( + ( - CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

query I rowsort
SELECT 18 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( ( - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col1 + col0 ) IS NOT NULL
----

query I rowsort
SELECT 59 * 68 AS col2 FROM tab1 AS cor0
----
4012
4012
4012

query I rowsort
SELECT col1 * - 49 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - MAX( 48 ) * COUNT( * ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3252
SELECT - MAX ( 48 ) * COUNT ( * ) FROM tab0 AS cor0
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT 75 - col2 DIV ( col1 + col0 ) FROM tab0 AS cor0
----
74
75
75

skipif mysql # not compatible
query I rowsort label-3253
SELECT 75 - col2 / ( col1 + col0 ) FROM tab0 AS cor0
----
74
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT 15 FROM tab1 WHERE NULL BETWEEN col2 AND col0 * + CAST( 18 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3254
SELECT 15 FROM tab1 WHERE NULL BETWEEN col2 AND col0 * + CAST ( 18 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 + + 24 FROM tab0
----
123
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + MAX( DISTINCT 89 ) AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3256
SELECT + MAX ( DISTINCT 89 ) AS col0 FROM tab0 AS cor0
----
89

query I rowsort
SELECT + + 36 * 34 FROM tab1 AS cor0
----
1224
1224
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL MIN( DISTINCT ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL MIN ( DISTINCT ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + col2 * 71 FROM tab1 AS cor0
----
4189
4828
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * + col1 col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

query I rowsort
SELECT + col1 * - 48 AS col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) <= ( + col1 )
----

query I rowsort
SELECT col1 + - col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3266
SELECT + 53 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
53
53
53

skipif mysql # not compatible
query I rowsort label-3266
SELECT + 53 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
53
53
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT SUM( + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT SUM ( + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT + MIN( ALL + CAST( - col1 AS SIGNED ) ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3269
SELECT + MIN ( ALL + CAST ( - col1 AS INTEGER ) ) col1 FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT DISTINCT - 92 * + COUNT( * ) AS col2 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT - 92 * + COUNT ( * ) AS col2 FROM tab1
----
-276

query I rowsort
SELECT + 86 FROM tab2 cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT MIN( ALL 15 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT MIN ( ALL 15 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + col1 * - - 39 FROM tab2
----
1989
2613
3003

query I rowsort
SELECT 83 FROM tab0 WHERE NOT ( col2 * col1 NOT BETWEEN NULL AND 93 / ( + col1 ) - + col1 )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3277
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL + - col1 AS col0, - 46 * + col0 * + col0 FROM tab2 AS cor0
----
-51
-97336
-67
-258750
-77
-188416

query I rowsort
SELECT DISTINCT - + 61 + col1 - - ( col1 ) FROM tab1 AS cor0
----
-33
-51
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3280
SELECT DISTINCT COUNT( + col2 ) FROM tab0 AS cor0 WHERE - CAST( + col2 AS DECIMAL ) + col1 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 AS cor0 WHERE - CAST ( + col2 AS REAL ) + col1 <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 * - + col2 + 78 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 * - + col2 + 78 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN ( - col0 ) AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 88 FROM tab2 AS cor0 WHERE - col1 / - col0 NOT IN ( + col1 - col2 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT col0 * col2 + + col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - col1 * col1 )
----

skipif mysql # not compatible
query I rowsort label-3284
SELECT col0 * col2 + + col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - col1 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT DISTINCT + 25 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + 25 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NULL BETWEEN NULL AND + 56
----

query I rowsort
SELECT ALL col1 * col1 FROM tab2 WHERE + col2 NOT IN ( - - col1 * + col0 + - col0 * - col1 )
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT DISTINCT 24 + COUNT( ALL 0 ) * - + 99 - CAST( COUNT( ALL col2 ) AS SIGNED ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT 24 + COUNT ( ALL 0 ) * - + 99 - CAST ( COUNT ( ALL col2 ) AS INTEGER ) FROM tab1
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT ALL - COUNT( ALL - - 17 ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - COUNT ( ALL - - 17 ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT DISTINCT - col2 + 85 - - col0 + + + col0 DIV 27 FROM tab0
----
165
53
86

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - col2 + 85 - - col0 + + + col0 / 27 FROM tab0
----
165
53
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT DISTINCT 96 * - MIN( 50 ) AS col0 FROM tab2
----
-4800

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT 96 * - MIN ( 50 ) AS col0 FROM tab2
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COUNT( * ) + - + COUNT( * ) * - 21 + + COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3293
SELECT COUNT ( * ) + - + COUNT ( * ) * - 21 + + COUNT ( * ) FROM tab2
----
69

query II rowsort
SELECT ALL - 64 - + + col0 AS col0, + col1 + - 15 - + 44 * col0 AS col1 FROM tab2
----
-110
-1988
-128
-2754
-139
-3248

query I rowsort
SELECT ALL + - col0 * - 97 * - col1 AS col1 FROM tab2 AS cor0
----
-227562
-478016
-487425

query I rowsort
SELECT col0 * col0 FROM tab1 AS cor0 WHERE ( 1 - + col1 ) BETWEEN NULL AND col1 * + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + col2 * - col1 < col1 * + col1 )
----

query I rowsort
SELECT ALL 95 * 99 FROM tab1 cor0
----
9405
9405
9405

query I rowsort
SELECT col1 * + 63 FROM tab0
----
1323
5103
63

query II rowsort
SELECT - col0, - 88 AS col2 FROM tab0
----
-15
-88
-87
-88
-97
-88

query I rowsort
SELECT - 9 * + 86 * col1 FROM tab1
----
-10836
-36378
-3870

query I rowsort
SELECT ALL + 4 + 56 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT SUM( DISTINCT - 52 ) - + 21 + - MAX( - - col1 ) * 5 FROM tab1
----
-308

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT SUM ( DISTINCT - 52 ) - + 21 + - MAX ( - - col1 ) * 5 FROM tab1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - COUNT( * ) + - AVG ( ALL 83 ) FROM tab1 WHERE NOT NULL IN ( 14 * ( 84 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - COUNT ( * ) + - AVG ( ALL 83 ) FROM tab1 WHERE NOT NULL IN ( 14 * ( 84 ) )
----
NULL

query I rowsort
SELECT + 56 * - - col2 - + + col0 AS col0 FROM tab2
----
1242
2176
3173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 - + + col0 col1 FROM tab0
----
-187
-2224
-9898

query I rowsort
SELECT ALL col1 - - col2 * col0 + + col2 AS col1 FROM tab0
----
833
901
9703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT DISTINCT col2 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3309
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( + CAST( + 62 AS SIGNED ) AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3309
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( + CAST ( + 62 AS INTEGER ) AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT COUNT( * ) * + - COUNT( - col1 ) * + 74 AS col1 FROM tab0 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT COUNT ( * ) * + - COUNT ( - col1 ) * + 74 AS col1 FROM tab0 AS cor0
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3311
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col2 * + 41 FROM tab0 AS cor0
----
1927
4059
410

query I rowsort
SELECT ALL + ( - - col1 ) * - - col2 * + col1 FROM tab2 AS cor0
----
237160
260362
59823

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + - 72 * - - col1 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3315
SELECT + CAST( NULL AS SIGNED ) * + MAX( + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( + col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3316
SELECT ALL - 31 * - col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
1581
NULL
2635
NULL
2821
NULL

skipif mysql # not compatible
query II rowsort label-3316
SELECT ALL - 31 * - col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
1581
NULL
2635
NULL
2821
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, + 60 AS col2 FROM tab1
----
59
60
68
60
96
60

query II rowsort
SELECT DISTINCT col2 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL 72 + - CAST( - 28 AS SIGNED ) col0 FROM tab2 AS cor0
----
100
100
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3319
SELECT ALL 72 + - CAST ( - 28 AS INTEGER ) col0 FROM tab2 AS cor0
----
100
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3320
SELECT DISTINCT ( - + col1 ) AS col0, + 95 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT ( - + col1 ) AS col0, + 95 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL SUM( DISTINCT ( - 62 ) ) FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL SUM ( DISTINCT ( - 62 ) ) FROM tab1 cor0
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3322
SELECT DISTINCT col2 * - CAST( + col1 AS DECIMAL ) + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT col2 * - CAST ( + col1 AS REAL ) + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT - col0 * - col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
705
870
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 50 FROM tab1 AS cor0 WHERE NOT 61 IS NULL
----
-50

query I rowsort
SELECT DISTINCT AVG ( ( + col1 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL CAST( + COUNT( ALL ( - + ( + col1 ) ) ) AS SIGNED ) + 59 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL CAST ( + COUNT ( ALL ( - + ( + col1 ) ) ) AS INTEGER ) + 59 FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT - MIN( col1 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - MIN ( col1 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL - 7 + + col2 + - + 72 + + col2 * + col1 - - - col0 FROM tab0 AS cor0
----
22
3760
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3331
SELECT DISTINCT col0 * - col2 * 23 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT col0 * - col2 * 23 + - + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT col0 + - + col0 + + - CAST( - col1 AS SIGNED ) + + - ( + ( - col0 ) ) * + col1 FROM tab1 WHERE 2 IS NOT NULL
----
430
4324
728

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT col0 + - + col0 + + - CAST ( - col1 AS INTEGER ) + + - ( + ( - col0 ) ) * + col1 FROM tab1 WHERE 2 IS NOT NULL
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT 6 - + COUNT( * ) + + 43 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT 6 - + COUNT ( * ) + + 43 FROM tab0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col0 * 46 col1 FROM tab2
----
51
2116
67
3450
77
2944

query I rowsort
SELECT - col2 * + - col1 - - col0 - + 22 AS col0 FROM tab1 AS cor0
----
1373
3265
358

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 28 * - + 6 NOT BETWEEN - 97 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 57 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
59
68
96

query I rowsort
SELECT DISTINCT - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3340
SELECT DISTINCT - CAST( 51 AS SIGNED ) AS col1, + col1 AS col0 FROM tab0 AS cor0
----
-51
1
-51
21
-51
81

skipif mysql # not compatible
query II rowsort label-3340
SELECT DISTINCT - CAST ( 51 AS INTEGER ) AS col1, + col1 AS col0 FROM tab0 AS cor0
----
-51
1
-51
21
-51
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = - 73
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 AND 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT DISTINCT - 79 - - 91 + CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col0 / col1 + - 56 / - - col0
----

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - 79 - - 91 + CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col0 / col1 + - 56 / - - col0
----

query I rowsort
SELECT DISTINCT - - ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT - COUNT( DISTINCT + + col2 ) * COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3346
SELECT - COUNT ( DISTINCT + + col2 ) * COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT - 65 * - col0 FROM tab2
----
2990
4160
4875

query I rowsort
SELECT DISTINCT - col2 + + - col1 + + ( + - 53 ) FROM tab2 WHERE NOT col0 NOT IN ( + col1 * + 39 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT + + col2 DIV col0 + + + col0 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + + col2 / col0 + + + col0 FROM tab0 AS cor0
----
18
87
98

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL COUNT( * ) + ( ( COUNT( * ) ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL COUNT ( * ) + ( ( COUNT ( * ) ) ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - MIN( ALL + col0 ) * COUNT( * ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3352
SELECT - MIN ( ALL + col0 ) * COUNT ( * ) FROM tab2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) / - col1 * + col1 - - col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) / - col1 * + col1 - - col2 AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 98, col1 AS col1 FROM tab0 cor0
----
98
1
98
21
98
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col0 + + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - ( col1 ) FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3357
SELECT 26 DIV + - COUNT( * ) + + - COUNT( * ) + - 48 - + + 83 + + - 54 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-3357
SELECT 26 / + - COUNT ( * ) + + - COUNT ( * ) + - 48 - + + 83 + + - 54 FROM tab0
----
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) - col0 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3359
SELECT * FROM tab2 WHERE col1 + 10 NOT BETWEEN + CAST( - col2 AS SIGNED ) AND + - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3359
SELECT * FROM tab2 WHERE col1 + 10 NOT BETWEEN + CAST ( - col2 AS INTEGER ) AND + - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 37 + + 57 AS col2 FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT + MAX( + col2 ), 34 * - COUNT( * ) col2 FROM tab0 AS cor0
----
99
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3361
SELECT + MAX ( + col2 ), 34 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
99
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT - CAST( + + 20 AS SIGNED ) AS col2, + 74 + col1 col0 FROM tab0 AS cor0
----
-20
155
-20
75
-20
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3362
SELECT - CAST ( + + 20 AS INTEGER ) AS col2, + 74 + col1 col0 FROM tab0 AS cor0
----
-20
155
-20
75
-20
95

query I rowsort
SELECT ( 49 ) FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 38 * + + 2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 25 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
115600
230400
87025

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT - 46 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
-46
-3

skipif mysql # not compatible
query II rowsort label-3368
SELECT - 46 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
-46
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 18 ) < - col2 * + + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 24, + col1 AS col2 FROM tab1 AS cor0
----
-24
14
-24
47
-24
5

query II rowsort
SELECT col0 AS col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT col1 * - 3 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT col0 * + - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 0 * 51 )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 / - col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 - - col2 AS col1 FROM tab0 cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3378
SELECT DISTINCT - 53, - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
-53
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3378
SELECT DISTINCT - 53, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
-53
NULL

query II rowsort
SELECT DISTINCT col0, col1 * + + col2 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + col1 * + col0 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT col1 DIV - 94 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3382
SELECT col1 / - 94 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + - + col0 * + col1 * + 65 FROM tab2 AS cor0
----
-152513
-320360
-326683

query I rowsort
SELECT - + 65 FROM tab2 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT CAST( NULL AS SIGNED ) / - col2 * + + ( + col0 ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT CAST ( NULL AS INTEGER ) / - col2 * + + ( + col0 ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + - 94 - 39 * - COUNT( * ) AS col2 FROM tab0 WHERE + - col1 <> 10
----
23

skipif mysql # not compatible
query I rowsort label-3386
SELECT + - 94 - 39 * - COUNT ( * ) AS col2 FROM tab0 WHERE + - col1 <> 10
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + COUNT( * ) - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT + 33 - + + 73 FROM tab0 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 - + col1, 13 col2 FROM tab2 AS cor0
----
-30
13
-46
13
-56
13

query I rowsort
SELECT - 7 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query II rowsort
SELECT + col1, - col1 AS col0 FROM tab0 cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT DISTINCT + + 23 AS col2, + ( COUNT( + 56 ) ) AS col2 FROM tab1 AS cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT + + 23 AS col2, + ( COUNT ( + 56 ) ) AS col2 FROM tab1 AS cor0
----
23
3

query II rowsort
SELECT + ( - col2 ) AS col1, - 9 + + col2 + + 37 + + col1 FROM tab2
----
-23
102
-40
145
-58
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL - MAX( ALL col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - MAX ( ALL col1 ) AS col2 FROM tab0
----
-81

query I rowsort
SELECT - col0 + + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT + col1 * - - col0 * + 71 FROM tab0 AS cor0
----
129717
6887
86265

query II rowsort
SELECT ALL - ( + 29 ) AS col2, col1 + 47 AS col1 FROM tab0 AS cor0
----
-29
128
-29
48
-29
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT + MAX( ( + + ( + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + MAX ( ( + + ( + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT col0 * + col1 * + + 16 AS col2 FROM tab0 AS cor0
----
1552
19440
29232

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL COUNT( + 80 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3401
SELECT ALL COUNT ( + 80 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 50 + - col2 FROM tab2 cor0
----
-8
10
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL MAX( - ( + - col0 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL MAX ( - ( + - col0 ) ) AS col0 FROM tab1
----
91

query II rowsort
SELECT DISTINCT 35, - col0 AS col1 FROM tab1
----
35
-51
35
-85
35
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT + 84 * + CAST( + - 55 AS SIGNED ) * - col0 + - 74 FROM tab1 AS cor0
----
235546
392626
420346

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT + 84 * + CAST ( + - 55 AS INTEGER ) * - col0 + - 74 FROM tab1 AS cor0
----
235546
392626
420346

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) <> ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query II rowsort
SELECT DISTINCT + 83 * + col1 AS col0, - col0 FROM tab1 AS cor0
----
1162
-51
3901
-91
415
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL - - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + + col1 * - + col0 * - - ( + + 26 ) + ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab2 AS cor0 WHERE NOT 15 * + col2 NOT IN ( - col2 )
----

query I rowsort
SELECT + col2 + - - col2 * - + 76 FROM tab1 cor0
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3414
SELECT - + CAST( NULL AS DECIMAL ) + SUM( ALL + 18 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT - + CAST ( NULL AS REAL ) + SUM ( ALL + 18 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT - col2 AS col1 FROM tab2 WHERE + CAST( + 86 AS SIGNED ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3415
SELECT - col2 AS col1 FROM tab2 WHERE + CAST ( + 86 AS INTEGER ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 + 60 FROM tab0
----
-27
-37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - COUNT( * ) + - + 70 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-3417
SELECT - COUNT ( * ) + - + 70 FROM tab2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT CAST( - + COUNT( * ) AS SIGNED ) * + 17 + + COUNT( * ) AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-3418
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 17 + + COUNT ( * ) AS col1 FROM tab0
----
-48

query I rowsort
SELECT ALL 22 + + col0 AS col0 FROM tab2
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT ( - 29 ) - - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT ( - 29 ) - - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3421
SELECT DISTINCT - col2 - + CAST( NULL AS DECIMAL ) - col1 + - - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT - col2 - + CAST ( NULL AS REAL ) - col1 + - - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + MIN( DISTINCT - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-3422
SELECT + MIN ( DISTINCT - 41 ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col1 FROM tab1 cor0
----
44
44
44

query II rowsort
SELECT ALL - col1, + col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3426
SELECT ALL * FROM tab2 AS cor0 WHERE ( 58 + - col1 ) NOT IN ( + CAST( - - 35 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3426
SELECT ALL * FROM tab2 AS cor0 WHERE ( 58 + - col1 ) NOT IN ( + CAST ( - - 35 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 39 FROM tab0 cor0 WHERE NOT col2 * + col0 + - ( - col1 ) + - col0 IS NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3428
SELECT - 58 AS col0, SUM( ALL + - col0 ) AS col0 FROM tab1
----
-58
-227

skipif mysql # not compatible
query II rowsort label-3428
SELECT - 58 AS col0, SUM ( ALL + - col0 ) AS col0 FROM tab1
----
-58
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL CAST( + ( col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL CAST ( + ( col1 ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3430
SELECT CAST( NULL AS DECIMAL ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3430
SELECT CAST ( NULL AS REAL ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 39 < + 98
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT - COUNT( * ), - MIN( ALL - 29 ) AS col1 FROM tab2 AS cor0
----
-3
29

skipif mysql # not compatible
query II rowsort label-3432
SELECT - COUNT ( * ), - MIN ( ALL - 29 ) AS col1 FROM tab2 AS cor0
----
-3
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 72 = NULL
----

query I rowsort
SELECT + + 27 + + + 56 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT - + 12 + 4 + ( - + col1 ) + + col1 + - + ( ( + - 80 ) ) FROM tab0 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + + MIN( DISTINCT - - ( - - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * + + col2 * 32 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-3436
SELECT + + MIN ( DISTINCT - - ( - - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * + + col2 * 32 IS NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT DISTINCT - SUM( - 6 ) AS col2, COUNT( ALL - col1 ) + 32 FROM tab1
----
18
35

skipif mysql # not compatible
query II rowsort label-3438
SELECT DISTINCT - SUM ( - 6 ) AS col2, COUNT ( ALL - col1 ) + 32 FROM tab1
----
18
35

query II rowsort
SELECT ALL ( - col1 ), - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT - col0 * + col1 * col0 - - col2 AS col2 FROM tab0 AS cor0
----
-158939
-18178
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + MAX( + + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( + + col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL - - COUNT( + - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - - COUNT ( + - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + 91 * - COUNT( * ) - - - ( 42 ) col2 FROM tab1 AS cor0
----
-315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT + 91 * - COUNT ( * ) - - - ( 42 ) col2 FROM tab1 AS cor0
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT 55 + - - 67 * 58 * + - ( MAX( - col0 ) ) FROM tab2
----
178811

skipif mysql # not compatible
query I rowsort label-3444
SELECT 55 + - - 67 * 58 * + - ( MAX ( - col0 ) ) FROM tab2
----
178811

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 72 + ( + - col1 )
----

query I rowsort
SELECT ALL + + col0 * - + 77 AS col0 FROM tab2 AS cor0
----
-3542
-4928
-5775

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - col1 >= - 7 * - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL + - COUNT( col1 ) - - 14 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + - COUNT ( col1 ) - - 14 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL - 92 * - + SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-6072

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - 92 * - + SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-6072

query I rowsort
SELECT - col0 * - col1 + col0 - - col0 * - col1 + + col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( - col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + SUM( 35 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT + SUM ( 35 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + - 59 ) FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3454
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT DISTINCT + - col0 DIV - - col0 + + 17 + col2 - 56 * + + col1 AS col2 FROM tab2 AS cor0
----
-2817
-3678
-4256

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT + - col0 / - - col0 + + 17 + col2 - 56 * + + col1 AS col2 FROM tab2 AS cor0
----
-2817
-3678
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL 72 * + - COUNT( * ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL 72 * + - COUNT ( * ) FROM tab1
----
-216

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 31 * - + 79 AS col0 FROM tab0
----
-2449
-2449
-2449

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3459
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 22 ) * + CAST( + - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3459
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + 22 ) * + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT + 33 * 81 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to f015b3e3f4c6fb5cfdb1e52fbb310bcb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT + CAST( NULL AS SIGNED ) * 21 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT + CAST ( NULL AS INTEGER ) * 21 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3463
SELECT + + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) + - + 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3463
SELECT + + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) + - + 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3464
SELECT + col1, - 53 DIV + col2 + + col2 AS col0 FROM tab2
----
51
21
67
58
77
39

skipif mysql # not compatible
query II rowsort label-3464
SELECT + col1, - 53 / + col2 + + col2 AS col0 FROM tab2
----
51
21
67
58
77
39

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - 16 * + - col2 - + + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL - - CAST( + AVG ( DISTINCT - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + col1 + - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL - - CAST ( + AVG ( DISTINCT - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + col1 + - - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 40 + col2 FROM tab1 AS cor0
----
19
28
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3469
SELECT * FROM tab0 AS cor0 WHERE + 25 * ( - CAST( - - col0 AS SIGNED ) ) * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3469
SELECT * FROM tab0 AS cor0 WHERE + 25 * ( - CAST ( - - col0 AS INTEGER ) ) * - - col1 IS NULL
----

query II rowsort
SELECT ALL 36, + col1 * - + ( col2 ) AS col2 FROM tab2 AS cor0
----
36
-1173
36
-3080
36
-3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + col2 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 62 <> + - col1 + + col2 * - col0 / + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + col1 + + - col2 * + col2 AS col0 FROM tab0
----
-2128
-79
-9800

query I rowsort
SELECT ALL + ( + + ( - 72 ) ) AS col2 FROM tab0
----
-72
-72
-72

query II rowsort
SELECT DISTINCT + 7, 10 - - 11 AS col0 FROM tab2 cor0
----
7
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + + 77 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 * - 47 * ( + col0 ) AS col1 FROM tab1 cor0
----
19975
201019
33558

query I rowsort
SELECT + col0 * + + col2 + + 51 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 71 + ( + - col2 ) FROM tab2 AS cor0
----
13
31
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3481
SELECT COUNT( * ) DIV + + COUNT( * ) AS col1, ( COUNT( * ) ) - + COUNT( * ) + COUNT( * ) FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-3481
SELECT COUNT ( * ) / + + COUNT ( * ) AS col1, ( COUNT ( * ) ) - + COUNT ( * ) + COUNT ( * ) FROM tab1
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT DISTINCT - 80 - - - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT DISTINCT - 80 - - - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT + 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL - - ( - COUNT( * ) ) AS col0 FROM tab2 WHERE - 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - - ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE - 68 IS NULL
----
0

query II rowsort
SELECT ALL - col0 - 14, col1 AS col2 FROM tab1
----
-105
47
-65
14
-99
5

query I rowsort
SELECT ALL - 95 FROM tab0 WHERE NOT ( - col2 * + - 37 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3487
SELECT + + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - COUNT( * ) * - + 43 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT - COUNT ( * ) * - + 43 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * col0 IS NULL
----

query I rowsort
SELECT 37 FROM tab0 AS cor0 WHERE 0 + - 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 col0 FROM tab2 AS cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * 13 - - col0 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3492
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * 13 - - col0 >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 27 IS NOT NULL
----

query I rowsort
SELECT col1 * - + 28 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT ( + col2 ) * - - col1 + + 94 FROM tab0
----
193
304
3901

query I rowsort
SELECT DISTINCT + col2 * + - 18 * + - 54 AS col1 FROM tab2
----
22356
38880
56376

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <= - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT 30 * + - COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT 30 * + - COUNT ( * ) FROM tab2
----
-90

query I rowsort
SELECT ALL 69 * + 77 AS col1 FROM tab2
----
5313
5313
5313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 AS col1, - col1 col2 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
53
-51
53
-67
53
-77

query I rowsort
SELECT ALL - 74 * + 49 AS col2 FROM tab1 AS cor0 WHERE col1 + - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, + col1 col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + SUM( - - col1 ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3503
SELECT + SUM ( - - col1 ) AS col0 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT COUNT( - 1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3504
SELECT COUNT ( - 1 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT DISTINCT col2 * - + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT col2 * - + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3506
SELECT * FROM tab0 WHERE NOT + CAST( + ( col0 ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3506
SELECT * FROM tab0 WHERE NOT + CAST ( + ( col0 ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT - + col1 + + 20 * col0 DIV + col2 FROM tab2 AS cor0
----
-11
-42
-45

skipif mysql # not compatible
query I rowsort label-3507
SELECT - + col1 + + 20 * col0 / + col2 FROM tab2 AS cor0
----
-11
-42
-45

query II rowsort
SELECT DISTINCT - + ( - col0 ) AS col0, 91 + ( ( 18 ) ) FROM tab1 AS cor0
----
51
109
85
109
91
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT - MAX( + ( + + 54 ) ) DIV - 17 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3509
SELECT - MAX ( + ( + + 54 ) ) / - 17 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + - + col0 < - 66
----

query I rowsort
SELECT col2 + - 55 AS col1 FROM tab2 AS cor0
----
-15
-32
3

query I rowsort
SELECT DISTINCT - col0 + - - 43 FROM tab2 AS cor0
----
-21
-3
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + 17 ) + - - ( + col1 ) FROM tab0
----
18
38
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 33 <> - col0
----

query I rowsort
SELECT ALL 60 - + + col1 FROM tab2
----
-17
-7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT - COUNT( - 91 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3517
SELECT - COUNT ( - 91 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL + 45 + + col1 + col2 * col0 FROM tab1
----
4955
5065
6280

query I rowsort
SELECT ALL + + 71 AS col1 FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT ALL col0 + - ( 58 ) AS col2 FROM tab1
----
-7
27
33

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2, + ( 68 ), - - ( col0 ) * col1 * col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT + - 50 AS col0, + MIN( ALL - - col0 ) FROM tab1 AS cor0
----
-50
51

skipif mysql # not compatible
query II rowsort label-3522
SELECT + - 50 AS col0, + MIN ( ALL - - col0 ) FROM tab1 AS cor0
----
-50
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT - SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT + 75, col2 AS col0 FROM tab0 AS cor0
----
75
10
75
47
75
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT + - CAST( AVG ( ALL - 93 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3525
SELECT + - CAST ( AVG ( ALL - 93 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3526
SELECT ALL col0, - col2 - + - 83 + col2 * + col1 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3526
SELECT ALL col0, - col2 - + - 83 + col2 * + col1 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT - - 0, 36 * + - col0 * 62 * + - col1 AS col0 FROM tab1 AS cor0
----
0
1593648
0
948600
0
9546264

query II rowsort
SELECT ALL + - ( 21 ), - col2 * + ( - - col0 ) - + col1 * col0 AS col1 FROM tab1 cor0
----
-21
-10465
-21
-5440
-21
-5610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT DISTINCT - - col2 + - col2 + col0 + + 70 * + col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
3305
7027
787

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT - - col2 + - col2 + col0 + + 70 * + col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3305
7027
787

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT 75 DIV 52 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3530
SELECT 75 / 52 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - 89 * + col2 AS col2 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3532
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3532
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT COUNT( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT COUNT ( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - - COUNT( * ) * ( - 75 ) * + COUNT( * ) FROM tab2 cor0
----
-675

skipif mysql # not compatible
query I rowsort label-3534
SELECT - - COUNT ( * ) * ( - 75 ) * + COUNT ( * ) FROM tab2 cor0
----
-675

query I rowsort
SELECT DISTINCT - + 38 AS col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT DISTINCT - col1 + - + 17 AS col2 FROM tab2
----
-68
-84
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT SUM( - + 72 ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-3537
SELECT SUM ( - + 72 ) FROM tab1
----
-216

query I rowsort
SELECT ALL + col1 * + + ( col1 ) AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL 98 * + + COUNT( * ) AS col0 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL 98 * + + COUNT ( * ) AS col0 FROM tab2
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT DISTINCT + col2 DIV - col2 col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3540
SELECT DISTINCT + col2 / - col2 col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col1 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col0 col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + col2 * + 82 * + 23 AS col1 FROM tab1 AS cor0
----
111274
128248
181056

query I rowsort
SELECT ALL 80 + col0 FROM tab0 AS cor0
----
167
177
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL COUNT( * ) * 13 + + 46 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL COUNT ( * ) * 13 + + 46 FROM tab2
----
85

query I rowsort
SELECT - col2 * - - 6 + + col1 AS col1 FROM tab2
----
-163
-281
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT col1 + - col2 DIV - 6 col2 FROM tab0
----
17
22
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3547
SELECT col1 + - col2 / - 6 col2 FROM tab0
----
17
22
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT + 56 - + + 8 * SUM( ALL - col2 ) AS col2 FROM tab0
----
1304

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT + 56 - + + 8 * SUM ( ALL - col2 ) AS col2 FROM tab0
----
1304

query I rowsort
SELECT ALL + col2 * + col1 + - 93 AS col0 FROM tab1
----
1251
202
3103

query I rowsort
SELECT - col2 * + - ( + + 89 ) + + col1 FROM tab2
----
2098
3637
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT 35 * - - 51 + COUNT( * ) + + + SUM( + col0 ) AS col0 FROM tab2
----
1973

skipif mysql # not compatible
query I rowsort label-3551
SELECT 35 * - - 51 + COUNT ( * ) + + + SUM ( + col0 ) AS col0 FROM tab2
----
1973

query I rowsort
SELECT - col1 + - col0 + - col1 FROM tab1 WHERE 38 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 74 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 * - + 1 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3555
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = - 96 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3555
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = - 96 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT MIN( ALL - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3556
SELECT MIN ( ALL - + col0 ) FROM tab2 AS cor0
----
-75

query II rowsort
SELECT DISTINCT 91 AS col2, + 90 AS col0 FROM tab2
----
91
90

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 79 ) IS NOT NULL
----

query II rowsort
SELECT ALL 54 AS col1, col2 * + + col1 AS col2 FROM tab2
----
54
1173
54
3080
54
3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3560
SELECT DISTINCT - CAST( NULL AS SIGNED ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3561
SELECT ALL - 77 + + 37 - - CAST( NULL AS DECIMAL ) + 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - 77 + + 37 - - CAST ( NULL AS REAL ) + 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col1 * - 19 FROM tab0
----
-1524
-312
78

query I rowsort
SELECT - col0 - col2 AS col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + - - ( COUNT( * ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3564
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - - ( COUNT ( * ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT 79 + - - col0 + + col1 * - 37 * col2 AS col0 FROM tab1
----
-10751
-118082
-49598

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL MAX( - 82 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-82

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL MAX ( - 82 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-82

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT 19 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT + + 72 + CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT + + 72 + CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 1 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + col1 * + 95 * - col2 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT ALL col2 DIV + col2 + - col0 + - ( - + col2 ) + - - 19 FROM tab2 AS cor0
----
-3
-4
3

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL col2 / + col2 + - col0 + - ( - + col2 ) + - - 19 FROM tab2 AS cor0
----
-3
-4
3

query I rowsort
SELECT ALL - ( - + col1 ) * col2 + + col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT ALL + 44 + 51 DIV 22 DIV - COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL + 44 + 51 / 22 / - COUNT ( * ) FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT col1 + 53 * + col0 FROM tab2
----
2489
3469
4042

query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab2 WHERE - col1 >= 58
----

query I rowsort
SELECT ALL - 27 + + ( + 94 ) * col0 + + ( + ( - 95 ) ) FROM tab1
----
4672
7868
8432

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + COUNT( * ) - - 35 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3577
SELECT + COUNT ( * ) - - 35 AS col2 FROM tab0
----
38

query I rowsort
SELECT col2 - - 26 FROM tab2
----
49
66
84

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 * col0 * + + ( + col2 ) + col1 + + 46 * - 42 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT 74 - - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3580
SELECT 74 - - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
71

query I rowsort
SELECT - ( col0 ) - + 2 FROM tab1 AS cor0
----
-53
-87
-93

query I rowsort
SELECT DISTINCT + col0 * + + 69 FROM tab1 AS cor0
----
3519
5865
6279

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT 35 IS NULL
----
23
40
58

query II rowsort
SELECT + 65, col2 * + col0 * col1 AS col2 FROM tab2 cor0
----
65
197120
65
291450
65
53958

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT IN ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - + SUM( + - 40 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-3586
SELECT - + SUM ( + - 40 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL COUNT( ALL + + 22 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3588
SELECT ALL COUNT ( ALL + + 22 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - + ( - + 23 ) FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + MAX( DISTINCT - col0 ) * + MIN( + ( + 98 ) ) AS col2 FROM tab0 AS cor0
----
-1470

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + MAX ( DISTINCT - col0 ) * + MIN ( + ( + 98 ) ) AS col2 FROM tab0 AS cor0
----
-1470

query I rowsort
SELECT ALL + ( ( - col0 ) ) FROM tab0 cor0 WHERE NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT - 48 * + COUNT( * ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - 48 * + COUNT ( * ) FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 30 NOT BETWEEN - col2 * + col2 AND - 91 / - - ( - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 30 NOT BETWEEN - col2 * + col2 AND - 91 / - - ( - + col2 )
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT col0 * - col2 * col1 IS NOT NULL
----

query II rowsort
SELECT col1, + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
51
47
91
5
85

query I rowsort
SELECT + 26 + + col0 + 42 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 20 * - col0 AS col0 FROM tab0
----
-1740
-1940
-300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 50 ) col0 FROM tab2 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN 48 + - col0 / 84 - + col1 / - 50 - + col0 AND col1 - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3601
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 50 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 50 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT - col2 col0 FROM tab0 WHERE NULL IN ( col2 * col2 + + + col1, CAST( 80 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3602
SELECT DISTINCT - col2 col0 FROM tab0 WHERE NULL IN ( col2 * col2 + + + col1, CAST ( 80 AS INTEGER ) )
----

query II rowsort
SELECT ALL + col0 AS col0, + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 10 + + col0 AS col1 FROM tab0 AS cor0
----
NULL
107
NULL
25
NULL
97

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 10 + + col0 AS col1 FROM tab0 AS cor0
----
NULL
107
NULL
25
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - col1 ) + 23 col2 FROM tab1 AS cor0
----
-1321
-272
-3173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - + col2 AS col0, col0 col1 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - + COUNT( * ) - + - 98 AS col2 FROM tab1 cor0
----
95

skipif mysql # not compatible
query I rowsort label-3608
SELECT - + COUNT ( * ) - + - 98 AS col2 FROM tab1 cor0
----
95

query I rowsort
SELECT DISTINCT 22 FROM tab0 AS cor0 WHERE col0 >= NULL AND NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3610
SELECT + + ( COUNT( * ) ) + - SUM( ALL - + ( + 63 ) ) + - 8 AS col0, - SUM( + - col0 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
184
-75

skipif mysql # not compatible
query II rowsort label-3610
SELECT + + ( COUNT ( * ) ) + - SUM ( ALL - + ( + 63 ) ) + - 8 AS col0, - SUM ( + - col0 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
184
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT - col1 * + col1 FROM tab0 AS cor0 WHERE col0 * CAST( 34 AS SIGNED ) NOT IN ( + col0 + - col2 )
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-3611
SELECT - col1 * + col1 FROM tab0 AS cor0 WHERE col0 * CAST ( 34 AS INTEGER ) NOT IN ( + col0 + - col2 )
----
-1
-441
-6561

query I rowsort
SELECT ALL + col2 * + col0 + + - col0 AS col0 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT - CAST( - col1 AS SIGNED ) + + + 9 AS col1 FROM tab0
----
10
30
90

skipif mysql # not compatible
query I rowsort label-3613
SELECT - CAST ( - col1 AS INTEGER ) + + + 9 AS col1 FROM tab0
----
10
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT MAX( DISTINCT + col2 ) + - + ( MIN( - col1 ) ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-3614
SELECT MAX ( DISTINCT + col2 ) + - + ( MIN ( - col1 ) ) FROM tab2
----
135

query I rowsort
SELECT DISTINCT + 28 - + col0 + col2 FROM tab2
----
11
4
5

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( 82 ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3617
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * + col2 ) = - CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-3617
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * + col2 ) = - CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col1 ) - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 13 * + col1 FROM tab2 cor0
----
1001
663
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL + COUNT( - + 54 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + COUNT ( - + 54 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 18 + + col0 * + 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 87 ) + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT MIN( - + 97 ) FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3624
SELECT MIN ( - + 97 ) FROM tab1 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3625
SELECT - + CAST( NULL AS SIGNED ), + ( + 66 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3625
SELECT - + CAST ( NULL AS INTEGER ), + ( + 66 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT CAST( NULL AS SIGNED ) + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * 83 * + col2 FROM tab1 cor0 WHERE NOT + 1 IS NULL
----
-288923
-383792
-764928

query I rowsort
SELECT DISTINCT + 2 + + 92 FROM tab1
----
94

query I rowsort
SELECT + ( - 1 ) AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT + 29 DIV + 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 29 / + 63 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 81 AS col0 FROM tab2
----
1863
3240
4698

query I rowsort
SELECT DISTINCT col1 * 89 * - col1 * - col2 AS col0 FROM tab2
----
21107240
23172218
5324247

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN - 23 - + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 = + col2
----

query II rowsort
SELECT ALL ( + col0 ), 83 FROM tab0
----
15
83
87
83
97
83

query I rowsort
SELECT - - 36 AS col2 FROM tab0 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + + MIN( + ( + + 48 ) ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + + MIN ( + ( + + 48 ) ) AS col2 FROM tab0 AS cor0
----
48

query I rowsort
SELECT + ( ( + - ( col0 ) ) ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT - - ( - + MIN( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT - - ( - + MIN ( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + ( + ( - - col0 ) ) col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col0 + 34 AS col2 FROM tab0 AS cor0
----
121
131
49

query III rowsort
SELECT * FROM tab2 WHERE 39 + + col0 > ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 75 * col0 AS col2 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT ALL - 73 * + col0 * - col2 AS col0 FROM tab0
----
51465
63510
701019

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3646
SELECT DISTINCT * FROM tab2 WHERE ( + - 96 ) <= col2 + + CAST( + col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3646
SELECT DISTINCT * FROM tab2 WHERE ( + - 96 ) <= col2 + + CAST ( + col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 15 + - - ( - col0 ) FROM tab2 AS cor0 WHERE NOT - 83 * - + col0 / - col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT COUNT( * ) * 40 AS col2 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( * ) * 40 AS col2 FROM tab2
----
120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3650
SELECT ALL - CAST( - col2 AS SIGNED ) DIV 78 * 89 FROM tab0 AS cor0
----
0
0
89

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - CAST ( - col2 AS INTEGER ) / 78 * 89 FROM tab0 AS cor0
----
0
0
89

onlyif mysql # DIV for integer division: 
query II rowsort label-3651
SELECT ALL - + col2 DIV + col0 AS col1, ( col0 ) col1 FROM tab0 AS cor0
----
-1
97
-3
15
0
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3651
SELECT ALL - + col2 / + col0 AS col1, ( col0 ) col1 FROM tab0 AS cor0
----
-1
97
-3
15
0
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT ALL + - 82 DIV COUNT( * ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + - 82 / COUNT ( * ) FROM tab2 cor0
----
-27

query I rowsort
SELECT ALL - col1 * - 68 + - 16 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL - MIN( col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - MIN ( col0 ) AS col1 FROM tab1 cor0
----
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 + col0 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 85 col2 FROM tab2 AS cor0
----
10
21
39

query I rowsort
SELECT ALL - + 89 AS col0 FROM tab0 AS cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + 39 * - col0 FROM tab1
----
-2040
-3400
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT COUNT( * ) * + + 53 AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-3660
SELECT COUNT ( * ) * + + 53 AS col2 FROM tab0
----
159

query I rowsort
SELECT col2 * - + col1 AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 48 * + col2 AS col1 FROM tab0
----
2256
4752
480

query I rowsort
SELECT DISTINCT col2 + - 30 AS col1 FROM tab1
----
29
38
66

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab2 WHERE NOT ( - col0 * 55 * - + col2 NOT BETWEEN 29 AND col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT DISTINCT + 84 DIV - 50 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + 84 / - 50 AS col2 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT DISTINCT * FROM tab1 WHERE NOT col0 >= + CAST( + + col2 AS SIGNED ) / - col1
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT DISTINCT * FROM tab1 WHERE NOT col0 >= + CAST ( + + col2 AS INTEGER ) / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - COUNT( * ) + + - ( + COUNT( * ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3667
SELECT - COUNT ( * ) + + - ( + COUNT ( * ) ) FROM tab2
----
-6

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 72 * + col2 AS col1 FROM tab0
----
3384
7128
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * 74 FROM tab0
----
3478
7326
740

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * 74 FROM tab0
----
3478
7326
740

query I rowsort
SELECT ( - 63 ) + ( col2 ) FROM tab2
----
-23
-40
-5

query I rowsort
SELECT 75 + col1 * col1 FROM tab2
----
2676
4564
6004

query I rowsort
SELECT ALL - col1 / col1 FROM tab2 WHERE NOT 73 NOT BETWEEN - col2 * + col0 AND NULL
----

query I rowsort
SELECT col2 + 49 FROM tab1
----
108
117
145

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3675
SELECT ALL * FROM tab1 WHERE NOT CAST( - ( + col2 ) AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-3675
SELECT ALL * FROM tab1 WHERE NOT CAST ( - ( + col2 ) AS INTEGER ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT ALL + COUNT( * ) DIV MAX( DISTINCT + 29 * col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + COUNT ( * ) / MAX ( DISTINCT + 29 * col0 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT DISTINCT col2 DIV + 63 col2 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3677
SELECT DISTINCT col2 / + 63 col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3678
SELECT DISTINCT + MAX( ALL col1 ) DIV - 42 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + MAX ( ALL col1 ) / - 42 AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT col2 + - 11 FROM tab1 WHERE NOT - CAST( + col2 AS SIGNED ) + col1 NOT BETWEEN col1 AND ( col0 / - 34 + + col1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-3679
SELECT col2 + - 11 FROM tab1 WHERE NOT - CAST ( + col2 AS INTEGER ) + col1 NOT BETWEEN col1 AND ( col0 / - 34 + + col1 * col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3680
SELECT - COUNT( * ) DIV MIN( DISTINCT - col0 DIV col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3680
SELECT - COUNT ( * ) / MIN ( DISTINCT - col0 / col2 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 28 * + col2 col0 FROM tab2 WHERE 11 NOT BETWEEN col1 AND NULL
----
-1184
-1699
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT - ( - col0 ) DIV 86 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT - ( - col0 ) / 86 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL COUNT( * ) - 40 * ( 56 ) col0 FROM tab2
----
-2237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT ALL COUNT ( * ) - 40 * ( 56 ) col0 FROM tab2
----
-2237

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 < 24 * col1 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 26 col1 FROM tab0
----
1222
2574
260

query I rowsort
SELECT - 42 + + col2 * col0 AS col2 FROM tab1
----
4854
4973
6146

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL + col2 DIV 47 col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3687
SELECT ALL + col2 / 47 col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT - 52 + CAST( col1 + col0 * - col0 AS SIGNED ) * col1 FROM tab2 WHERE CAST( 30 AS SIGNED ) BETWEEN col0 + col2 * - 83 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - 52 + CAST ( col1 + col0 * - col0 AS INTEGER ) * col1 FROM tab2 WHERE CAST ( 30 AS INTEGER ) BETWEEN col0 + col2 * - 83 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT MIN( DISTINCT col1 ) FROM tab1 WHERE - col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT MIN ( DISTINCT col1 ) FROM tab1 WHERE - col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 + + 94 AS col2 FROM tab1
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ( MAX( col1 ) ) / 84 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT ( MAX ( col1 ) ) / 84 FROM tab2 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + ( MIN( DISTINCT 26 ) ) + 86 * COUNT( * ) AS col0 FROM tab0
----
284

skipif mysql # not compatible
query I rowsort label-3692
SELECT + ( MIN ( DISTINCT 26 ) ) + 86 * COUNT ( * ) AS col0 FROM tab0
----
284

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) NOT IN ( 74 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT - col0 DIV 67 - + col0 FROM tab0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-3694
SELECT - col0 / 67 - + col0 FROM tab0
----
-15
-88
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT + col0 DIV col1 - + col0 AS col2 FROM tab1
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-3695
SELECT + col0 / col1 - + col0 AS col2 FROM tab1
----
-48
-68
-90

query I rowsort
SELECT col0 * 58 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT + col2 - col0 FROM tab2 WHERE NOT ( 76 ) IS NULL
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE + 55 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT - col0 * - CAST( + 31 AS SIGNED ) + + 69 * - ( col2 * ( col0 * col0 ) ) AS col1 FROM tab2
----
-11302976
-22508925
-3356666

skipif mysql # not compatible
query I rowsort label-3699
SELECT - col0 * - CAST ( + 31 AS INTEGER ) + + 69 * - ( col2 * ( col0 * col0 ) ) AS col1 FROM tab2
----
-11302976
-22508925
-3356666

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 58 * 73 - + 38 / ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + 38 * col2 = 84
----
-3

skipif mysql # not compatible
query I rowsort label-3701
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 38 * col2 = 84
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - COUNT( * ) FROM tab1 WHERE NULL > + col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) FROM tab1 WHERE NULL > + col1 + - col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - - col1 col1 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT COUNT( DISTINCT + col1 ) - - 78 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT COUNT ( DISTINCT + col1 ) - - 78 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT DISTINCT col2 FROM tab0 WHERE col0 * - col1 = CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT col2 FROM tab0 WHERE col0 * - col1 = CAST ( col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 AS cor0 WHERE col0 = col2 * - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - 17 * SUM( col0 * 7 ) AS col0 FROM tab1 AS cor0
----
-27013

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 17 * SUM ( col0 * 7 ) AS col0 FROM tab1 AS cor0
----
-27013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT ALL ( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT - 12 DIV col0 FROM tab1 AS cor0 WHERE NOT - 10 + - col2 >= col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT - 12 / col0 FROM tab1 AS cor0 WHERE NOT - 10 + - col2 >= col2
----
0
0
0

query I rowsort
SELECT - 84 * 55 FROM tab2
----
-4620
-4620
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL - MAX( DISTINCT + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - MAX ( DISTINCT + col0 ) AS col2 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col2 col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT - COUNT( * ) * - 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
621

skipif mysql # not compatible
query I rowsort label-3713
SELECT - COUNT ( * ) * - 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT DISTINCT COUNT( + 16 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT COUNT ( + 16 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 11 * col1 + col2 FROM tab2 AS cor0
----
584
795
887

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT MIN( DISTINCT col0 ) + CAST( + 48 AS SIGNED ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3717
SELECT MIN ( DISTINCT col0 ) + CAST ( + 48 AS INTEGER ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT - col2 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT + 82 + 29 FROM tab1 AS cor0
----
111
111
111

query I rowsort
SELECT + 57 + - col2 FROM tab0 AS cor0
----
-42
10
47

query I rowsort
SELECT DISTINCT 3 + + col1 AS col0 FROM tab2
----
54
70
80

query I rowsort
SELECT ALL + 6 + + col1 * 47 AS col1 FROM tab0
----
3813
53
993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT DISTINCT CAST( - ( 2 ) AS SIGNED ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT CAST ( - ( 2 ) AS INTEGER ) FROM tab1
----
-2

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT col0 * + ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col0 * + ( col2 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT + 21 * - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + 21 * - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT + CAST( NULL AS SIGNED ) * + col2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT + CAST ( NULL AS INTEGER ) * + col2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + col1 FROM tab0 WHERE ( + 68 ) IS NOT NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT COUNT( * ) * - COUNT( * ) * 74 col2 FROM tab1
----
-666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3730
SELECT COUNT ( * ) * - COUNT ( * ) * 74 col2 FROM tab1
----
-666

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT - - SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3732
SELECT - - SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + col2 * + 25 AS col0 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - MIN( - 69 ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3734
SELECT - MIN ( - 69 ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT - col0 + 65 FROM tab1 AS cor0
----
-20
-26
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT ALL col2 + - col0 + + col0 + + 65 DIV - col0 FROM tab0
----
10
43
99

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL col2 + - col0 + + col0 + + 65 / - col0 FROM tab0
----
10
43
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * col1 + 29 col1 FROM tab2
----
-119617
-336646
-379427

query I rowsort
SELECT ALL ( 28 ) - 10 FROM tab1
----
18
18
18

query I rowsort
SELECT ALL + col2 * - col2 FROM tab0 WHERE 6 BETWEEN + col1 * + col1 + 82 * 14 AND NULL
----

query II rowsort
SELECT ALL - + col0, + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT + 66, + ( + + col1 ) AS col2 FROM tab1 AS cor0
----
66
14
66
47
66
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * + 37 * - col2 + + 9 BETWEEN ( + col1 ) AND col1
----

query II rowsort
SELECT col2, 66 - col1 * + col2 AS col1 FROM tab0 AS cor0
----
10
-144
47
-3741
99
-33

query I rowsort
SELECT 86 * col1 * + + 91 AS col0 FROM tab0 AS cor0
----
164346
633906
7826

query I rowsort
SELECT + 52 * col2 - ( col2 ) AS col0 FROM tab1 AS cor0
----
3009
3468
4896

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + - col1 + col2 * + col0 ) AND - ( - col1 ) OR NULL NOT BETWEEN col0 + - ( ( ( col1 ) ) ) AND 74 + col2 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL CAST( MIN( col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3747
SELECT ALL CAST ( MIN ( col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT - CAST( 10 AS SIGNED ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT - CAST ( 10 AS INTEGER ) FROM tab2
----
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + - 60 * + col1 + - col1 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT + - col2 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3750
SELECT + - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 9 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT DISTINCT - MAX( ALL col0 ) AS col1, COUNT( * ) + + - COUNT( * ) + - SUM( DISTINCT 34 ) FROM tab1 AS cor0
----
-91
-34

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT - MAX ( ALL col0 ) AS col1, COUNT ( * ) + + - COUNT ( * ) + - SUM ( DISTINCT 34 ) FROM tab1 AS cor0
----
-91
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3753
SELECT * FROM tab2 AS cor0 WHERE NOT 35 * - CAST( NULL AS SIGNED ) NOT BETWEEN - col1 - col1 AND col2 * col2 + 79
----

skipif mysql # not compatible
query III rowsort label-3753
SELECT * FROM tab2 AS cor0 WHERE NOT 35 * - CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 - col1 AND col2 * col2 + 79
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * - col2 ) >= NULL
----

query I rowsort
SELECT + ( + - 3 ) * + - col2 - + col1 FROM tab2
----
107
18
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL - COUNT( * ) * 85 AS col2 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - COUNT ( * ) * 85 AS col2 FROM tab2
----
-255

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 * - 46 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 33 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - MAX( ALL - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3760
SELECT - MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT 27 * + ( - 19 ) FROM tab1 cor0 WHERE ( + CAST( + col0 AS SIGNED ) ) BETWEEN NULL AND ( col2 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-3761
SELECT 27 * + ( - 19 ) FROM tab1 cor0 WHERE ( + CAST ( + col0 AS INTEGER ) ) BETWEEN NULL AND ( col2 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0 col1, ( - - 97 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
0
97
0
97
0
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - - col2 IN ( - - 73 - - col1 )
----

query I rowsort
SELECT ALL col0 + - col2 + + + 16 * - 52 + col1 FROM tab0
----
-734
-783
-833

query I rowsort
SELECT DISTINCT - col0 * col1 + 17 FROM tab2
----
-2329
-4911
-5008

query II rowsort
SELECT col0 * + col0 * col2 + - - col1 AS col1, - col0 * 85 AS col2 FROM tab2
----
163917
-5440
326317
-6375
48719
-3910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - 40 col1 FROM tab0
----
-1255
-137
-1867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT ALL col0 * col1 * + CAST( NULL AS SIGNED ) - + 25 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL col0 * col1 * + CAST ( NULL AS INTEGER ) - + 25 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT DISTINCT + col1 - + col0 * col1 + - + col0 + - col2 * col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-1296
-1894
-294

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + col1 - + col0 * col1 + - + col0 + - col2 * col2 / col0 AS col2 FROM tab0 AS cor0
----
-1296
-1894
-294

query I rowsort
SELECT DISTINCT + - 87 * ( - 44 ) FROM tab1 AS cor0
----
3828

query I rowsort
SELECT DISTINCT + col2 * col0 * col0 * + - 95 AS col1 FROM tab0 AS cor0
----
-1004625
-7190550
-88491645

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 83 ) = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 cor1 ON ( NULL ) IS NOT NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - - MIN( 24 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
24

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - - MIN ( 24 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 37 AND NULL
----

query I rowsort
SELECT ALL - - 28 AS col1 FROM tab1 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT - 22 * 11 + - + col0 FROM tab0 AS cor0
----
-257
-329
-339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - 22 col2, + col0 AS col2 FROM tab0 AS cor0
----
-1782
15
-22
97
-462
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT DISTINCT 45 DIV + col0 * - - col1 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT 45 / + col0 * - - col1 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - 13 * - col2 + col2 FROM tab0 AS cor0
----
1386
140
658

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + 58 * - + ( - 34 ) + col0 AND ( 78 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 25 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 25 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 32 col1 FROM tab1 AS cor0
----
-1888
-2176
-3072

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 72 )
----

query II rowsort
SELECT DISTINCT + 45 AS col2, - col1 + 12 AS col1 FROM tab1
----
45
-2
45
-35
45
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + 52, + col1 FROM tab2
----
52
51
52
67
52
77

query II rowsort
SELECT DISTINCT - ( + ( - - col2 ) ) AS col2, col1 * col2 * + col0 FROM tab0
----
-10
18270
-47
57105
-99
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT MIN( ALL + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3790
SELECT MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL + + 3 * col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-29403
-300
-6627

query I rowsort
SELECT + ( + 71 ) AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 58 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < + col0
----

query II rowsort
SELECT col1 * - 24, + col2 * - 17 AS col2 FROM tab2
----
-1224
-391
-1608
-986
-1848
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - MIN( ALL - ( 31 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - MIN ( ALL - ( 31 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
31

query I rowsort
SELECT + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT col2 + col2 + + 9 FROM tab0 AS cor0
----
103
207
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 17 / col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 33 + + 86 AS col1 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3801
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT BETWEEN + - col0 * CAST( NULL AS SIGNED ) AND ( + 62 )
----

skipif mysql # not compatible
query III rowsort label-3801
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT BETWEEN + - col0 * CAST ( NULL AS INTEGER ) AND ( + 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3802
SELECT ALL + col1 + + 66 AS col1, 26 + + + CAST( - col2 AS SIGNED ) + + 22 FROM tab1 AS cor0
----
113
-20
71
-11
80
-48

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL + col1 + + 66 AS col1, 26 + + + CAST ( - col2 AS INTEGER ) + + 22 FROM tab1 AS cor0
----
113
-20
71
-11
80
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT COUNT( * ) + COUNT( * ) * - - 75 AS col0 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3803
SELECT COUNT ( * ) + COUNT ( * ) * - - 75 AS col0 FROM tab2 AS cor0
----
228

query I rowsort
SELECT - + ( + - 8 ) AS col0 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT ALL + 70 * + col2 + col2 * - 99 * col2 AS col0 FROM tab0 AS cor0
----
-215401
-9200
-963369

query II rowsort
SELECT ALL + - col0 + - col0 AS col2, + col2 * - + 73 + + col2 AS col0 FROM tab2 cor0
----
-128
-2880
-150
-4176
-92
-1656

query I rowsort
SELECT + 43 * - 68 FROM tab0
----
-2924
-2924
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + SUM( - 70 ) - + 40 AS col0 FROM tab0
----
-250

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + SUM ( - 70 ) - + 40 AS col0 FROM tab0
----
-250

query I rowsort
SELECT DISTINCT col2 - col1 + col0 AS col2 FROM tab2
----
18
27
66

query I rowsort
SELECT - col0 - 89 AS col2 FROM tab2 AS cor0
----
-135
-153
-164

query I rowsort
SELECT - 58 + - 71 AS col0 FROM tab0 AS cor0
----
-129
-129
-129

query I rowsort
SELECT ALL col2 + - 38 FROM tab1 AS cor0
----
21
30
58

query I rowsort
SELECT DISTINCT 77 - - - 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
20

query I rowsort
SELECT 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query II rowsort
SELECT col1 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT ALL - + 65 DIV + + 22 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - + 65 / + + 22 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT COUNT( DISTINCT + 69 ) * - MIN( + 38 ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT COUNT ( DISTINCT + 69 ) * - MIN ( + 38 ) FROM tab2 AS cor0
----
-38

query I rowsort
SELECT ALL + - ( + + col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - + COUNT( * ) * + - 62 FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-3819
SELECT - + COUNT ( * ) * + - 62 FROM tab0 cor0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT ALL - col1 DIV - - 46 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - col1 / - - 46 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT DISTINCT + - col2 DIV + - col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT + - col2 / + - col2 AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 / + col2 FROM tab2 AS cor0 WHERE NOT - 88 * - 15 * + + 37 + 30 + - - 71 + col0 * + - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT - MAX( ALL + - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - MAX ( ALL + - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT ALL - col1 * col2 AS col2, - 23 * - + col0 FROM tab0
----
-210
2001
-3807
345
-99
2231

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col2 * + col1 * col1 < + + col2 * col1 + + 72 * col1 )
----

query I rowsort
SELECT ALL col2 * - 85 * + 3 AS col0 FROM tab0
----
-11985
-25245
-2550

query I rowsort
SELECT DISTINCT col2 * + col2 * + col2 * col1 FROM tab2
----
13072504
4928000
620517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT col0 / - + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT col0 / - + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 56 * + col0 FROM tab2
----
2576
3584
4200

query II rowsort
SELECT ALL col2, + 85 FROM tab1
----
59
85
68
85
96
85

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 43 < - 4
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + 85 FROM tab1 WHERE - - 92 IN ( 10 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT ( - + col2 ) * - 24 - + CAST( - 66 AS SIGNED ) FROM tab0
----
1194
2442
306

skipif mysql # not compatible
query I rowsort label-3835
SELECT ( - + col2 ) * - 24 - + CAST ( - 66 AS INTEGER ) FROM tab0
----
1194
2442
306

query I rowsort
SELECT ( 93 ) * col0 + + - col0 FROM tab1 AS cor0
----
4692
7820
8372

query II rowsort
SELECT DISTINCT - 23 AS col2, - 41 * - - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-23
1927
-23
205
-23
574

query I rowsort
SELECT + + col2 + + - 70 AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( 46, ( + col1 ) * - 97, + col2 * + - 34 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT DISTINCT 67 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 43 NOT BETWEEN - - col2 * + ( - col2 ) + CAST( + col1 AS SIGNED ) AND ( - col1 + + col0 + 34 * + ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT 67 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 43 NOT BETWEEN - - col2 * + ( - col2 ) + CAST ( + col1 AS INTEGER ) AND ( - col1 + + col0 + 34 * + ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT + + CAST( NULL AS SIGNED ) * + col0 * + 93 + 25 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3840
SELECT + + CAST ( NULL AS INTEGER ) * + col0 * + 93 + 25 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT - CAST( NULL AS SIGNED ) * - + col0 * 78 / - col2 * + - col2 * ( - - col2 ) + + - 19 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT - CAST ( NULL AS INTEGER ) * - + col0 * 78 / - col2 * + - col2 * ( - - col2 ) + + - 19 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - - + col0 * + - col1 FROM tab0 WHERE - - col2 + - - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT 30 + SUM( ALL + col2 ) FROM tab2
----
151

skipif mysql # not compatible
query I rowsort label-3844
SELECT 30 + SUM ( ALL + col2 ) FROM tab2
----
151

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT DISTINCT * FROM tab1 WHERE CAST( col1 AS SIGNED ) * - col1 <> + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3846
SELECT DISTINCT * FROM tab1 WHERE CAST ( col1 AS INTEGER ) * - col1 <> + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + 9 < NULL
----

query I rowsort
SELECT + 76 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) - COUNT( * ) col1 FROM tab2
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3849
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - COUNT ( * ) col1 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL SUM( - 80 ) AS col1 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL SUM ( - 80 ) AS col1 FROM tab1 AS cor0
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT + COUNT( * ) * + SUM( - CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-3851
SELECT + COUNT ( * ) * + SUM ( - CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
597

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3852
SELECT * FROM tab0 WHERE NOT - 21 + - - col2 - CAST( NULL AS SIGNED ) = + col0 * - col2 + col2
----

skipif mysql # not compatible
query III rowsort label-3852
SELECT * FROM tab0 WHERE NOT - 21 + - - col2 - CAST ( NULL AS INTEGER ) = + col0 * - col2 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3854
SELECT ALL * FROM tab2 WHERE NOT ( ( col0 - - CAST( - ( - col1 ) AS SIGNED ) * - + ( - + 32 ) * - 90 + + - 17 ) IN ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3854
SELECT ALL * FROM tab2 WHERE NOT ( ( col0 - - CAST ( - ( - col1 ) AS INTEGER ) * - + ( - + 32 ) * - 90 + + - 17 ) IN ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3855
SELECT + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT DISTINCT + COUNT( * ), + COUNT( * ) col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3857
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT - - col1 * + col1 AS col2 FROM tab0 cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL + + CAST( + - 54 AS SIGNED ) FROM tab2 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + + CAST ( + - 54 AS INTEGER ) FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT - 65 * - - 14 FROM tab0
----
-910
-910
-910

query I rowsort
SELECT DISTINCT + col0 * + 63 FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT COUNT( * ) * - - 24 AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT COUNT ( * ) * - - 24 AS col0 FROM tab0
----
72

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + + 29 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL = col1 )
----

query II rowsort
SELECT - + col1 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT + 32 * - - col2 FROM tab0 AS cor0
----
1504
3168
320

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT + col0 DIV + + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3867
SELECT + col0 / + + col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 3 * + 69 AS col2 FROM tab0 AS cor0
----
207
207
207

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query II rowsort
SELECT ALL 17 + + col1 AS col0, col2 * + col2 AS col1 FROM tab2
----
68
529
84
3364
94
1600

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - + 24 + + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3872
SELECT - + 24 + + COUNT ( * ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT + + 77 AS col0 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT 93 DIV col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3875
SELECT 93 / col2 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT - 94 col1, - COUNT( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
----
-94
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3876
SELECT - 94 col1, - COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL BETWEEN col2 + - 41 AND NULL )
----
-94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL - MIN( + col0 ) - - - 87 AS col1 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - MIN ( + col0 ) - - - 87 AS col1 FROM tab1
----
-138

query I rowsort
SELECT ALL + col2 - + - ( + col0 ) - + 1 FROM tab2
----
103
132
68

query I rowsort
SELECT 48 - - col0 AS col1 FROM tab0
----
135
145
63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + col0 >= - + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL MIN ( + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT + col1 * + 97 + col2 AS col1 FROM tab2 AS cor0
----
4970
6557
7509

query II rowsort
SELECT + col0, + col2 + + + col0 FROM tab0 AS cor0
----
15
62
87
97
97
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 * + col1 col1 FROM tab2 AS cor0
----
-1326
-1742
-2002

query I rowsort
SELECT 35 * - - 4 FROM tab1
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT COUNT( ALL - + 93 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT COUNT ( ALL - + 93 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + col2 + - col2 = - col1 + col0 * + col0 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT + CAST( - + 63 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + CAST ( - + 63 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT - col2 * - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - col2 NOT BETWEEN 85 AND NULL
----

query I rowsort
SELECT col2 * + 47 AS col1 FROM tab2
----
1081
1880
2726

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND - 23
----

query I rowsort
SELECT ALL - + col1 * - col2 FROM tab2 WHERE NOT - col0 * + + col0 + 7 NOT BETWEEN + 28 AND + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - 80 * - + COUNT( + - 82 ) AS col1 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 80 * - + COUNT ( + - 82 ) AS col1 FROM tab2
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3894
SELECT ALL * FROM tab2 WHERE + CAST( + - col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3894
SELECT ALL * FROM tab2 WHERE + CAST ( + - col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - - MAX( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT - - MAX ( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT 82 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT 82 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL MAX( - 15 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL MAX ( - 15 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT ALL - 66 + + 64 AS col2 FROM tab1 cor0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * 30 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT - 7 * - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - 7 * - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT + - col0 * CAST( 27 AS SIGNED ) FROM tab1 AS cor0
----
-1377
-2295
-2457

skipif mysql # not compatible
query I rowsort label-3901
SELECT + - col0 * CAST ( 27 AS INTEGER ) FROM tab1 AS cor0
----
-1377
-2295
-2457

query I rowsort
SELECT ALL 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 - - - col0 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND ( 5 ) - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL - + COUNT( * ) * + MIN( ALL + 8 ) col2 FROM tab2 cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3905
SELECT ALL - + COUNT ( * ) * + MIN ( ALL + 8 ) col2 FROM tab2 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 - - col2 AS col0 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - col2 * 1 + + 67 AS col1 FROM tab2 AS cor0
----
27
44
9

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < + col1
----
0

query I rowsort
SELECT + col1 + + + 38 + 48 FROM tab2
----
137
153
163

query II rowsort
SELECT - 54 + + 91, - 55 AS col0 FROM tab1
----
37
-55
37
-55
37
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT CAST( NULL AS SIGNED ) / 42 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT CAST ( NULL AS INTEGER ) / 42 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT DISTINCT + col0 DIV + + 4 AS col0 FROM tab1
----
12
21
22

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + col0 / + + 4 AS col0 FROM tab1
----
12
21
22

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * + 23 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT + 20 AS col0, COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + + 61 ) IS NULL
----
20
3

skipif mysql # not compatible
query II rowsort label-3917
SELECT + 20 AS col0, COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + + 61 ) IS NULL
----
20
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 92 BETWEEN 19 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3919
SELECT DISTINCT - 74, + ( COUNT( * ) ) * - ( + + COUNT( DISTINCT + col0 ) ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-3919
SELECT DISTINCT - 74, + ( COUNT ( * ) ) * - ( + + COUNT ( DISTINCT + col0 ) ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT + + col0 + 93 DIV + - col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3920
SELECT + + col0 + 93 / + - col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT ALL + - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT - COUNT( * ) + - 23 DIV + 85 + 98 AS col0 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3922
SELECT - COUNT ( * ) + - 23 / + 85 + 98 AS col0 FROM tab1 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3923
SELECT - CAST( NULL AS SIGNED ) + col0 * col1 * - 90 AS col1, - col2 AS col1 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-3923
SELECT - CAST ( NULL AS INTEGER ) + col0 * col1 * - 90 AS col1, - col2 AS col1 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3924
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= ( 20 * - col2 * - col0 + col1 + - col0 + + + 46 + CAST( NULL AS SIGNED ) - - col2 )
----

skipif mysql # not compatible
query III rowsort label-3924
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= ( 20 * - col2 * - col0 + col1 + - col0 + + + 46 + CAST ( NULL AS INTEGER ) - - col2 )
----

query I rowsort
SELECT - ( + 71 ) FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT + 25 + - COUNT( * ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + 25 + - COUNT ( * ) AS col2 FROM tab1
----
22

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 WHERE NOT - 29 / ( + + ( - col0 ) ) + + 70 * + 26 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( col2 ) * col0 col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT ( - col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT ( - col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - col1 * - + 51 * col0 + + + col2 AS col1 FROM tab1 AS cor0
----
21734
218195
36510

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT DISTINCT 24 + - col2 + ( - - ( - col0 ) ) + + 93 DIV + col0 AS col2 FROM tab0
----
-172
-32
-72

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT 24 + - col2 + ( - - ( - col0 ) ) + + 93 / + col0 AS col2 FROM tab0
----
-172
-32
-72

query I rowsort
SELECT ALL - col2 * + - col0 - + - 39 FROM tab0
----
744
909
9642

query I rowsort
SELECT ALL + - col1 - col1 - - col0 + + col0 FROM tab2 AS cor0
----
-10
-26
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT - + COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT - + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT + COUNT( ALL col2 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3938
SELECT + COUNT ( ALL col2 ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col1 ) IN ( + 33, + col0, - col0, + + 58 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3940
SELECT - col2, col2 DIV 23 + + col2 AS col2 FROM tab1 AS cor0
----
-59
61
-68
70
-96
100

skipif mysql # not compatible
query II rowsort label-3940
SELECT - col2, col2 / 23 + + col2 AS col2 FROM tab1 AS cor0
----
-59
61
-68
70
-96
100

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT ALL col1 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL col1 / + - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - + 62 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3943
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) IS NOT NULL )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) IS NOT NULL )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ALL + ( + col2 ) DIV 34 col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3944
SELECT ALL + ( + col2 ) / 34 col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + + 64 + col0 FROM tab1 AS cor0
----
115
149
155

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT - 6 DIV + - ( + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - 6 / + - ( + col0 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - col2, - 92 - + col2 AS col0 FROM tab0
----
-10
-102
-47
-139
-99
-191

query I rowsort
SELECT DISTINCT 64 * - col0 AS col0 FROM tab1
----
-3264
-5440
-5824

query II rowsort
SELECT + 94, - col0 AS col0 FROM tab0 AS cor0
----
94
-15
94
-87
94
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3950
SELECT - + 71 * 95 AS col1, - COUNT( * ) + + + 39 FROM tab2 AS cor0
----
-6745
36

skipif mysql # not compatible
query II rowsort label-3950
SELECT - + 71 * 95 AS col1, - COUNT ( * ) + + + 39 FROM tab2 AS cor0
----
-6745
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT SUM( 66 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3951
SELECT SUM ( 66 ) FROM tab1 AS cor0
----
198

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 84 BETWEEN + 98 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query II rowsort
SELECT ALL - col0 * + 39, + col0 FROM tab1
----
-1989
51
-3315
85
-3549
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT COUNT( * ) * - 4 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3955
SELECT COUNT ( * ) * - 4 FROM tab1 cor0
----
-12

query I rowsort
SELECT DISTINCT 28 / + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE - col2 + - 31 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3959
SELECT ALL - CAST( - col0 AS SIGNED ) DIV col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - CAST ( - col0 AS INTEGER ) / col1 AS col0 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + col0 + + col0 * + - 60 * 66 * - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + col0 + + col0 * + - 60 * 66 * - col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3961
SELECT CAST( - + 58 AS SIGNED ) DIV + - 21 + col2 AS col1 FROM tab1
----
61
70
98

skipif mysql # not compatible
query I rowsort label-3961
SELECT CAST ( - + 58 AS INTEGER ) / + - 21 + col2 AS col1 FROM tab1
----
61
70
98

query I rowsort
SELECT 52 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
52
52
52

query I rowsort
SELECT DISTINCT col2 + + 18 FROM tab1
----
114
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 + - - 48 col0 FROM tab0
----
136
136
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - ( COUNT( * ) ) + - MAX( DISTINCT + + col1 ) col0 FROM tab1
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3965
SELECT - ( COUNT ( * ) ) + - MAX ( DISTINCT + + col1 ) col0 FROM tab1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT col1 * + + col1 * CAST( ( 72 ) AS SIGNED ) + - 37 FROM tab0 AS cor0 WHERE - 67 BETWEEN col0 * col1 / - - col1 AND - col2 * col2
----

skipif mysql # not compatible
query I rowsort label-3966
SELECT col1 * + + col1 * CAST ( ( 72 ) AS INTEGER ) + - 37 FROM tab0 AS cor0 WHERE - 67 BETWEEN col0 * col1 / - - col1 AND - col2 * col2
----

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - + col2 + + 57 AS col0 FROM tab2 AS cor0
----
-1
17
34

query I rowsort
SELECT ( + 39 ) FROM tab1 AS cor0 WHERE + 40 * - col1 IS NOT NULL
----
39
39
39

query I rowsort
SELECT DISTINCT - 86 + + - 95 + + col2 FROM tab1
----
-113
-122
-85

query I rowsort
SELECT ALL - 92 + - col2 AS col0 FROM tab0
----
-102
-139
-191

query I rowsort
SELECT col1 - + 25 + 69 AS col0 FROM tab0
----
125
45
65

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ALL COUNT( * ) DIV + - 27 * + - 61 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL COUNT ( * ) / + - 27 * + - 61 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3976
SELECT col2 DIV - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3976
SELECT col2 / - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - + COUNT( * ) FROM tab2 WHERE NOT - 92 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3977
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT - 92 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - col0 + 21 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-66
-76
6

query I rowsort
SELECT + col1 * + + ( col0 ) FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT DISTINCT CAST( NULL AS SIGNED ) * MIN( - - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MIN ( - - col1 ) FROM tab2
----
NULL

query II rowsort
SELECT 21 AS col0, ( - col2 ) + - col0 AS col0 FROM tab0
----
21
-196
21
-62
21
-97

query I rowsort
SELECT DISTINCT col2 * + 88 FROM tab2
----
2024
3520
5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL - 33 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * - col2 + + col1 + - col0 * + col1 <= + 45
----

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - 33 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * - col2 + + col1 + - col0 * + col1 <= + 45
----

query I rowsort
SELECT DISTINCT col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL ( + 18 ) FROM tab1 AS cor0 WHERE 56 IS NOT NULL
----
18
18
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT + + ( - CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3988
SELECT + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * - col1 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3989
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * - col1 col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT 25 * + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT 25 * + COUNT ( * ) FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3991
SELECT ALL + - col1 AS col0, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-3991
SELECT ALL + - col1 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3992
SELECT - CAST( NULL AS SIGNED ) * + 39 + + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT - CAST ( NULL AS INTEGER ) * + 39 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3993
SELECT * FROM tab2 cor0 WHERE ( NOT - col0 + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3993
SELECT * FROM tab2 cor0 WHERE ( NOT - col0 + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 79 + + 89 AS col0, - 45 AS col1 FROM tab1 AS cor0
----
10
-45
10
-45
10
-45

query I rowsort
SELECT - ( 77 ) FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - col0 + + col0 + - + col0 * - + 37 FROM tab2 AS cor0
----
1702
2368
2775

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT - ( + 19 ) FROM tab0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + 20 * col2 + - col2 FROM tab0
----
1881
190
893

query I rowsort
SELECT col1 FROM tab2 WHERE - 87 = NULL
----

query II rowsort
SELECT ALL + col0 + + col0, col1 FROM tab0
----
174
21
194
1
30
81

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1, - 98 )
----

query I rowsort
SELECT ALL - 3 + col2 FROM tab2
----
20
37
55

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT + 80 - + + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4005
SELECT * FROM tab1 WHERE - + 30 / - 4 NOT BETWEEN NULL AND CAST( + 81 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4005
SELECT * FROM tab1 WHERE - + 30 / - 4 NOT BETWEEN NULL AND CAST ( + 81 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT - CAST( - 9 AS SIGNED ) - - col2 col2 FROM tab0 AS cor0
----
108
19
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4006
SELECT - CAST ( - 9 AS INTEGER ) - - col2 col2 FROM tab0 AS cor0
----
108
19
56

query I rowsort
SELECT + col0 + - 37 FROM tab2 AS cor0
----
27
38
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 6 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - col2 - + col2 * - ( + - col0 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL ( + 55 ) + - col0 AS col2 FROM tab1
----
-30
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT - COUNT( - 73 ) AS col1 FROM tab1 cor0 WHERE NOT + 63 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4011
SELECT - COUNT ( - 73 ) AS col1 FROM tab1 cor0 WHERE NOT + 63 IS NULL
----
-3

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE - col1 * - - col0 NOT BETWEEN + + col0 AND NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + - 0 * 73 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col0, - col1 col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT - - col2 AS col2, - 12 + + col1 AS col0 FROM tab2 cor0
----
23
39
40
65
58
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 col0 FROM tab0 AS cor0
----
-80
-80
-80

query II rowsort
SELECT ALL - - col0 AS col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - - col0 + - col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN + - col0 AND - col0
----

query I rowsort
SELECT - col1 * + + 36 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT DISTINCT - 14 * + + 98 FROM tab1
----
-1372

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT + col1 DIV - - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT + col1 / - - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT - col0 AS col0 FROM tab1 WHERE NOT + CAST( + - 27 AS SIGNED ) < + + col0
----

skipif mysql # not compatible
query I rowsort label-4022
SELECT - col0 AS col0 FROM tab1 WHERE NOT + CAST ( + - 27 AS INTEGER ) < + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT - MIN( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) + - - 1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - - 1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - 98 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT COUNT( * ) * + 15 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT COUNT ( * ) * + 15 FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 col0 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL - 57 + COUNT( * ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - 57 + COUNT ( * ) FROM tab2 cor0
----
-54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND + ( 68 )
----

query I rowsort
SELECT DISTINCT 6 + 21 * - col0 + + 82 * + + col1 * col2 AS col1 FROM tab2 AS cor0
----
251222
317083
95226

query I rowsort
SELECT ALL - col2 * + col2 * - col2 FROM tab2
----
12167
195112
64000

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 42 < - - 59
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT DISTINCT + 91 DIV 46 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + 91 / 46 FROM tab1
----
1

query I rowsort
SELECT - 4 * + col0 FROM tab0
----
-348
-388
-60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + 38
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + 29 + + ( + 32 ) + - + COUNT( 89 ) * + 11 DIV 74 + + COUNT( * ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + 29 + + ( + 32 ) + - + COUNT ( 89 ) * + 11 / 74 + + COUNT ( * ) FROM tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT DISTINCT 19 DIV - col0 * - - ( - + col0 ) + + 54 AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 19 / - col0 * - - ( - + col0 ) + + 54 AS col0 FROM tab1 AS cor0
----
54

query II rowsort
SELECT ALL col0, - 77 + - + col0 + col2 FROM tab1 AS cor0
----
51
-32
85
-103
91
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT + + 4 + + col1 FROM tab1 AS cor0
----
18
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + COUNT( * ) + 12 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4041
SELECT + COUNT ( * ) + 12 FROM tab1
----
15

query I rowsort
SELECT 21 + 53 * + col0 FROM tab0
----
4632
5162
816

query I rowsort
SELECT - 95 + + + 76 AS col2 FROM tab1
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - col2 + col2 * + - 81 FROM tab1
----
-4838
-5576
-7872

query I rowsort
SELECT DISTINCT ( - ( + ( + col1 ) ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL + 41 + - 31 FROM tab1 WHERE + col0 + CAST( col2 AS SIGNED ) IS NOT NULL
----
10
10
10

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + 41 + - 31 FROM tab1 WHERE + col0 + CAST ( col2 AS INTEGER ) IS NOT NULL
----
10
10
10

query I rowsort
SELECT DISTINCT 81 + col0 FROM tab2
----
127
145
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT DISTINCT + 3 AS col2, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4048
SELECT DISTINCT + 3 AS col2, COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT + - 16 FROM tab2 cor0
----
-16

query I rowsort
SELECT col0 * - 5 AS col1 FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - MIN( - 57 ) * - - 43 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT - MIN ( - 57 ) * - - 43 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + 50
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4053
SELECT COUNT( * ), + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4053
SELECT COUNT ( * ), + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
3
NULL

query I rowsort
SELECT ALL - 54 * + 97 FROM tab0
----
-5238
-5238
-5238

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT col1 * col1 DIV 72 FROM tab0
----
0
6
91

skipif mysql # not compatible
query I rowsort label-4055
SELECT col1 * col1 / 72 FROM tab0
----
0
6
91

query II rowsort
SELECT DISTINCT col0, col2 * + + 67 AS col0 FROM tab2
----
46
1541
64
2680
75
3886

query I rowsort
SELECT DISTINCT - + 44 + - - col2 FROM tab0 AS cor0
----
-34
3
55

query I rowsort
SELECT DISTINCT + - col1 + - 25 FROM tab0 AS cor0
----
-106
-26
-46

query I rowsort
SELECT DISTINCT - 64 + - col1 FROM tab1
----
-111
-69
-78

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + - 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4061
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 * 57 col1 FROM tab1 AS cor0
----
1482
1482
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT 44 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT 44 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT - COUNT( * ) * + + 27 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - COUNT ( * ) * + + 27 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 19 + + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4067
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) + + 35 + + COUNT( * ) - + SUM( ALL + col0 ) * - + 54 FROM tab0
----
10783

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) + + 35 + + COUNT ( * ) - + SUM ( ALL + col0 ) * - + 54 FROM tab0
----
10783

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4068
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 + + + 96 FROM tab2
----
147
163
173

query I rowsort
SELECT ALL + ( col0 ) + - - 70 * 81 FROM tab2
----
5716
5734
5745

query I rowsort
SELECT ALL - 49 * 55 + - 43 AS col1 FROM tab1
----
-2738
-2738
-2738

query I rowsort
SELECT 31 - col2 FROM tab1
----
-28
-37
-65

query I rowsort
SELECT ALL - 58 - + - col2 AS col2 FROM tab0
----
-11
-48
41

query I rowsort
SELECT DISTINCT - col1 * col0 + + 18 FROM tab1 AS cor0
----
-407
-4259
-696

query II rowsort
SELECT col1 + + ( - + col2 ) AS col1, + 52 * + + 89 AS col1 FROM tab2 AS cor0
----
28
4628
37
4628
9
4628

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab1 cor0 WHERE 25 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + 28 AS col0 FROM tab2
----
-46
28
-64
28
-75
28

query I rowsort
SELECT + - 36 * col0 + - col0 + col2 * col2 + - ( - - col2 ) * - col0 + - ( - col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
-2149
25616
4568

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - SUM( DISTINCT - ( - + col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4081
SELECT - SUM ( DISTINCT - ( - + col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT + SUM( + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + SUM ( + + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL + col2 * 84 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
4956
5712
8064

query II rowsort
SELECT - 85 * + 26, - col1 / - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + 53 - + col2
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL + ( + ( - MIN( ALL - 50 ) ) ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL + ( + ( - MIN ( ALL - 50 ) ) ) FROM tab1
----
50

query I rowsort
SELECT col0 * + - 57 FROM tab1
----
-2907
-4845
-5187

query I rowsort
SELECT + col2 * + col0 + + 40 + - + 81 * - col1 AS col0 FROM tab2 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col1 - - 43
----

query I rowsort
SELECT col0 * col1 * - + col2 AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4091
SELECT SUM( ALL + col2 ) + + CAST( NULL AS SIGNED ), - 59 AS col1 FROM tab0
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-4091
SELECT SUM ( ALL + col2 ) + + CAST ( NULL AS INTEGER ), - 59 AS col1 FROM tab0
----
NULL
-59

query I rowsort
SELECT + + col1 + + col0 + + col2 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4093
SELECT * FROM tab1 AS cor0 WHERE ( + ( ( + - CAST( NULL AS SIGNED ) ) ) ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4093
SELECT * FROM tab1 AS cor0 WHERE ( + ( ( + - CAST ( NULL AS INTEGER ) ) ) ) >= ( NULL )
----

query I rowsort
SELECT 19 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT - SUM( + + 12 ) col0 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4095
SELECT - SUM ( + + 12 ) col0 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT COUNT( 98 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( 98 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 62 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col1 AND - 17
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 NOT BETWEEN - col2 AND - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) BETWEEN + - col2 * - col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT MIN( col1 ) + + - SUM( ALL + ( + col1 ) ) * - 35 FROM tab2 AS cor0
----
6876

skipif mysql # not compatible
query I rowsort label-4100
SELECT MIN ( col1 ) + + - SUM ( ALL + ( + col1 ) ) * - 35 FROM tab2 AS cor0
----
6876

query I rowsort
SELECT ALL + 35 * ( + col1 ) FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4102
SELECT ALL * FROM tab0 WHERE NOT + col1 + - col1 <> ( col2 + col1 + 23 * - CAST( + + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4102
SELECT ALL * FROM tab0 WHERE NOT + col1 + - col1 <> ( col2 + col1 + 23 * - CAST ( + + col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL 2 + col2 - + col1 AS col1 FROM tab2
----
-26
-35
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT - SUM( DISTINCT - col1 ) FROM tab1 WHERE NOT + col1 + + 81 / - col1 NOT BETWEEN + col1 AND + CAST( NULL AS SIGNED ) * 4 * + ( 35 ) + - col1 - + + CAST( NULL AS SIGNED ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT - SUM ( DISTINCT - col1 ) FROM tab1 WHERE NOT + col1 + + 81 / - col1 NOT BETWEEN + col1 AND + CAST ( NULL AS INTEGER ) * 4 * + ( 35 ) + - col1 - + + CAST ( NULL AS INTEGER ) + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT - COUNT( * ) * - - 92 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT - COUNT ( * ) * - - 92 FROM tab0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL col0 * - col1 + - - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL col0 * - col1 + - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT ALL - SUM( ALL - 45 ), MIN( + - col1 ) col0 FROM tab2 AS cor0
----
135
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4107
SELECT ALL - SUM ( ALL - 45 ), MIN ( + - col1 ) col0 FROM tab2 AS cor0
----
135
-77

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

query I rowsort
SELECT col0 / 48 / - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4110
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN 12 - + 85 * + + col2 AND CAST( - + 4 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4110
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN 12 - + 85 * + + col2 AND CAST ( - + 4 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - - ( col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col2 * col0 * - - col2 AS col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT DISTINCT + 91 + - ( - col0 ) FROM tab0
----
106
178
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT ALL + ( - CAST( + ( + col1 ) AS SIGNED ) ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + ( - CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 col0, 18 AS col1 FROM tab0
----
13
18
13
18
13
18

query I rowsort
SELECT - ( + - 80 ) AS col0 FROM tab1
----
80
80
80

query II rowsort
SELECT DISTINCT 91 AS col1, col2 FROM tab2
----
91
23
91
40
91
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT DISTINCT + + col2 DIV - 65 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT + + col2 / - 65 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT ALL + + 54, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
54
3

skipif mysql # not compatible
query II rowsort label-4121
SELECT ALL + + 54, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - - MIN( ALL - 73 ) + - - COUNT( * ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - - MIN ( ALL - 73 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-70

query I rowsort
SELECT ALL 98 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT MIN( DISTINCT - 32 ) AS col1 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT MIN ( DISTINCT - 32 ) AS col1 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT + + col0 * - 90 FROM tab2 AS cor0
----
-4140
-5760
-6750

query I rowsort
SELECT col0 * ( + col2 ) * 88 FROM tab2 AS cor0
----
225280
382800
93104

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 42 / + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 42 / + - col0 IS NULL
----
0

query II rowsort
SELECT col1 * + col1 AS col2, col1 FROM tab1 AS cor0
----
196
14
2209
47
25
5

query III rowsort
SELECT * FROM tab1 WHERE - 41 <= - - 16 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT + col0 DIV + - 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4130
SELECT + col0 / + - 76 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4131
SELECT 96, col2 DIV - col1 AS col2 FROM tab0
----
96
-99
96
0
96
0

skipif mysql # not compatible
query II rowsort label-4131
SELECT 96, col2 / - col1 AS col2 FROM tab0
----
96
-99
96
0
96
0

query I rowsort
SELECT - col1 * + col1 * - 76 AS col0 FROM tab1 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT DISTINCT - COUNT( * ), ( + 36 ) AS col2 FROM tab0 AS cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-4133
SELECT DISTINCT - COUNT ( * ), ( + 36 ) AS col2 FROM tab0 AS cor0
----
-3
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
38
38
38

query III rowsort
SELECT * FROM tab1 WHERE ( ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL - CAST( + 24 AS SIGNED ) AS col2 FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - CAST ( + 24 AS INTEGER ) AS col2 FROM tab2
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT MIN( - 86 ) + 70 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4138
SELECT MIN ( - 86 ) + 70 FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col0 NOT BETWEEN NULL AND - col0 + - col0 * + 39
----
3

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col0 NOT BETWEEN NULL AND - col0 + - col0 * + 39
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4140
SELECT DISTINCT COUNT( * ) + ( + ( + ( - CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT COUNT ( * ) + ( + ( + ( - CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT + COUNT( ALL col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + COUNT ( ALL col0 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + SUM( DISTINCT - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + SUM ( DISTINCT - col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - col1 * col2 + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - col1 * col2 + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 95 FROM tab1 WHERE NOT ( - col2 + col1 ) NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT SUM( ALL + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4146
SELECT SUM ( ALL + col0 ) AS col2 FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 76 > ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4149
SELECT ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT CAST( + 87 AS SIGNED ) AS col2 FROM tab0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-4150
SELECT CAST ( + 87 AS INTEGER ) AS col2 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + 99 * + COUNT( * ) AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + 99 * + COUNT ( * ) AS col1 FROM tab2
----
297

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - ( 68 ) * 88 FROM tab2
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL COUNT( * ) * - 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL COUNT ( * ) * - 70 FROM tab1
----
-210

query I rowsort
SELECT ALL - col2 * col1 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2 WHERE 44 IS NOT NULL
----
2116
4096
5625

query I rowsort
SELECT - col1 * 20 - - col2 * col1 FROM tab1
----
1064
195
2256

query I rowsort
SELECT 71 FROM tab1 WHERE NULL IN ( 36 )
----

query I rowsort
SELECT ALL ( 76 ) + col0 FROM tab2
----
122
140
151

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 18 + - col0 ) BETWEEN + 25 AND NULL
----

query I rowsort
SELECT 25 * col1 AS col2 FROM tab1
----
1175
125
350

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL col1 DIV - col2 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-4162
SELECT ALL col1 / - col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4163
SELECT DISTINCT - SUM( DISTINCT + col2 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - SUM ( DISTINCT + col2 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-52

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL col0 + ( col2 ) * - col2 AS col2 FROM tab2
----
-1536
-3289
-483

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 53 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= 34
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 / + 95 - - col1 ) = + col2
----

query I rowsort
SELECT + col2 + col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL COUNT( DISTINCT + col2 ) + + COUNT( * ) * 70 AS col0 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL COUNT ( DISTINCT + col2 ) + + COUNT ( * ) * 70 AS col0 FROM tab0
----
213

query I rowsort
SELECT 5 - ( 53 - 56 ) FROM tab2 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - col0 - 51 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 - - 24 AS col0 FROM tab1 AS cor0
----
-23
10
19

query I rowsort
SELECT ALL + - 68 AS col2 FROM tab0 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT DISTINCT - COUNT( * ) DIV 77 - + 67 * - MIN( DISTINCT 56 DIV 31 ) AS col1 FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - COUNT ( * ) / 77 - + 67 * - MIN ( DISTINCT 56 / 31 ) AS col1 FROM tab0 cor0
----
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 13 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - 79 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( 28 ) ) = - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ALL COUNT( * ) * - + 88 * MAX( ALL + col1 ) FROM tab2
----
-20328

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL COUNT ( * ) * - + 88 * MAX ( ALL + col1 ) FROM tab2
----
-20328

query I rowsort
SELECT - 76 * - + col0 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT ALL - col1 * + + col2 * col2 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT - CAST( - - 88 AS SIGNED ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - CAST ( - - 88 AS INTEGER ) FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL + ( - MAX( + 11 ) ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + ( - MAX ( + 11 ) ) FROM tab2 AS cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 59 * 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT + + MIN( ALL - - 51 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + + MIN ( ALL - - 51 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + ( + 44 ) FROM tab0 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col1 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - ( 21 )
----

query I rowsort
SELECT - col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + 81 * + col1 + - 78 * + 37 FROM tab2 AS cor0
----
1245
2541
3351

query I rowsort
SELECT DISTINCT + + ( 9 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + 28 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 27 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 8 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT SUM( - + 63 ) FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT SUM ( - + 63 ) FROM tab0 AS cor0
----
-189

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 + 71 / 22 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - - COUNT( * ) * - 5 + - 80 AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4197
SELECT - - COUNT ( * ) * - 5 + - 80 AS col2 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 / 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 40 + - col1 FROM tab1 AS cor0
----
-45
-54
-87

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( 15 + - col1 ) NOT BETWEEN 54 AND ( NULL )
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 + + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * col2 NOT IN ( - col0 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ( - + ( COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4204
SELECT ( - + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN + + col2 * + col1 AND 89
----

query I rowsort
SELECT DISTINCT 80 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 34 * + col0 AS col1 FROM tab2
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT COUNT( * ) * - 18 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-4208
SELECT COUNT ( * ) * - 18 FROM tab0
----
-54

query I rowsort
SELECT - 84 + - col0 AS col1 FROM tab2 AS cor0
----
-130
-148
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT 77 DIV 74 * + + col0 + - 0 + 39 + col2 FROM tab0 AS cor0
----
101
136
235

skipif mysql # not compatible
query I rowsort label-4210
SELECT 77 / 74 * + + col0 + - 0 + 39 + col2 FROM tab0 AS cor0
----
101
136
235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 98 col2 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT 72 AS col0 FROM tab2 WHERE col0 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4214
SELECT ALL * FROM tab0 WHERE + 15 - + col2 BETWEEN - + col0 AND CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query III rowsort label-4214
SELECT ALL * FROM tab0 WHERE + 15 - + col2 BETWEEN - + col0 AND CAST ( NULL AS REAL ) + + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 39 * - 8, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4216
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 31 <= + col2 - CAST( NULL AS SIGNED ) * - col1 / - col1
----

skipif mysql # not compatible
query III rowsort label-4216
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 31 <= + col2 - CAST ( NULL AS INTEGER ) * - col1 / - col1
----

query I rowsort
SELECT + + col1 * + - col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 32 col2 FROM tab1 cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 23 col0 FROM tab1 cor0
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col0, 23 AS col0 FROM tab2 AS cor0
----
57
23
57
23
57
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 20 - - col2 FROM tab1 AS cor0
----
51
116
85
79
91
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 cor0 WHERE NOT ( + col0 ) * + 52 < col0 - - 82
----
-9

skipif mysql # not compatible
query I rowsort label-4222
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0 WHERE NOT ( + col0 ) * + 52 < col0 - - 82
----
-9

query I rowsort
SELECT + + col0 * ( - col1 ) * + 88 AS col1 FROM tab1 AS cor0
----
-37400
-376376
-62832

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4224
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - - col0 ) * CAST( - + col0 AS SIGNED ) ) >= col1 * 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4224
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - - col0 ) * CAST ( - + col0 AS INTEGER ) ) >= col1 * 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT DISTINCT 34 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT 34 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, - CAST ( + col0 AS INTEGER ) )
----

query II rowsort
SELECT - col2 AS col2, - col1 + - + 85 AS col2 FROM tab2
----
-23
-136
-40
-162
-58
-152

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 30 - + col2 IS NOT NULL
----

query II rowsort
SELECT - 77 AS col1, + 66 FROM tab2
----
-77
66
-77
66
-77
66

query I rowsort
SELECT ALL 73 * - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4230
SELECT ALL - 72 AS col1, - CAST( NULL AS SIGNED ) / + - 32 AS col2 FROM tab2
----
-72
NULL
-72
NULL
-72
NULL

skipif mysql # not compatible
query II rowsort label-4230
SELECT ALL - 72 AS col1, - CAST ( NULL AS INTEGER ) / + - 32 AS col2 FROM tab2
----
-72
NULL
-72
NULL
-72
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT - 78 AS col2, - COUNT( * ) + COUNT( * ) FROM tab0
----
-78
0

skipif mysql # not compatible
query II rowsort label-4231
SELECT - 78 AS col2, - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + SUM( 16 ) col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4232
SELECT + SUM ( 16 ) col1 FROM tab0 AS cor0
----
48

query II rowsort
SELECT - - col0 AS col0, - ( + col0 ) AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query II rowsort
SELECT ALL - 21, col2 AS col1 FROM tab1 AS cor0
----
-21
59
-21
68
-21
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + - col1 + 60 AS col1 FROM tab0 cor0
----
-21
39
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4237
SELECT 18 * col0 * + CAST( NULL AS SIGNED ) AS col2, - col1 * - col0 + + - ( col1 ) AS col1 FROM tab0
----
NULL
1134
NULL
1806
NULL
96

skipif mysql # not compatible
query II rowsort label-4237
SELECT 18 * col0 * + CAST ( NULL AS INTEGER ) AS col2, - col1 * - col0 + + - ( col1 ) AS col1 FROM tab0
----
NULL
1134
NULL
1806
NULL
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * + 32 + - col2 + + - 1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + + col0 + + 24 * - col1 * - col0 col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + - col1 + - 34 FROM tab2 AS cor0
----
-101
-111
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) DIV - + 36 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) / - + 36 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 98 * col0 + col2 NOT IN ( + col2 + + 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT + SUM( DISTINCT - - ( + col0 ) ) + 74 AS col2 FROM tab1 AS cor0
----
301

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + SUM ( DISTINCT - - ( + col0 ) ) + 74 AS col2 FROM tab1 AS cor0
----
301

query II rowsort
SELECT ALL - col1 * + - col0, col1 * - 95 AS col2 FROM tab2 AS cor0
----
2346
-4845
4928
-7315
5025
-6365

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT ALL col1 * + col1 + + col1 AS col1 FROM tab0
----
2
462
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT col1 + + - col0 + + 74 DIV - ( - col2 ) AS col1 FROM tab0
----
-59
-96
67

skipif mysql # not compatible
query I rowsort label-4247
SELECT col1 + + - col0 + + 74 / - ( - col2 ) AS col1 FROM tab0
----
-59
-96
67

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - 21 + + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - 14 <> NULL
----

query I rowsort
SELECT 4 + + ( col1 ) AS col1 FROM tab2
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT 22 + - - COUNT( * ) * + - SUM( DISTINCT col2 ) + + COUNT( * ) FROM tab0
----
-443

skipif mysql # not compatible
query I rowsort label-4251
SELECT 22 + - - COUNT ( * ) * + - SUM ( DISTINCT col2 ) + + COUNT ( * ) FROM tab0
----
-443

query I rowsort
SELECT DISTINCT 76 * + - col0 AS col1 FROM tab1 AS cor0
----
-3876
-6460
-6916

query I rowsort
SELECT DISTINCT + - col1 * 36 FROM tab2 cor0
----
-1836
-2412
-2772

query I rowsort
SELECT ( + 87 ) AS col0 FROM tab0 AS cor0
----
87
87
87

query II rowsort
SELECT ALL - col1 + 56 + col0, - col1 * - 89 + - col1 AS col0 FROM tab2 AS cor0
----
43
6776
51
4488
64
5896

query I rowsort
SELECT DISTINCT + + 24 + - col2 AS col0 FROM tab1 cor0
----
-35
-44
-72

query I rowsort
SELECT DISTINCT - ( - col1 ) + + + col2 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab1 WHERE - 29 * + 85 + col2 * - 73 IN ( + 41 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - - 17 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4260
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 29 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT + 64 DIV - SUM( ALL + col1 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + 64 / - SUM ( ALL + col1 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + 33 * - - col2 AS col0 FROM tab0 AS cor0
----
1551
3267
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL + 79 - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 - col1 IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + 79 - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 - col1 IS NOT NULL
----
79

query I rowsort
SELECT ALL + col2 * - ( - col2 ) AS col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT + 35 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4266
SELECT + 35 / col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * + - 80 FROM tab2
----
1840
3200
4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT DISTINCT CAST( + 63 AS SIGNED ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT CAST ( + 63 AS INTEGER ) FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4269
SELECT + COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 87 * 60 FROM tab0
----
5220
5220
5220

onlyif mysql # DIV for integer division: 
query II rowsort label-4271
SELECT col2 * - col1 DIV + col1 AS col2, - col1 + - 2 FROM tab1
----
-59
-7
-68
-49
-96
-16

skipif mysql # not compatible
query II rowsort label-4271
SELECT col2 * - col1 / + col1 AS col2, - col1 + - 2 FROM tab1
----
-59
-7
-68
-49
-96
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL - MIN( DISTINCT + - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - MIN ( DISTINCT + - col2 ) FROM tab2
----
58

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab2 WHERE + ( + col1 ) + + 36 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + - MAX( - col2 ) * 69 FROM tab1 AS cor0 WHERE col0 * col2 IS NOT NULL
----
4071

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + - MAX ( - col2 ) * 69 FROM tab1 AS cor0 WHERE col0 * col2 IS NOT NULL
----
4071

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( 70 <= ( - 11 ) ) )
----

query II rowsort
SELECT DISTINCT + 75, - col0 AS col1 FROM tab2 AS cor0
----
75
-46
75
-64
75
-75

query I rowsort
SELECT DISTINCT - - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
94

query I rowsort
SELECT + col0 + + - 10 AS col1 FROM tab1 AS cor0
----
41
75
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT ( + COUNT( * ) ) + + SUM( ALL + col1 ) col2, MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
106
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4279
SELECT ( + COUNT ( * ) ) + + SUM ( ALL + col1 ) col2, MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
106
81

query I rowsort
SELECT 37 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 * - + 16 AS col2 FROM tab1 AS cor0
----
-1360
-1456
-816

query I rowsort
SELECT ALL - + col2 * + 17 AS col2 FROM tab1 AS cor0
----
-1003
-1156
-1632

query I rowsort
SELECT - 84 * + - col1 AS col2 FROM tab1 AS cor0
----
1176
3948
420

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ( 53 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ( 53 ) / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - SUM( ALL - + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4285
SELECT - SUM ( ALL - + col1 ) AS col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - COUNT( * ) + SUM( ALL - 5 ) + - - 74 AS col2 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - COUNT ( * ) + SUM ( ALL - 5 ) + - - 74 AS col2 FROM tab2
----
56

query I rowsort
SELECT DISTINCT ( - - col0 ) * - + 83 + + 90 * - + 64 + - 37 AS col0 FROM tab1
----
-10030
-12852
-13350

query III rowsort
SELECT * FROM tab0 WHERE + col0 / - - 86 >= NULL
----

query I rowsort
SELECT ALL - col2 - + 68 + - + col2 FROM tab2
----
-114
-148
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL MAX( - + col0 ) - - COUNT( ALL col1 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL MAX ( - + col0 ) - - COUNT ( ALL col1 ) FROM tab2
----
-43

query I rowsort
SELECT - 70 - - + col1 + - + 13 AS col1 FROM tab2 cor0
----
-16
-32
-6

query I rowsort
SELECT ALL - 87 - + + 28 AS col0 FROM tab0 AS cor0
----
-115
-115
-115

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4293
SELECT * FROM tab1 AS cor0 WHERE + CAST( + col1 AS DECIMAL ) NOT BETWEEN - - col1 AND - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4293
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + col1 AS REAL ) NOT BETWEEN - - col1 AND - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4294
SELECT - - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= ( - col2 ) + col1 + + ( + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT - 60 DIV - ( + - col2 ) AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 60 / - ( + - col2 ) AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT 73 * - - col2 AS col2 FROM tab0 AS cor0
----
3431
7227
730

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL SUM( + col0 ) * + + 56 FROM tab1 AS cor0
----
12712

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL SUM ( + col0 ) * + + 56 FROM tab1 AS cor0
----
12712

query I rowsort
SELECT col2 * 82 FROM tab0 AS cor0
----
3854
8118
820

query I rowsort
SELECT + col0 * + + 17 FROM tab1 AS cor0
----
1445
1547
867

query I rowsort
SELECT col0 * col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT col1 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT col1 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - ( + 75 ) AND col1
----

query I rowsort
SELECT DISTINCT - col2 * - ( 49 ) AS col0 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ALL - 82 * - col2 FROM tab0 AS cor0
----
3854
8118
820

query II rowsort
SELECT ALL + - col1, ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE + col1 BETWEEN + 94 AND NULL
----

query I rowsort
SELECT + 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - ( - 73 ) * - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT + SUM( ALL 58 ) + COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + SUM ( ALL 58 ) + COUNT ( * ) FROM tab1 AS cor0
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4310
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + - col2 - + + col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4310
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + - col2 - + + col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 14 + - 92 FROM tab2
----
-78
-78
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT DISTINCT + 36 DIV col2 - + + 40 AS col1 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + 36 / col2 - + + 40 AS col1 FROM tab1
----
-40

query I rowsort
SELECT ALL - col1 + - col1 + + - col0 FROM tab2
----
-148
-209
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT 55 + - - COUNT( ALL 4 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4314
SELECT 55 + - - COUNT ( ALL 4 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE + 68 BETWEEN + col0 AND + col1
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE 89 NOT IN ( - 57, - 54 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT MIN( ALL + 82 ) AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4317
SELECT MIN ( ALL + 82 ) AS col0 FROM tab1
----
82

query II rowsort
SELECT ALL + col2 + ( - + 77 ) - - + 30 AS col2, col2 + - 5 FROM tab1
----
12
54
21
63
49
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, ( - col0 ) col1 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( - - col0 + - + col2 + + col2, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4321
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 95 + + 30 * - + col2 <> + col0
----

skipif mysql # not compatible
query III rowsort label-4321
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 95 + + 30 * - + col2 <> + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4322
SELECT ALL 57 DIV 62 AS col1, + 9 FROM tab0
----
0
9
0
9
0
9

skipif mysql # not compatible
query II rowsort label-4322
SELECT ALL 57 / 62 AS col1, + 9 FROM tab0
----
0
9
0
9
0
9

query II rowsort
SELECT 32 * + col1 * + col0 - - 69 AS col1, col0 FROM tab1 AS cor0 WHERE NOT + 89 * + + col2 IS NULL
----
13669
85
136933
91
22917
51

query I rowsort
SELECT ALL + col0 * - col1 * - col0 - + ( col1 ) FROM tab2 cor0
----
107865
315315
376808

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 + col2 * col1 * ( - col1 ) / - - 39 * col0 * + col2 NOT IN ( + - col2 * - col2 / + col2 - - col2, + col0, + 69 + + col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - MAX( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4326
SELECT - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
3

query I rowsort
SELECT ALL 2 * 65 AS col2 FROM tab2
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL - col0 * ( + 75 ) + col1 * + col0 FROM tab1 AS cor0
----
-2548
-3111
-5950

query I rowsort
SELECT 70 + + col0 AS col0 FROM tab2 cor0
----
116
134
145

query I rowsort
SELECT ALL - 83 + + col1 FROM tab2 AS cor0
----
-16
-32
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <= - col2
----

query I rowsort
SELECT DISTINCT + col1 + + - col0 - + col1 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT ALL + col1 DIV col1 * + + 24 AS col2 FROM tab1 AS cor0 WHERE NOT - 91 < + - col2
----
24

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + col1 / col1 * + + 24 AS col2 FROM tab1 AS cor0 WHERE NOT - 91 < + - col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT - - 32 DIV + 94 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4336
SELECT - - 32 / + 94 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - ( + 22 ) AS col2 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + + 7 * MAX( ALL col0 ) FROM tab0 AS cor0
----
679

skipif mysql # not compatible
query I rowsort label-4338
SELECT + + 7 * MAX ( ALL col0 ) FROM tab0 AS cor0
----
679

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + 40 ) IN ( + col2 + + + 65, col0 / - col0 - - - col1 + - 50, - 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4340
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - col1 + - col1 - - + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - col1 + - col1 - - + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 + ( + ( - - col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 68 / + col1 * - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - col2 + + 92 * + - 87 FROM tab1 AS cor0
----
-7908
-7936
-7945

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4343
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4343
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 - - col1 + col0 + + - col1 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT - col0 / + 13 * - 69 + + + 24 AS col2 FROM tab2 WHERE NULL BETWEEN - col2 AND + 67
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + + 49 ) AND + 63 * 68 * - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 97 + col1 + + col2 + - + col2 * + 77 + col0 + + - ( col2 ) - - 45 * ( + - col1 ) * ( + + 87 ) - col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 12 IS NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 7 - - col0 + - col2 * - col2 / - + col2, - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT + SUM( - + 15 ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + SUM ( - + 15 ) AS col0 FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4351
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + 38, + 56 * - 22 * 37, 49 * + 96 * + - CAST( NULL AS SIGNED ) / 72, ( - - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4351
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + 38, + 56 * - 22 * 37, 49 * + 96 * + - CAST ( NULL AS INTEGER ) / 72, ( - - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT ALL col2 * + col0 DIV col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL col2 * + col0 / col0 FROM tab0
----
10
47
99

query II rowsort
SELECT col0 AS col2, - ( col2 ) FROM tab0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query II rowsort
SELECT - col0 AS col0, col0 AS col1 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT DISTINCT - - col2 AS col1, col1 * + col0 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

query II rowsort
SELECT ALL col0 AS col0, col0 AS col1 FROM tab2 AS cor0 WHERE - col2 * col1 + + col1 IN ( + col2 * - 7 + - 14 - + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT 52 AS col2, MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
52
-10

skipif mysql # not compatible
query II rowsort label-4358
SELECT 52 AS col2, MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
52
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 16 - - - 84 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 16 - - - 84 IS NULL
----
3

query I rowsort
SELECT - 3 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col1 - + col2
----

query I rowsort
SELECT DISTINCT - 49 + + 64 AS col1 FROM tab0
----
15

query I rowsort
SELECT + 52 + + col1 + col2 FROM tab2
----
126
169
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT - COUNT( * ) * + + ( COUNT( * ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - COUNT ( * ) * + + ( COUNT ( * ) ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT + col1 * - + col0 + - 89 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT + col1 * - + col0 + - 89 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + - col1 AS col2 FROM tab2
----
-13
-5
8

query II rowsort
SELECT 96 * 49 * - + ( - - col0 ) + + col2, col0 FROM tab2
----
-216361
46
-301016
64
-352742
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT - + COUNT( * ) + - ( COUNT( * ) ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - + COUNT ( * ) + - ( COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL + col2 + col2 + + - col0 FROM tab1
----
141
33
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT COUNT( ( + CAST( - 7 AS SIGNED ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4369
SELECT COUNT ( ( + CAST ( - 7 AS INTEGER ) ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 * col2 - col0 AS col2 FROM tab2
----
1127
3016
3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 32 - - + col2 col0 FROM tab0
----
126
230
52

query I rowsort
SELECT DISTINCT col2 - - 59 FROM tab1
----
118
127
155

query I rowsort
SELECT + 3 * - 66 - + + ( + col2 ) + - - col2 FROM tab0
----
-198
-198
-198

query I rowsort
SELECT ALL + + col1 + + + col0 FROM tab2 cor0 WHERE NOT + + 60 IS NULL AND NOT 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - + ( - col0 ) * - + col1 IS NULL AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - + ( - col0 ) * - + col1 IS NULL AND NOT NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, 11 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL + col1 + + 16 FROM tab2
----
67
83
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4378
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4379
SELECT + 25 DIV + col2 AS col1, 9 AS col0 FROM tab2
----
0
9
0
9
1
9

skipif mysql # not compatible
query II rowsort label-4379
SELECT + 25 / + col2 AS col1, 9 AS col0 FROM tab2
----
0
9
0
9
1
9

query I rowsort
SELECT ALL col0 * - + ( ( col1 ) ) * + - col0 FROM tab2
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT + 43 DIV - + col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT + 43 / - + col1 FROM tab1
----
-3
-8
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - - 81 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT SUM( ALL + 21 ) FROM tab2, tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4383
SELECT SUM ( ALL + 21 ) FROM tab2, tab1 AS cor0
----
189

query I rowsort
SELECT - ( + 61 ) FROM tab0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - COUNT( DISTINCT - + 84 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4385
SELECT - COUNT ( DISTINCT - + 84 ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL + ( - COUNT( + - 53 ) ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT ALL + ( - COUNT ( + - 53 ) ) col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL + MIN( DISTINCT col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + AVG ( - - col0 ) AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT + ( + - CAST( NULL AS SIGNED ) ) + - + 33 + 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT + ( + - CAST ( NULL AS INTEGER ) ) + - + 33 + 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 5 + - - col1 * - col0, + col0 AS col2 FROM tab0 cor0
----
-102
97
-1220
15
-1832
87

query I rowsort
SELECT - 9 + 55 AS col0 FROM tab2 cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4392
SELECT ALL - SUM( + - 41 ) + COUNT( ALL - - CAST( NULL AS DECIMAL ) ) col2 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4392
SELECT ALL - SUM ( + - 41 ) + COUNT ( ALL - - CAST ( NULL AS REAL ) ) col2 FROM tab2 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT DISTINCT MAX( - col0 ) * - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT MAX ( - col0 ) * - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
135

query II rowsort
SELECT + col1 AS col2, 41 AS col0 FROM tab0 AS cor0
----
1
41
21
41
81
41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 43 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + - 57 FROM tab2 AS cor0
----
-103
-121
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 85 / - col1 IS NULL
----

query I rowsort
SELECT + ( - 93 ) FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + col1 * + - col2 AS col1 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 + col1 col1 FROM tab1
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT MAX( col1 ) col0 FROM tab0 WHERE + col0 IS NOT NULL
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4402
SELECT MAX ( col1 ) col0 FROM tab0 WHERE + col0 IS NOT NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT DISTINCT - col2 * - - 10 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - col2 * - - 10 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + - 68 + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4407
SELECT + - 68 + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT - - ( COUNT( * ) ) * COUNT( * ) DIV + + COUNT( * ) + - 9 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4408
SELECT - - ( COUNT ( * ) ) * COUNT ( * ) / + + COUNT ( * ) + - 9 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - col0 + - - ( col1 ) FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + + col0 + ( - - 45 ) FROM tab0 AS cor0
----
132
142
60

onlyif mysql # DIV for integer division: 
query II rowsort label-4411
SELECT ALL + col1 - col1, - col1 DIV - + 60 AS col2 FROM tab1 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-4411
SELECT ALL + col1 - col1, - col1 / - + 60 AS col2 FROM tab1 AS cor0
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - COUNT( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4412
SELECT - COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * - col0 * - 64 FROM tab2 cor0
----
135424
262144
360000

query I rowsort
SELECT ALL 77 FROM tab1 AS cor0 WHERE NULL IN ( + col1, col1, col2 + - 34 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL - ( + SUM( - col2 ) ) * - + MIN( - ( - - col2 ) ) FROM tab0 AS cor0
----
15444

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - ( + SUM ( - col2 ) ) * - + MIN ( - ( - - col2 ) ) FROM tab0 AS cor0
----
15444

query I rowsort
SELECT ( 29 ) * + col2 FROM tab2 AS cor0
----
1160
1682
667

query I rowsort
SELECT DISTINCT - col0 * + 20 - - col0 FROM tab0 AS cor0
----
-1653
-1843
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT + col2 DIV + 48 + + col2 * + col0 * + - col0 AS col0 FROM tab2 AS cor0
----
-163840
-326249
-48668

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + col2 / + 48 + + col2 * + col0 * + - col0 AS col0 FROM tab2 AS cor0
----
-163840
-326249
-48668

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT - 76 DIV - + col2 AS col0 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4419
SELECT - 76 / - + col2 AS col0 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT + + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT + + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + col2 + - col1 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT - CAST( NULL AS SIGNED ) / ( - + 63 ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT - CAST ( NULL AS INTEGER ) / ( - + 63 ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col1 col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT DISTINCT 15 * - col1 FROM tab1 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL 82 AS col0, 47 * + - col1 FROM tab2
----
82
-2397
82
-3149
82
-3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT ( NULL ) >= - 13
----

query I rowsort
SELECT col2 * + + 91 FROM tab1
----
5369
6188
8736

query II rowsort
SELECT col0, 91 AS col1 FROM tab1
----
51
91
85
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4430
SELECT 37 AS col2, CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
37
15
37
87
37
97

skipif mysql # not compatible
query II rowsort label-4430
SELECT 37 AS col2, CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
37
15
37
87
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT + 93 * + ( - MIN( ALL + + col2 ) ) FROM tab1 AS cor0
----
-5487

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + 93 * + ( - MIN ( ALL + + col2 ) ) FROM tab1 AS cor0
----
-5487

query II rowsort
SELECT DISTINCT + + col2, col0 * + + col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ( + 89 ) * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT ( + 89 ) * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 67 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL + COUNT( - + 72 ) + + - COUNT( col0 ) + 27 * 46 FROM tab2 AS cor0
----
1242

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + COUNT ( - + 72 ) + + - COUNT ( col0 ) + 27 * 46 FROM tab2 AS cor0
----
1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT MAX( CAST( 78 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4435
SELECT MAX ( CAST ( 78 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 37 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + - 96 / col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4438
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4439
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE - col1 + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4439
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE - col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4440
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col2 NOT BETWEEN col0 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4440
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col2 NOT BETWEEN col0 AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 + - 39 + + + col1 FROM tab1
----
25
71
76

query I rowsort
SELECT DISTINCT - col0 + + 8 AS col2 FROM tab2
----
-38
-56
-67

query I rowsort
SELECT ALL ( - 29 ) + + 30 + + col2 * + 38 FROM tab1
----
2243
2585
3649

query I rowsort
SELECT col2 + - ( - col2 ) FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( * ) + + - 56 col2 FROM tab0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4445
SELECT DISTINCT - COUNT ( * ) + + - 56 col2 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL + SUM( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT + col1 DIV + 14 AS col1 FROM tab2 cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4447
SELECT + col1 / + 14 AS col1 FROM tab2 cor0
----
3
4
5

query I rowsort
SELECT DISTINCT + col0 * + 50 + col2 + 53 FROM tab1 cor0
----
2699
4362
4671

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT 64 * 9 - - - COUNT( * ) AS col0 FROM tab2
----
573

skipif mysql # not compatible
query I rowsort label-4449
SELECT 64 * 9 - - - COUNT ( * ) AS col0 FROM tab2
----
573

query I rowsort
SELECT DISTINCT col1 * - 67 AS col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 AS col0, col1 col0 FROM tab0 AS cor0
----
71
1
71
21
71
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT ALL - - COUNT( * ) DIV - - COUNT( * ) col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4453
SELECT ALL - - COUNT ( * ) / - - COUNT ( * ) col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT DISTINCT - MIN( DISTINCT - col1 ) DIV - 3 AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - MIN ( DISTINCT - col1 ) / - 3 AS col2 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col1 FROM tab0 cor0
----
1215
1827
97

query II rowsort
SELECT ALL col1 AS col0, + col1 * - col2 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 73 col2, col2 + - col1 AS col0 FROM tab2 AS cor0
----
73
-28
73
-37
73
-9

query II rowsort
SELECT + col1, 94 + col0 FROM tab0 AS cor0
----
1
191
21
181
81
109

query I rowsort
SELECT 37 * - col1 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT COUNT( DISTINCT - 59 ) * 65 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT COUNT ( DISTINCT - 59 ) * 65 FROM tab0
----
65

query I rowsort
SELECT col0 * 17 FROM tab0
----
1479
1649
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT 60 DIV + - SUM( ALL col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT 60 / + - SUM ( ALL col1 ) AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * col0 col0 FROM tab0
----
-3306
-3686
-570

query I rowsort
SELECT 86 * - 63 * + + col2 AS col2 FROM tab0
----
-254646
-536382
-54180

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL COUNT( * ) * + COUNT( * ) * + + ( COUNT( DISTINCT - col1 ) ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + + ( COUNT ( DISTINCT - col1 ) ) FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT ALL 42 DIV + ( - + ( - + 7 ) ) FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL 42 / + ( - + ( - + 7 ) ) FROM tab2 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4467
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( 49 AS SIGNED ) + col2 NOT BETWEEN NULL AND - + col2 * + + ( + + ( + 14 ) ) * - col0 * - col2 + + 96 + + 83
----

skipif mysql # not compatible
query III rowsort label-4467
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( 49 AS INTEGER ) + col2 NOT BETWEEN NULL AND - + col2 * + + ( + + ( + 14 ) ) * - col0 * - col2 + + 96 + + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL + MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - + 72 + - col0 AS col0 FROM tab0 AS cor0
----
-159
-169
-87

query I rowsort
SELECT DISTINCT 84 * + - 45 FROM tab1
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + - COUNT( * ) + - - 3 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT + - COUNT ( * ) + - - 3 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 41 * - col1 AS col1 FROM tab1 AS cor0
----
-1927
-205
-574

query II rowsort
SELECT - + 19, col0 FROM tab1 AS cor0
----
-19
51
-19
85
-19
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 AS col2, col1 col1 FROM tab2 cor0
----
1
51
1
67
1
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT ALL - 26 DIV - col2 + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - 26 / - col2 + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 BETWEEN + - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 26 + col2 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 51, 1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + - ( - + 16 ) / - col2 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT + 8 - COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4480
SELECT + 8 - COUNT ( * ) FROM tab0
----
5

query I rowsort
SELECT + col1 - + - col2 * col1 FROM tab1
----
1358
300
3243

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 + + 33 + ( + 74 ) * col1 * 40 + col1 + col1 * col2 + + - col2 AND NULL
----

query I rowsort
SELECT + col0 * + + col0 + col0 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT + CAST( + - ( + col1 ) AS SIGNED ) * + ( col1 ) * - col2 + + col0 FROM tab0 AS cor0
----
196
308382
4497

skipif mysql # not compatible
query I rowsort label-4484
SELECT + CAST ( + - ( + col1 ) AS INTEGER ) * + ( col1 ) * - col2 + + col0 FROM tab0 AS cor0
----
196
308382
4497

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + 19 + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4485
SELECT + 19 + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - ( + - MAX( - col0 ) ) * 44 + - 46 + - COUNT( * ) FROM tab2 AS cor0
----
-2073

skipif mysql # not compatible
query I rowsort label-4486
SELECT - ( + - MAX ( - col0 ) ) * 44 + - 46 + - COUNT ( * ) FROM tab2 AS cor0
----
-2073

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab0 cor0 WHERE NOT 96 - + col0 IS NULL
----
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 82 <= + 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4489
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + 54 + + + col2 FROM tab2
----
112
77
94

query II rowsort
SELECT DISTINCT + 38 AS col1, - 2 FROM tab1 WHERE NOT - + 45 IN ( + + 68 + + col2 + - - col1 * col0, 70 * col0 )
----
38
-2

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 74 / - 62 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT - + COUNT( * ) AS col2, 42 AS col0 FROM tab2 AS cor0
----
-3
42

skipif mysql # not compatible
query II rowsort label-4493
SELECT - + COUNT ( * ) AS col2, 42 AS col0 FROM tab2 AS cor0
----
-3
42

query I rowsort
SELECT ALL + - 38 AS col0 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT ALL col2 * - + 97 AS col1 FROM tab2 AS cor0
----
-2231
-3880
-5626

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4496
SELECT ALL * FROM tab0 WHERE + 27 <> - 57 * col0 - + - col1 - - + CAST( NULL AS SIGNED ) + + - col0
----

skipif mysql # not compatible
query III rowsort label-4496
SELECT ALL * FROM tab0 WHERE + 27 <> - 57 * col0 - + - col1 - - + CAST ( NULL AS INTEGER ) + + - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - + 40 ) BETWEEN 92 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL + 72 * COUNT( * ) AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL + 72 * COUNT ( * ) AS col1 FROM tab1
----
216

query II rowsort
SELECT ALL 37 AS col2, col0 * 50 FROM tab1
----
37
2550
37
4250
37
4550

query II rowsort
SELECT ALL col1, - col2 + 81 FROM tab0
----
1
-18
21
71
81
34

query I rowsort
SELECT + col0 * - 44 AS col0 FROM tab1
----
-2244
-3740
-4004

query II rowsort
SELECT DISTINCT + 73 AS col2, - ( 88 ) FROM tab1
----
73
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + - 11 * MAX( - col0 ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-4503
SELECT + - 11 * MAX ( - col0 ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT DISTINCT col1 DIV 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT col1 / 53 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4505
SELECT DISTINCT + col1 + 84 AS col0, 46 DIV + col0 FROM tab2 AS cor0
----
135
1
151
0
161
0

skipif mysql # not compatible
query II rowsort label-4505
SELECT DISTINCT + col1 + 84 AS col0, 46 / + col0 FROM tab2 AS cor0
----
135
1
151
0
161
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT - - col0 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - ( - 95 ) ) + + col1 * + col2 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4508
SELECT DISTINCT - + CAST( NULL AS DECIMAL ), 12 * 80 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL
960

skipif mysql # not compatible
query II rowsort label-4508
SELECT DISTINCT - + CAST ( NULL AS REAL ), 12 * 80 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL
960

query II rowsort
SELECT DISTINCT + ( - col2 ), col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - + MIN( DISTINCT - 20 ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - + MIN ( DISTINCT - 20 ) FROM tab1 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 56 + col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-46
21
-9
81
43
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col2 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT col1 + - CAST( NULL AS SIGNED ) * + 57 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT col1 + - CAST ( NULL AS INTEGER ) * + 57 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 45 + + col1 FROM tab1
----
50
59
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4516
SELECT + CAST( NULL AS SIGNED ) + col2 - + col1 * - + 59 + + - CAST( + - col2 AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4516
SELECT + CAST ( NULL AS INTEGER ) + col2 - + col1 * - + 59 + + - CAST ( + - col2 AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - + 96 FROM tab0
----
-49
-86
3

query I rowsort
SELECT - 98 + + col0 FROM tab0
----
-1
-11
-83

query I rowsort
SELECT ALL col0 * + col0 * col0 - + col2 + + + col2 AS col0 FROM tab2
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - MAX( ALL - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4520
SELECT - MAX ( ALL - col1 ) FROM tab0
----
1

query II rowsort
SELECT 49, - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + - 71 AS col2 FROM tab2 AS cor0 WHERE 94 < col0
----

query I rowsort
SELECT ALL - - 68 AS col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + ( - col1 ) / 58 AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + + 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT + + CAST( + 56 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif mysql # not compatible
query I rowsort label-4526
SELECT + + CAST ( + 56 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab1 cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, + ( 43 ), + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT 19 * + MAX( DISTINCT - 50 ) FROM tab1 AS cor0
----
-950

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT 19 * + MAX ( DISTINCT - 50 ) FROM tab1 AS cor0
----
-950

query I rowsort
SELECT - + 73 * - col2 - - col0 FROM tab2 cor0
----
1725
2984
4309

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NULL IN ( + col1, ( + 11 ), col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NULL IN ( + col1, ( + 11 ), col1 )
----
0

query II rowsort
SELECT col1, col0 * - 36 AS col1 FROM tab0
----
1
-3492
21
-3132
81
-540

query I rowsort
SELECT + 71 * + col2 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT ALL 14 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 21 FROM tab2 WHERE NOT - col0 / + 84 * 43 <> + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT - col2 DIV + - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4536
SELECT - col2 / + - col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT + 38 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 38 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 75 AS col1 FROM tab2 cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + - MIN( - 3 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4539
SELECT + - MIN ( - 3 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT DISTINCT + + col2 * - CAST( 30 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-1123
-1673
-639

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + + col2 * - CAST ( 30 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-1123
-1673
-639

query I rowsort
SELECT + col2 + + 50 + - - col1 FROM tab2 AS cor0
----
124
167
175

query II rowsort
SELECT DISTINCT col1 * + 86 AS col0, col0 + - 5 * - ( col2 ) AS col0 FROM tab2 cor0
----
4386
161
5762
365
6622
264

query II rowsort
SELECT col0, + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - + COUNT( * ) + - MAX( + 0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - + COUNT ( * ) + - MAX ( + 0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT col1 DIV + ( - 80 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT col1 / + ( - 80 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 10 * - col1 FROM tab2 AS cor0
----
-510
-670
-770

query I rowsort
SELECT + col2 * + col2 * - col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query II rowsort label-4548
SELECT - SUM( - col2 ), 4 AS col0 FROM tab2 cor0
----
121
4

skipif mysql # not compatible
query II rowsort label-4548
SELECT - SUM ( - col2 ), 4 AS col0 FROM tab2 cor0
----
121
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT COUNT( * ) AS col1, + SUM( ALL - 27 ) FROM tab0 AS cor0
----
3
-81

skipif mysql # not compatible
query II rowsort label-4549
SELECT COUNT ( * ) AS col1, + SUM ( ALL - 27 ) FROM tab0 AS cor0
----
3
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT ALL + + 75 + + col0 DIV 65 FROM tab0 AS cor0
----
75
76
76

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + + 75 + + col0 / 65 FROM tab0 AS cor0
----
75
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT MAX( ALL + 81 ) * 22 AS col2 FROM tab1 AS cor0
----
1782

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT MAX ( ALL + 81 ) * 22 AS col2 FROM tab1 AS cor0
----
1782

query I rowsort
SELECT ALL col2 * + 19 * + + col2 * + ( + - 29 ) + col2 FROM tab2
----
-1853506
-291456
-881560

query I rowsort
SELECT - col2 - + 27 AS col0 FROM tab2
----
-50
-67
-85

query I rowsort
SELECT ALL + 77 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query II rowsort
SELECT DISTINCT 61 * 24 + - + col0 - + col0, - 0 AS col1 FROM tab0 WHERE - 70 IS NOT NULL
----
1270
0
1290
0
1434
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT BETWEEN - col0 * + 44 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 63 * - col2 * + col1 + - + 78 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 - col2 * + col2 AS col0 FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE + 2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + - 67 * - col0 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT DISTINCT - col2 * - 45 * + col1 FROM tab2 AS cor0
----
138600
174870
52785

query I rowsort
SELECT col1 * + 65 FROM tab1
----
3055
325
910

query I rowsort
SELECT ALL ( - 25 ) AS col1 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT - - col2 / + + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + + COUNT( - + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4567
SELECT + + COUNT ( - + col2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 AS col0, + col0 col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + ( + 28 ) AS col0 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT SUM( ALL + + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4570
SELECT SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE ( NULL <> + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4573
SELECT CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4573
SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 56 * - col1 AS col2 FROM tab0 cor0
----
102312
5432
68040

query II rowsort
SELECT + col1 * + 4, col2 AS col1 FROM tab2
----
204
23
268
58
308
40

query II rowsort
SELECT - 87 + + - 56 AS col1, - 64 * + col2 * - 72 AS col1 FROM tab0
----
-143
216576
-143
456192
-143
46080

query I rowsort
SELECT - 75 + - col1 FROM tab2 cor0
----
-126
-142
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT - 11 + - + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - 11 + - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + + ( + + 26 ) + - col2 FROM tab1 AS cor0
----
-1593
-1836
-2592

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 79 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + - 32 * + - col0 AS col0 FROM tab0 AS cor0
----
2784
3104
480

query I rowsort
SELECT + 1 + + col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + + COUNT( ( 66 ) ) + - 77 AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4586
SELECT + + COUNT ( ( 66 ) ) + - 77 AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT + - col2 + - + 33 * + col2 AS col0 FROM tab2 cor0
----
-1360
-1972
-782

query I rowsort
SELECT DISTINCT - col2 + - + col1 * + ( col2 ) FROM tab0
----
-198
-220
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT ALL - 98 * - + col2 - - col1 + - - CAST( + 23 AS SIGNED ) FROM tab2
----
2328
4020
5774

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - 98 * - + col2 - - col1 + - - CAST ( + 23 AS INTEGER ) FROM tab2
----
2328
4020
5774

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT + 12 DIV + col2 + - - col1 FROM tab0
----
1
22
81

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + 12 / + col2 + - - col1 FROM tab0
----
1
22
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT DISTINCT col2 * - - col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT col2 * - - col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 94 + + col2 * + 48 * + - col1 + - col0 - ( + 71 ) FROM tab2
----
-147881
-186580
-56327

query III rowsort
SELECT * FROM tab1 WHERE 86 + 0 * + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 - + 75 FROM tab2
----
-24
-8
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT ( - - col2 ) * - col1 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL ( 42 ) AS col1 FROM tab0
----
42
42
42

query I rowsort
SELECT DISTINCT 69 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 4 FROM tab2 cor0
----
204
268
308

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT DISTINCT + col0 DIV + 79 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + col0 / + 79 AS col0 FROM tab1 AS cor0
----
0
1

query II rowsort
SELECT ALL + 67 * - - col1, col2 FROM tab2 AS cor0
----
3417
23
4489
58
5159
40

query I rowsort
SELECT + col2 * + col1 * - 91 * col1 + + - 71 AS col0 FROM tab0 cor0
----
-28061468
-401381
-9080

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT ALL + + col0 DIV col0 + col2 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + + col0 / col0 + col2 FROM tab0 cor0
----
100
11
48

query I rowsort
SELECT + col1 * 11 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4605
SELECT ALL + - ( - - 17 ), SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4605
SELECT ALL + - ( - - 17 ), SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-17
NULL

query I rowsort
SELECT ALL + 42 * col1 FROM tab0 cor0
----
3402
42
882

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT col2 * + 43 * + 58 + + + col1 DIV + + col0 FROM tab1 cor0
----
147146
169592
239424

skipif mysql # not compatible
query I rowsort label-4607
SELECT col2 * + 43 * + 58 + + + col1 / + + col0 FROM tab1 cor0
----
147146
169592
239424

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT MIN( ALL - 9 ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT MIN ( ALL - 9 ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4609
SELECT - CAST( NULL AS SIGNED ) col2, - 89 * + + 93 * + 93 AS col0 FROM tab1
----
NULL
-769761
NULL
-769761
NULL
-769761

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4609
SELECT - CAST ( NULL AS INTEGER ) col2, - 89 * + + 93 * + 93 AS col0 FROM tab1
----
NULL
-769761
NULL
-769761
NULL
-769761

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT + COUNT( * ) + + ( + SUM( + + col1 ) ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + COUNT ( * ) + + ( + SUM ( + + col1 ) ) AS col1 FROM tab2
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query II rowsort
SELECT DISTINCT - ( + ( ( - + col0 ) ) ) AS col0, - 84 + - col1 + - col0 FROM tab2
----
46
-181
64
-225
75
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 * 72 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT ALL ( 70 ) * 87 AS col1 FROM tab1
----
6090
6090
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL - col0 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL - col0 ) AS col2 FROM tab0
----
9

query I rowsort
SELECT col0 * col0 + col1 AS col0 FROM tab0
----
306
7590
9410

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + 91 + + COUNT( ALL col1 ) * COUNT( * ) FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 91 + + COUNT ( ALL col1 ) * COUNT ( * ) FROM tab2
----
100

query I rowsort
SELECT ALL 72 * - col1 + col0 * - col1 AS col0 FROM tab1
----
-1722
-7661
-785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * 48 col1 FROM tab1
----
-1728
-1728
-1728

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT DISTINCT 77 DIV ( - 76 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4622
SELECT DISTINCT 77 / ( - 76 ) col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - COUNT( * ) * 67 + + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4623
SELECT - COUNT ( * ) * 67 + + COUNT ( * ) FROM tab1
----
-198

query I rowsort
SELECT + col1 * col1 + + col2 AS col1 FROM tab2
----
2624
4547
5969

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN 18 AND + 98 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - 35 * - 37 AS col0 FROM tab1
----
1346
1380
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT - 74 DIV ( col1 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 74 / ( col1 ) FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 92 + + col1 * - 12 FROM tab1
----
-152
-260
-656

query I rowsort
SELECT col1 * 26 + - col0 AS col1 FROM tab2 WHERE NOT + col2 * + col0 + 6 BETWEEN NULL AND ( col0 )
----
1280
1667
1938

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 <> 53 + col2 * - col1
----

query I rowsort
SELECT ALL col1 + 37 * + col0 FROM tab0
----
3240
3590
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 10 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * + 85 - + 41 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 28 - - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 85 + - 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL - COUNT( * ) * + 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
-882

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - COUNT ( * ) * + 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
-882

query I rowsort
SELECT DISTINCT 96 FROM tab2 AS cor0 CROSS JOIN tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL 57 * + COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL 57 * + COUNT ( * ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT + 41 / + col0 + + 5 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 59 ) col2 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( - 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4645
SELECT DISTINCT - COUNT( * ) + ( COUNT( DISTINCT + CAST( col2 AS DECIMAL ) ) ) * COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - COUNT ( * ) + ( COUNT ( DISTINCT + CAST ( col2 AS REAL ) ) ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
6

query I rowsort
SELECT DISTINCT - + col2 + - col2 AS col2 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4647
SELECT ALL - COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + - - 73 + 1 * - col1 FROM tab0
----
139
169
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL - 82 + SUM( ALL - col0 ) AS col2 FROM tab0
----
-281

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - 82 + SUM ( ALL - col0 ) AS col2 FROM tab0
----
-281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4650
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + ( CAST( col2 AS SIGNED ) * + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4650
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + ( CAST ( col2 AS INTEGER ) * + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT + MAX( + 10 ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT + MAX ( + 10 ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 47 * ( + col2 ) * - col1 AS col0 FROM tab2
----
-144760
-182642
-55131

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL 96 + - ( - COUNT( * ) ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL 96 + - ( - COUNT ( * ) ) FROM tab2
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN ( + col1 ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col1 col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT 21 + col2 + - col1 * 94 AS col0 FROM tab2
----
-4750
-6219
-7177

query I rowsort
SELECT ALL - 86 AS col1 FROM tab1 WHERE NOT ( NULL ) IN ( col2 * ( ( + col2 ) ) - + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - ( COUNT( * ) ) * 63 AS col1 FROM tab2 WHERE NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT - ( COUNT ( * ) ) * 63 AS col1 FROM tab2 WHERE NULL = col0
----
0

query I rowsort
SELECT - ( 7 ) + + col1 FROM tab2
----
44
60
70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - 9 = ( 81 * + 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL - CAST( - 0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - CAST ( - 0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 53 FROM tab2 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + ( + + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + ( + + COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT + 96 + MIN( 4 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4664
SELECT + 96 + MIN ( 4 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 39 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT COUNT( * ) * + CAST( 29 AS SIGNED ) * - 92 FROM tab0, tab1 AS cor0
----
-24012

skipif mysql # not compatible
query I rowsort label-4666
SELECT COUNT ( * ) * + CAST ( 29 AS INTEGER ) * - 92 FROM tab0, tab1 AS cor0
----
-24012

query I rowsort
SELECT ALL col1 - - 24 + - + ( + col0 ) + col2 AS col1 FROM tab0
----
-32
137
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT + 46 - - col2 AS col1 FROM tab2
----
104
69
86

query I rowsort
SELECT ALL - col2 - - 7 FROM tab2
----
-16
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT COUNT( * ) - COUNT( DISTINCT 11 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4671
SELECT COUNT ( * ) - COUNT ( DISTINCT 11 ) FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4672
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + ( + CAST( 99 AS SIGNED ) ) / col0 IS NULL ) OR ( + col2 ) NOT BETWEEN 25 AND ( + col2 * col1 + + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4672
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + ( + CAST ( 99 AS INTEGER ) ) / col0 IS NULL ) OR ( + col2 ) NOT BETWEEN 25 AND ( + col2 * col1 + + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col2 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 93 >= - ( 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 59 * - + col0 AS col0 FROM tab2 AS cor0
----
-2714
-3776
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + 19 * + + COUNT( * ) * + 28 AS col2 FROM tab0
----
1596

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 19 * + + COUNT ( * ) * + 28 AS col2 FROM tab0
----
1596

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4679
SELECT ALL col2 * + col0 AS col1, - CAST( NULL AS SIGNED ) + + - 22 FROM tab2
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-4679
SELECT ALL col2 * + col0 AS col1, - CAST ( NULL AS INTEGER ) + + - 22 FROM tab2
----
1058
NULL
2560
NULL
4350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab2 WHERE ( - col1 ) > col1
----
0

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE ( - col1 ) > col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 64 + - + ( col2 ) + col2 * col0 = col0 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + 24 + - - col1 ) AND 13
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4683
SELECT - col0 DIV - + col0 AS col1, col0 + + col0 AS col1 FROM tab2
----
1
128
1
150
1
92

skipif mysql # not compatible
query II rowsort label-4683
SELECT - col0 / - + col0 AS col1, col0 + + col0 AS col1 FROM tab2
----
1
128
1
150
1
92

query I rowsort
SELECT + ( - col1 ) * - 3 FROM tab1 WHERE NOT col0 + - + col0 / col0 = - col2 / + col0 + ( 54 )
----
141
15
42

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 BETWEEN + 3 * + 90 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT col1 DIV + + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT col1 / + + col0 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + col1 / + col0 > + 70
----
64
77
40

query I rowsort
SELECT DISTINCT - 41 FROM tab1 cor0
----
-41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 57 BETWEEN col0 AND ( NULL )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT CAST( - ( - + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT CAST ( - ( - + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( + col0 + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT COUNT( * ) + + COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4692
SELECT COUNT ( * ) + + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT - col2 + - CAST( + 49 AS SIGNED ) * - - 2 AS col0 FROM tab1 AS cor0
----
-157
-166
-194

skipif mysql # not compatible
query I rowsort label-4693
SELECT - col2 + - CAST ( + 49 AS INTEGER ) * - - 2 AS col0 FROM tab1 AS cor0
----
-157
-166
-194

query I rowsort
SELECT DISTINCT - - 99 + + - 14 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL + 79 + col1 AS col1 FROM tab0 AS cor0
----
100
160
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - col2 BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - 12 * - col2 * - - 34 + + col2 * - + col1 AS col0 FROM tab1
----
23777
24548
37824

query II rowsort
SELECT col1 AS col0, col1 + - - 73 FROM tab2
----
51
124
67
140
77
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT ALL - 71 + + - CAST( NULL AS SIGNED ) / + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - 71 + + - CAST ( NULL AS INTEGER ) / + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + 69 AS col2 FROM tab0
----
116
168
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4701
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 43 FROM tab2
----
NULL
43
NULL
43
NULL
43

skipif mysql # not compatible
query II rowsort label-4701
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 43 FROM tab2
----
NULL
43
NULL
43
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col2 * - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col2 * - col0 IS NULL
----
-3

query I rowsort
SELECT ALL 71 + - - 94 + - col2 + - col2 FROM tab2
----
119
49
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + + 89 + - COUNT( * ) - COUNT( * ) * + 42 FROM tab1 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4704
SELECT + + 89 + - COUNT ( * ) - COUNT ( * ) * + 42 FROM tab1 cor0
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4705
SELECT - - col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT - - col0 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT COUNT( * ) + + - 95 AS col0 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4706
SELECT COUNT ( * ) + + - 95 AS col0 FROM tab0 AS cor0
----
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - 79 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL + + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT 0 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( + 32 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4712
SELECT DISTINCT - + MIN( ALL - + 29 ) AS col1, SUM( + + col0 ) - - - SUM( ALL - col0 ) DIV + - 74 FROM tab1 AS cor0
----
29
224

skipif mysql # not compatible
query II rowsort label-4712
SELECT DISTINCT - + MIN ( ALL - + 29 ) AS col1, SUM ( + + col0 ) - - - SUM ( ALL - col0 ) / + - 74 FROM tab1 AS cor0
----
29
224

query I rowsort
SELECT + ( - ( - + 38 ) ) * + - 70 AS col1 FROM tab0 AS cor0
----
-2660
-2660
-2660

query I rowsort
SELECT ( - + col2 ) * - - col1 * + 71 AS col1 FROM tab2 AS cor0
----
-218680
-275906
-83283

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 25 NOT IN ( col1 / 41 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 + - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 + - col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col2 FROM tab1 AS cor0 WHERE NOT + col1 * - - 85 + - col2 >= ( NULL )
----

query I rowsort
SELECT col0 * + 65 AS col1 FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT + ( 36 ) * 71 * - + col1 IN ( - ( col2 ) * ( 40 - 63 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4720
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + ( 36 ) * 71 * - + col1 IN ( - ( col2 ) * ( 40 - 63 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( col0 / - col0 + - + 60 - + col1 ) IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( col0 / - col0 + - + 60 - + col1 ) IN ( col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 97 + - col2 * + col2 * + 88 col2 FROM tab0
----
-1
-862391
-21
-8703
-81
-194295

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL MAX( - + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL MAX ( - + col0 ) AS col0 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 46 / - - col2 ) BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT - MAX( - + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - MAX ( - + col2 ) AS col2 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col0 FROM tab2 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 9 ) col0 FROM tab0 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 - + + 16 col2 FROM tab0 AS cor0
----
-112
-82
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + col2 + - 52 <> ( + 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT - ( COUNT( ALL - + col0 ) ) * MAX( - col1 ) + 83 AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4731
SELECT - ( COUNT ( ALL - + col0 ) ) * MAX ( - col1 ) + 83 AS col1 FROM tab0 AS cor0
----
86

query I rowsort
SELECT + 3 + + col1 FROM tab1
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT 81 + - + ( + COUNT( * ) ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT 81 + - + ( + COUNT ( * ) ) FROM tab0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT DISTINCT col0 DIV + - col0 + + - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT col0 / + - col0 + + - col1 FROM tab2
----
-52
-68
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + 21 AS col1 FROM tab1
----
106
112
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT CAST( - col2 AS SIGNED ) + 20 AS col2 FROM tab0
----
-27
-79
10

skipif mysql # not compatible
query I rowsort label-4737
SELECT CAST ( - col2 AS INTEGER ) + 20 AS col2 FROM tab0
----
-27
-79
10

query II rowsort
SELECT + col1 * col1 * + col1 AS col2, col0 FROM tab0
----
1
97
531441
15
9261
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT + col0 - + col0 + + col1 DIV col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + col0 - + col0 + + col1 / col2 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 col2, 43 AS col0 FROM tab0
----
29
43
29
43
29
43

query I rowsort
SELECT + 48 * + col1 FROM tab2 AS cor0
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT + 67 - COUNT( * ) * + - 34 FROM tab1 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT + 67 - COUNT ( * ) * + - 34 FROM tab1 AS cor0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - COUNT( * ) - + ( 96 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4743
SELECT - COUNT ( * ) - + ( 96 ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT - 93 / col2 * + col2 + col2 * 21 AS col0 FROM tab1 WHERE NOT - - col2 * - col1 + + 62 IN ( + ( col1 ) + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4744
SELECT - 93 / col2 * + col2 + col2 * 21 AS col0 FROM tab1 WHERE NOT - - col2 * - col1 + + 62 IN ( + ( col1 ) + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 67 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT + SUM( - 29 ) AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + SUM ( - 29 ) AS col0 FROM tab2 AS cor0
----
-87

query II rowsort
SELECT ALL col2, - col2 AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT DISTINCT + 47, + ( + col1 ) FROM tab2 cor0
----
47
51
47
67
47
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 31 - - ( col1 ) col2 FROM tab0 AS cor0
----
-1376
-289
-3068

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT + col2 DIV - 88 AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + col2 / - 88 AS col2 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT + col0 * + 83 * - - 72 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * - col0 + - - 36 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT - ( + - 8 ) DIV 33 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT DISTINCT - ( + - 8 ) / 33 col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL MAX( DISTINCT - + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL MAX ( DISTINCT - + col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT - col2 * + - col2 * col1 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - MAX( DISTINCT - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4756
SELECT - MAX ( DISTINCT - col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT DISTINCT 18, ( - + COUNT( * ) ) AS col1 FROM tab0, tab1 cor0
----
18
-9

skipif mysql # not compatible
query II rowsort label-4757
SELECT DISTINCT 18, ( - + COUNT ( * ) ) AS col1 FROM tab0, tab1 cor0
----
18
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-4758
SELECT + col1 DIV col2 AS col2, - col2 - + col2 AS col0 FROM tab1
----
0
-118
0
-136
0
-192

skipif mysql # not compatible
query II rowsort label-4758
SELECT + col1 / col2 AS col2, - col2 - + col2 AS col0 FROM tab1
----
0
-118
0
-136
0
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4759
SELECT * FROM tab1 WHERE NOT - col0 * + 95 * + + col0 + col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4759
SELECT * FROM tab1 WHERE NOT - col0 * + 95 * + + col0 + col2 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4760
SELECT ALL col2 DIV - col0 - - ( - - col0 ) * + - col2 + + col1, col2 FROM tab2 WHERE NOT - col2 <= - col0
----
-1007
23
-2483
40
-4283
58

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL col2 / - col0 - - ( - - col0 ) * + - col2 + + col1, col2 FROM tab2 WHERE NOT - col2 <= - col0
----
-1007
23
-2483
40
-4283
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - 18
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < ( 85 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query II rowsort
SELECT ( + col0 ), 45 FROM tab1 AS cor0
----
51
45
85
45
91
45

query I rowsort
SELECT - + col1 + + 8 + - col0 FROM tab0 AS cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab0 cor0
----
92

query I rowsort
SELECT ALL + + col1 * - + 32 + + 6 AS col1 FROM tab0 AS cor0
----
-2586
-26
-666

query II rowsort
SELECT - col1 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + 82 * col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
4182
6970
7462

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 41 / col2 / - - col0 BETWEEN + - 4 AND NULL
----

query II rowsort
SELECT - 6, col2 AS col2 FROM tab0 AS cor0
----
-6
10
-6
47
-6
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT COUNT( + 86 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4772
SELECT COUNT ( + 86 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 7 * - + ( - + col2 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT - + 58 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-58
3

skipif mysql # not compatible
query II rowsort label-4774
SELECT - + 58 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-58
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT + COUNT( DISTINCT - col2 ), COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4775
SELECT + COUNT ( DISTINCT - col2 ), COUNT ( * ) AS col1 FROM tab0
----
3
3

query I rowsort
SELECT ALL col0 - - + col1 + + 5 FROM tab2
----
102
146
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL 66 + + COUNT( * ) + - MAX( ALL - 19 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 66 + + COUNT ( * ) + - MAX ( ALL - 19 ) FROM tab0
----
88

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + col1 / + + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - 94 + - COUNT( * ) col1 FROM tab0 WHERE + + col0 < + ( + + col1 ) * + 12 + + col0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4780
SELECT - 94 + - COUNT ( * ) col1 FROM tab0 WHERE + + col0 < + ( + + col1 ) * + 12 + + col0
----
-97

query I rowsort
SELECT ALL col2 - - - col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT + - 64 + + col1 + + - CAST( NULL AS SIGNED ) + - col2 * 89 + + ( + col0 ) * - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT + - 64 + + col1 + + - CAST ( NULL AS INTEGER ) + - col2 * 89 + + ( + col0 ) * - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col2 * - 52 FROM tab2 AS cor0
----
-1173
-2040
-2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * - + col0 + + 46 col0 FROM tab1 AS cor0
----
-1688
-2844
-3048

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 cor0 WHERE ( NULL ) BETWEEN - - col1 * - col0 + + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT DISTINCT + - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + - col0 / col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT + CAST( - 51 AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4788
SELECT + CAST ( - 51 AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT 84 * + 55 AS col2 FROM tab2
----
4620

query II rowsort
SELECT ALL - ( - ( + col2 ) ), - col1 * - - 18 * 65 AS col1 FROM tab1 AS cor0
----
59
-5850
68
-54990
96
-16380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4792
SELECT + COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 WHERE - col2 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 WHERE - col2 * col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL 71 * + - col0 AS col1 FROM tab0 AS cor0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - SUM( ALL - - 45 ) * - - COUNT( * ) FROM tab0 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - SUM ( ALL - - 45 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-405

query I rowsort
SELECT ALL - ( + 94 ) FROM tab1 cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT MAX( col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT DISTINCT MAX ( col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT ALL 3 DIV + + MIN( ALL + - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL 3 / + + MIN ( ALL + - col0 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - + col2 ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + + 74 ) FROM tab1
----
-74

query I rowsort
SELECT 12 + 85 FROM tab2
----
97
97
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 < + col2
----
15
81
47
87
21
10

query I rowsort
SELECT col0 + - + ( - 46 ) FROM tab1
----
131
137
97

query I rowsort
SELECT ALL - - ( - + col0 ) * + 46 + - col1 * - 71 AS col1 FROM tab0 AS cor0
----
-2511
-4391
5061

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT DISTINCT + col1 DIV 30 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT + col1 / 30 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT - COUNT( * ) + 88 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - COUNT ( * ) + 88 FROM tab0
----
85

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 13 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT + 56 * + 33, col1 AS col2 FROM tab0
----
1848
1
1848
21
1848
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4809
SELECT ALL * FROM tab1 WHERE NOT + + 18 * + - CAST( NULL AS SIGNED ) * - col2 + + + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4809
SELECT ALL * FROM tab1 WHERE NOT + + 18 * + - CAST ( NULL AS INTEGER ) * - col2 + + + col0 >= NULL
----

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 16
----

query II rowsort
SELECT ALL + 53 + - - col1 + - - col2 AS col1, - col1 + col2 FROM tab2 cor0
----
127
-28
170
-37
178
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 97 + - ( col0 ) NOT IN ( + + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT - col2 + - CAST( + 23 AS SIGNED ) * - - 97 FROM tab0
----
-2241
-2278
-2330

skipif mysql # not compatible
query I rowsort label-4816
SELECT - col2 + - CAST ( + 23 AS INTEGER ) * - - 97 FROM tab0
----
-2241
-2278
-2330

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT 89 - - COUNT( * ) AS col1 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT 89 - - COUNT ( * ) AS col1 FROM tab0
----
92

query II rowsort
SELECT ALL - col2, + 1 AS col1 FROM tab2
----
-23
1
-40
1
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL + COUNT( * ) - MAX( ALL - 10 ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + COUNT ( * ) - MAX ( ALL - 10 ) AS col1 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 col0 FROM tab2 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL IN ( - 45 * CAST( + 35 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL IN ( - 45 * CAST ( + 35 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - COUNT( * ) * + MAX( - 80 ) AS col0 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-4823
SELECT - COUNT ( * ) * + MAX ( - 80 ) AS col0 FROM tab2
----
240

query I rowsort
SELECT DISTINCT + 68 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col0 FROM tab2 cor0
----
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + 65
----

query I rowsort
SELECT + - 66 AS col1 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4828
SELECT + + CAST( NULL AS DECIMAL ) * + + 50 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + + CAST ( NULL AS REAL ) * + + 50 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 43 FROM tab1
----
-2193
-3655
-3913

query II rowsort
SELECT DISTINCT col2 AS col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT - MAX( ALL + col2 ) * MAX( - col0 ) AS col0 FROM tab0
----
1485

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - MAX ( ALL + col2 ) * MAX ( - col0 ) AS col0 FROM tab0
----
1485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 12 - + + col2 * + col0 col2 FROM tab0 WHERE NOT 21 * - col0 * + col1 = - 47
----
-717
-882
-9615

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN NULL AND - col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( - 51 ) col1 FROM tab0
----
-4437
-4947
-765

onlyif mysql # DIV for integer division: 
query II rowsort label-4835
SELECT + col2, col2 DIV col0 + - + col0 * col1 + - col2 FROM tab2
----
23
-2369
40
-4968
58
-5083

skipif mysql # not compatible
query II rowsort label-4835
SELECT + col2, col2 / col0 + - + col0 * col1 + - col2 FROM tab2
----
23
-2369
40
-4968
58
-5083

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE NOT 54 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + + col2 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + 45 + + col1 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT + + ( - + 53 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL col2 + + col0 * + - 51 AS col0 FROM tab2
----
-2323
-3224
-3767

query I rowsort
SELECT - + col2 FROM tab2 WHERE - col0 <> + + col2
----
-23
-40
-58

query I rowsort
SELECT + 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - + COUNT( 64 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4843
SELECT - + COUNT ( 64 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT - + MAX( ALL + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4844
SELECT - + MAX ( ALL + col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL ( + + 81 ) FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT col2 + 16 AS col2 FROM tab2 AS cor0
----
39
56
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT MIN( col2 ) + - 60 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT MIN ( col2 ) + - 60 AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 71 col2 FROM tab0
----
-50
-70
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT + - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NOT ( ( ( NULL ) IN ( - CAST( NULL AS SIGNED ) - - col1, - col1 * col1 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT + - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NOT ( ( ( NULL ) IN ( - CAST ( NULL AS INTEGER ) - - col1, - col1 * col1 ) ) ) )
----
0

query I rowsort
SELECT col1 * - - ( 50 ) AS col0 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT COUNT( * ) * + 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-4854
SELECT COUNT ( * ) * + 51 FROM tab0
----
153

query II rowsort
SELECT - 43, + col1 FROM tab0 AS cor0
----
-43
1
-43
21
-43
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + - - col0 + - col0 * + 37 col2 FROM tab2 AS cor0
----
-1737
-2385
-2781

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + col1 + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + col1 + + col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE - col0 - + col2 IN ( - ( - 65 ), 62, - - col0 )
----

query I rowsort
SELECT ALL + - col2 + - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL col1 DIV - ( + ( - col0 ) ) AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL col1 / - ( + ( - col0 ) ) AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL - + col0 * + + col0 + + + col1 + col0 FROM tab2 cor0
----
-2019
-3955
-5483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT + MIN( + 53 ) + + 71 + - + MIN( DISTINCT col0 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT + MIN ( + 53 ) + + 71 + - + MIN ( DISTINCT col0 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 + + + col0 + + - col1 < - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 * + + col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col1 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT col1 + + 10 AS col0 FROM tab2 AS cor0
----
61
77
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * - 6 col0 FROM tab2
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4870
SELECT ALL MAX( ALL - - col0 ) DIV - - COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL MAX ( ALL - - col0 ) / - - COUNT ( * ) AS col0 FROM tab1
----
30

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE NOT ( NULL ) <= 49
----

query I rowsort
SELECT + 49 * + + col2 FROM tab1
----
2891
3332
4704

query II rowsort
SELECT DISTINCT + col1, ( + 75 ) * 50 + col0 FROM tab1
----
14
3801
47
3841
5
3835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4874
SELECT + + col0 AS col0, CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-4874
SELECT + + col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4875
SELECT 3 DIV COUNT( * ) * + + MIN( ALL col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4875
SELECT 3 / COUNT ( * ) * + + MIN ( ALL col1 ) AS col2 FROM tab1
----
5

query II rowsort
SELECT DISTINCT + col1 AS col2, - 63 + col2 + + - col1 FROM tab2
----
51
-91
67
-72
77
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT + COUNT( * ), 38 AS col2 FROM tab2
----
3
38

skipif mysql # not compatible
query II rowsort label-4877
SELECT + COUNT ( * ), 38 AS col2 FROM tab2
----
3
38

query II rowsort
SELECT DISTINCT col1 AS col0, + col0 - 20 FROM tab1 AS cor0
----
14
31
47
71
5
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT 93 DIV + col1 FROM tab0 AS cor0
----
1
4
93

skipif mysql # not compatible
query I rowsort label-4879
SELECT 93 / + col1 FROM tab0 AS cor0
----
1
4
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4880
SELECT - CAST( - col1 AS SIGNED ) AS col2, + ( + col0 ) AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-4880
SELECT - CAST ( - col1 AS INTEGER ) AS col2, + ( + col0 ) AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT 76 * - 40 * + 10 FROM tab0
----
-30400
-30400
-30400

query I rowsort
SELECT ALL + 40 + - col0 AS col0 FROM tab0
----
-47
-57
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT 84 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT 84 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 42 FROM tab0
----
-32
5
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + MAX( - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + MAX ( - col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT SUM( ALL - - col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4886
SELECT DISTINCT SUM ( ALL - - col0 ) col1 FROM tab0
----
199

query I rowsort
SELECT - 55 + - col2 AS col1 FROM tab1 cor0
----
-114
-123
-151

query I rowsort
SELECT DISTINCT col2 + + + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL + + 58 AS col1 FROM tab0 WHERE + - col1 / - col2 + + col0 / + - 88 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 34 - - - 40 + - + 50 FROM tab2
----
-124

query I rowsort
SELECT - col0 * + + 3 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT ALL + COUNT( * ) DIV + 32 + - 6 AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + COUNT ( * ) / + 32 + - 6 AS col1 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 83 col1 FROM tab2 AS cor0
----
-19
-37
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT - + 0 - + - 1 DIV + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT - + 0 - + - 1 / + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - 57 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - 57 IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4896
SELECT ALL 58 DIV + MIN( - 85 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL 58 / + MIN ( - 85 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT ALL + 12 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + 12 / + col2 FROM tab0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 81 >= + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT + CAST( NULL AS SIGNED ) + - - COUNT( * ) - - - COUNT( * ) FROM tab2 WHERE NOT NULL >= 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - - - COUNT ( * ) FROM tab2 WHERE NOT NULL >= 54
----
NULL

query I rowsort
SELECT ALL ( col0 ) * - - col1 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 66 * 38 FROM tab2
----
2508

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col2 AS col1 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT col2 AS col0, col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT - - 82 * + ( - CAST( + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-1886
-3280
-4756

skipif mysql # not compatible
query I rowsort label-4905
SELECT - - 82 * + ( - CAST ( + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-1886
-3280
-4756

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT ALL + col2 DIV 64 col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4906
SELECT ALL + col2 / 64 col0 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + ( - 45 ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4908
SELECT - CAST( NULL AS SIGNED ) AS col2, - col2 + - 71 FROM tab0
----
NULL
-118
NULL
-170
NULL
-81

skipif mysql # not compatible
query II rowsort label-4908
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col2 + - 71 FROM tab0
----
NULL
-118
NULL
-170
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4909
SELECT CAST( NULL AS SIGNED ) / - 23 AS col0, - col0 + - 6 FROM tab2
----
NULL
-52
NULL
-70
NULL
-81

skipif mysql # not compatible
query II rowsort label-4909
SELECT CAST ( NULL AS INTEGER ) / - 23 AS col0, - col0 + - 6 FROM tab2
----
NULL
-52
NULL
-70
NULL
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( 59 ) / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT MIN( - + ( 72 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-4911
SELECT MIN ( - + ( 72 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

query I rowsort
SELECT - - col1 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT MIN( + + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4913
SELECT MIN ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE + 84 IS NULL
----

query I rowsort
SELECT DISTINCT 68 + 26 FROM tab1 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT ALL - col1 * 98 DIV - - ( - col2 ) + col2 FROM tab0 AS cor0
----
215
215
99

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - col1 * 98 / - - ( - col2 ) + col2 FROM tab0 AS cor0
----
215
215
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT col2 - - + col2 DIV + - 13 FROM tab0 AS cor0 WHERE ( NOT - + 80 >= - - 99 )
----
10
44
92

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT col2 - - + col2 / + - 13 FROM tab0 AS cor0 WHERE ( NOT - + 80 >= - - 99 )
----
10
44
92

query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col2 col0, + col1 FROM tab0
----
705
81
870
21
9603
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT ALL - CAST( col2 AS SIGNED ), - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL - CAST ( col2 AS INTEGER ), - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + SUM( ALL 2 ) * + 78 - - COUNT( * ) AS col0 FROM tab1 cor0
----
471

skipif mysql # not compatible
query I rowsort label-4922
SELECT + SUM ( ALL 2 ) * + 78 - - COUNT ( * ) AS col0 FROM tab1 cor0
----
471

query I rowsort
SELECT + + 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT DISTINCT - col0, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT ALL - - col1 * 16 FROM tab1 cor0
----
224
752
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col1 FROM tab1 cor0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - - col0 * + 70 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL COUNT( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT ALL - + 81 DIV - 31 + - col2 - - col2 + + 5 AS col2 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - + 81 / - 31 + - col2 - - col2 + + 5 AS col2 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT col2 * + + 93 FROM tab0 cor0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 / - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 / - col0 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > - col0
----

query I rowsort
SELECT DISTINCT 3 * + 71 AS col0 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4935
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 87 col2 FROM tab0 cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 87 + + 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col0, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT ALL - + 22 DIV - + COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - + 22 / - + COUNT ( * ) FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + - COUNT( * ) + + + SUM( ALL - 63 ) AS col1 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4940
SELECT + - COUNT ( * ) + + + SUM ( ALL - 63 ) AS col1 FROM tab1 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT ALL col0 DIV - - col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL col0 / - - col1 AS col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT 91 + col1 DIV col1 * + - 33 * col0 AS col0 FROM tab0 AS cor0
----
-2780
-3110
-404

skipif mysql # not compatible
query I rowsort label-4942
SELECT 91 + col1 / col1 * + - 33 * col0 AS col0 FROM tab0 AS cor0
----
-2780
-3110
-404

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL + SUM( ALL - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + SUM ( ALL - + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL - col1 * + - 30 + + 90 + - 78 AS col2 FROM tab2 AS cor0
----
1542
2022
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + SUM( 71 ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4946
SELECT + SUM ( 71 ) FROM tab0 AS cor0
----
213

query III rowsort
SELECT - - 43 AS col0, + col0 * + 57, + col1 AS col1 FROM tab0 AS cor0
----
9 values hashing to 26cc57940cfd0da97d65432c054a4717

query I rowsort
SELECT + - 44 AS col0 FROM tab2 cor0
----
-44
-44
-44

query I rowsort
SELECT + + col1 * + 89 + + col2 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1979
9465
9989

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT - 96 DIV col2 + + 75 FROM tab2 WHERE ( NOT ( col0 BETWEEN NULL AND + 61 ) )
----
73
74

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - 96 / col2 + + 75 FROM tab2 WHERE ( NOT ( col0 BETWEEN NULL AND + 61 ) )
----
73
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4951
SELECT + CAST( NULL AS SIGNED ) AS col0, ( - + CAST( + col2 AS SIGNED ) ) + - ( 54 ) + - col1 * - - col1 AS col2 FROM tab1
----
NULL
-138
NULL
-2331
NULL
-346

skipif mysql # not compatible
query II rowsort label-4951
SELECT + CAST ( NULL AS INTEGER ) AS col0, ( - + CAST ( + col2 AS INTEGER ) ) + - ( 54 ) + - col1 * - - col1 AS col2 FROM tab1
----
NULL
-138
NULL
-2331
NULL
-346

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 23 * - col0 * + col0 * + col1 NOT BETWEEN + 9 + + + 33 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 56 * + col1 AS col2 FROM tab1 AS cor0
----
-2632
-280
-784

query I rowsort
SELECT + + col0 * + - ( - 69 ) + + col2 + col2 FROM tab2 cor0
----
3220
4496
5291

query I rowsort
SELECT col1 + - - 31 AS col0 FROM tab1 AS cor0
----
36
45
78

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 32 * - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 29 * col0 * - - 72 AS col0, - 6 FROM tab0
----
181656
-6
202536
-6
31320
-6

query I rowsort
SELECT - ( + + ( - 57 ) ) * - col0 AS col2 FROM tab2 WHERE NOT col1 BETWEEN + col1 / + - 24 + + + 47 + + col2 * - 40 AND NULL
----

query I rowsort
SELECT DISTINCT + 7 * - + 37 FROM tab2
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - MAX( + 62 ) AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4960
SELECT - MAX ( + 62 ) AS col1 FROM tab2 AS cor0
----
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col2 + + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col1 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT + ( + - 46 ) * + SUM( - - col2 ) FROM tab1 AS cor0
----
-10258

skipif mysql # not compatible
query I rowsort label-4963
SELECT + ( + - 46 ) * + SUM ( - - col2 ) FROM tab1 AS cor0
----
-10258

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4964
SELECT - SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL MIN( ALL - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - 68 * + col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + ( - + col1 ), col1 + + col0 AS col1 FROM tab0 AS cor0
----
-1
98
-21
108
-81
96

query I rowsort
SELECT ALL + 33 * col2 AS col0 FROM tab2 AS cor0
----
1320
1914
759

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL + COUNT( - - ( - col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL + COUNT ( - - ( - col1 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + 29 * - - ( ( - - col2 ) ) FROM tab2
----
1160
1682
667

query I rowsort
SELECT + 39 * - + col2 AS col0 FROM tab1
----
-2301
-2652
-3744

query II rowsort
SELECT col1 AS col0, 66 * + ( col1 ) FROM tab0
----
1
66
21
1386
81
5346

query I rowsort
SELECT DISTINCT - - ( + 63 ) + + col0 AS col2 FROM tab1 AS cor0
----
114
148
154

query II rowsort
SELECT + col2, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT ALL - 6 DIV COUNT( * ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - 6 / COUNT ( * ) AS col2 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + COUNT( * ) * + 24 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4978
SELECT + COUNT ( * ) * + 24 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT + 24 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4979
SELECT + 24 / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT DISTINCT - + 48 DIV - col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - + 48 / - col2 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT - - 37 + ( col0 ) AS col0 FROM tab0 AS cor0
----
124
134
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT + - COUNT( ALL - + 63 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + - COUNT ( ALL - + 63 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col2 + - col1 + col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
2505
7166
8213

query I rowsort
SELECT - col2 + - - 86 AS col0 FROM tab0 AS cor0
----
-13
39
76

query I rowsort
SELECT ALL + 84 * ( - 37 ) FROM tab1
----
-3108
-3108
-3108

query I rowsort
SELECT DISTINCT + 34 + - 66 FROM tab0
----
-32

query I rowsort
SELECT DISTINCT + 29 - + + 56 FROM tab2
----
-27

query I rowsort
SELECT ALL 9 - + + col2 AS col1 FROM tab1
----
-50
-59
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT 96 FROM tab0 WHERE - - col1 * - 65 + - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4989
SELECT 96 FROM tab0 WHERE - - col1 * - 65 + - CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4990
SELECT DISTINCT - - CAST( + col1 AS SIGNED ) / + - CAST( NULL AS DECIMAL ) FROM tab1 WHERE 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ) / + - CAST ( NULL AS REAL ) FROM tab1 WHERE 63 IS NULL
----

query I rowsort
SELECT DISTINCT - 7 + - 41 * + col0 AS col0 FROM tab2
----
-1893
-2631
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + MAX( 33 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + MAX ( 33 ) AS col2 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4993
SELECT * FROM tab0 WHERE - col2 * + 82 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4993
SELECT * FROM tab0 WHERE - col2 * + 82 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab2 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - + 29 * - - COUNT( * ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4995
SELECT - + 29 * - - COUNT ( * ) FROM tab0 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT col1 DIV - 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT col1 / - 59 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT ALL - COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4998
SELECT - MAX( + - col2 ) + - - CAST( - 14 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT - MAX ( + - col2 ) + - - CAST ( - 14 AS REAL ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

query II rowsort
SELECT + col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL - SUM( ( col0 ) ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - SUM ( ( col0 ) ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT + ( - 78 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 7 - - 7 * 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + - SUM( ALL - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5003
SELECT + - SUM ( ALL - col2 ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - MAX( DISTINCT + 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5004
SELECT - MAX ( DISTINCT + 41 ) FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + - col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT DISTINCT CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT col0 * - col1 * + col0 AS col0, + col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 72 + + 45 IS NOT NULL
----

query I rowsort
SELECT col2 * - - col0 FROM tab1 cor0
----
4896
5015
6188

query II rowsort
SELECT 50 AS col0, col0 FROM tab1 AS cor0
----
50
51
50
85
50
91

query I rowsort
SELECT 85 * 77 AS col1 FROM tab1
----
6545
6545
6545

query II rowsort
SELECT ALL + - col2 * ( - 0 ), + col1 FROM tab2 WHERE NOT + - col0 + - col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT 74 * + + col0 FROM tab1
----
3774
6290
6734

query III rowsort
SELECT * FROM tab2 WHERE NOT - 70 * + - col0 * - col1 BETWEEN - col1 AND ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL 82 * COUNT( * ) * - COUNT( * ) FROM tab1
----
-738

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL 82 * COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT + COUNT( * ) * SUM( - 17 ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + COUNT ( * ) * SUM ( - 17 ) AS col0 FROM tab2
----
-153

query I rowsort
SELECT DISTINCT + 48 FROM tab1 cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT + CAST( + + 33 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-5017
SELECT + CAST ( + + 33 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - - SUM( ALL + col2 ) col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5018
SELECT - - SUM ( ALL + col2 ) col0 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, 30 col2 FROM tab1 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT + col2 + - + 26 FROM tab2 AS cor0
----
-3
14
32

query I rowsort
SELECT + col2 + + 48 - - 78 FROM tab1 AS cor0
----
185
194
222

query I rowsort
SELECT - 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col2 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT - 45 + - CAST( + col0 AS SIGNED ) + + col2 AS col1 FROM tab2
----
-62
-68
-69

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - 45 + - CAST ( + col0 AS INTEGER ) + + col2 AS col1 FROM tab2
----
-62
-68
-69

query I rowsort
SELECT ALL - - col2 * col2 AS col0 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT col2 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL - ( ( + MIN( - col0 ) ) ) * + + 76 * - + 5 AS col0 FROM tab2 AS cor0
----
-28500

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - ( ( + MIN ( - col0 ) ) ) * + + 76 * - + 5 AS col0 FROM tab2 AS cor0
----
-28500

query II rowsort
SELECT col0 AS col2, - col0 + col1 AS col0 FROM tab0 cor0
----
15
66
87
-66
97
-96

query I rowsort
SELECT DISTINCT col0 * 90 + - col0 + + 59 + + ( col0 ) * + col2 * ( col0 ) FROM tab1 AS cor0
----
254294
433899
571266

query I rowsort
SELECT + 95 - - - col0 AS col0 FROM tab0 AS cor0
----
-2
8
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 IN ( 4 * - - col2 + col1 * - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - + col2 - + col1 * + col0 FROM tab0
----
-196
-2037
-5022

query II rowsort
SELECT + col1 * + col0, + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 73 * + + col0 - - col1 + col0 AS col0 FROM tab2
----
3455
4813
5617

query I rowsort
SELECT ALL col2 - 24 AS col0 FROM tab1
----
35
44
72

query I rowsort
SELECT DISTINCT + 54 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
54

query I rowsort
SELECT ALL + 27 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT + 92 DIV col2 * + col1 * + col1 + + + 46 FROM tab2 AS cor0
----
10450
11904
4535

skipif mysql # not compatible
query I rowsort label-5038
SELECT + 92 / col2 * + col1 * + col1 + + + 46 FROM tab2 AS cor0
----
10450
11904
4535

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + MIN( DISTINCT - col0 ) * + COUNT( * ) FROM tab0 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5039
SELECT + MIN ( DISTINCT - col0 ) * + COUNT ( * ) FROM tab0 cor0
----
-291

query I rowsort
SELECT ALL + col2 * - 42 AS col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

query I rowsort
SELECT - - ( - 24 ) AS col0 FROM tab1 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT COUNT( ALL + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5042
SELECT COUNT ( ALL + col0 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT + CAST( - 57 AS SIGNED ) col1 FROM tab0 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5043
SELECT + CAST ( - 57 AS INTEGER ) col1 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL col1 * + - col2 + 49 FROM tab1
----
-1295
-246
-3147

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT ( COUNT( * ) ) * + 1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT ( COUNT ( * ) ) * + 1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL MAX( - ( + ( col2 ) ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL MAX ( - ( + ( col2 ) ) ) FROM tab0
----
-10

query I rowsort
SELECT + 59 + 90 FROM tab1
----
149
149
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL SUM( CAST( - 96 AS SIGNED ) ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL SUM ( CAST ( - 96 AS INTEGER ) ) FROM tab1
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5049
SELECT + 43 + - - col2 * col2 - + CAST( NULL AS SIGNED ) AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5049
SELECT + 43 + - - col2 * col2 - + CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / + col0 <= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT - CAST( - - 63 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-5051
SELECT - CAST ( - - 63 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL + - col2 * + + col0 + + col1 - ( + col2 ) + + - col0 FROM tab0 AS cor0
----
-686
-946
-9798

query I rowsort
SELECT ALL + 24 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL + 46 FROM tab0 WHERE - - col0 - + col1 <= col0 / ( + 74 )
----
46

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - col0 - - col2 + + col1 * - + col1 FROM tab2
----
-10056
-4694
-9985

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT 65 * + + COUNT( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT 65 * + + COUNT ( + col1 ) FROM tab2
----
195

query II rowsort
SELECT 99 - + 81, + 77 AS col2 FROM tab0
----
18
77
18
77
18
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT 90 + - + COUNT( * ) AS col2, MIN( ALL col0 ) * 11 - + - 39 AS col1 FROM tab2 cor0
----
87
545

skipif mysql # not compatible
query II rowsort label-5059
SELECT 90 + - + COUNT ( * ) AS col2, MIN ( ALL col0 ) * 11 - + - 39 AS col1 FROM tab2 cor0
----
87
545

query I rowsort
SELECT ALL + - 60 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) + + 64 + col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT COUNT( ALL - col0 ) col0 FROM tab0 WHERE NOT - + col0 <> + ( col2 ) - + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5062
SELECT DISTINCT COUNT ( ALL - col0 ) col0 FROM tab0 WHERE NOT - + col0 <> + ( col2 ) - + col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT + MAX( + - CAST( + - 87 AS SIGNED ) ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-5063
SELECT + MAX ( + - CAST ( + - 87 AS INTEGER ) ) FROM tab2
----
87

query I rowsort
SELECT 68 * + 60 FROM tab0
----
4080
4080
4080

query I rowsort
SELECT DISTINCT ( col2 ) - + col1 AS col2 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT - 5, col1 AS col0 FROM tab2
----
-5
51
-5
67
-5
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + 52 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5068
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - 40 + + - col1 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5068
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - 40 + + - col1 + + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT - CAST( + 15 AS SIGNED ) FROM tab2 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-5069
SELECT - CAST ( + 15 AS INTEGER ) FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-5070
SELECT ALL + ( + + 74 ) DIV + col1 AS col0, + 42 AS col0 FROM tab1 AS cor0
----
1
42
14
42
5
42

skipif mysql # not compatible
query II rowsort label-5070
SELECT ALL + ( + + 74 ) / + col1 AS col0, + 42 AS col0 FROM tab1 AS cor0
----
1
42
14
42
5
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT + MAX( + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + MAX ( + col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT 43 * - 17 FROM tab2 AS cor0 WHERE NOT 28 NOT IN ( - col1 - - 50 + - col2 / - + col1 + + - 81 / 24 )
----

query I rowsort
SELECT DISTINCT + 47 + col2 * - 81 FROM tab1
----
-4732
-5461
-7729

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL MIN( DISTINCT 9 ) AS col1 FROM tab0 WHERE NOT + col1 <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MIN ( DISTINCT 9 ) AS col1 FROM tab0 WHERE NOT + col1 <> col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5075
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query III rowsort label-5075
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) > - col2
----

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col0 * 66 + 6 * col2 AS col2 FROM tab2
----
-2898
-3984
-4602

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - 74
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5079
SELECT - 69 * + CAST( NULL AS DECIMAL ) + + CAST( - col0 + col2 AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5079
SELECT - 69 * + CAST ( NULL AS REAL ) + + CAST ( - col0 + col2 AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - 6 ) AND + col0
----

query I rowsort
SELECT + 2 + col2 * + col1 FROM tab1
----
1346
297
3198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5082
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN ( - CAST( + col2 AS SIGNED ) * ( col0 ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5082
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN ( - CAST ( + col2 AS INTEGER ) * ( col0 ) ) AND NULL
----

query I rowsort
SELECT + AVG ( ALL + 60 ) FROM tab2 WHERE NOT - col1 > ( - 6 ) * + col1 + - col2 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT COUNT( * ) * 98 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-5084
SELECT COUNT ( * ) * 98 FROM tab2
----
294

query I rowsort
SELECT ALL - col2 * + col0 + col2 FROM tab2
----
-1035
-2520
-4292

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - 67 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT ALL COUNT( * ) FROM tab2 WHERE CAST( - col1 AS SIGNED ) * + col0 - - col1 < + col2 * + CAST( col0 * col2 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL COUNT ( * ) FROM tab2 WHERE CAST ( - col1 AS INTEGER ) * + col0 - - col1 < + col2 * + CAST ( col0 * col2 AS INTEGER )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 49 * col2 <= - col1
----

query I rowsort
SELECT ALL + col1 * - ( 15 ) FROM tab1
----
-210
-705
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT COUNT( * ) + - COUNT( * ) DIV - 79 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5090
SELECT COUNT ( * ) + - COUNT ( * ) / - 79 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 25 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT - 13 AS col0 FROM tab2 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5092
SELECT - 13 AS col0 FROM tab2 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( col1 ) FROM tab0 WHERE - col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 3 * + col2 + + col2 * col2 AS col1 FROM tab0
----
2068
70
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL MIN( + 1 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT ALL MIN ( + 1 ) col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 38 IN ( 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - 41 AS col2 FROM tab1
----
-126
-132
-92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 87 + 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / 24 <= + 8
----

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 2 + col2
----

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2 WHERE NOT 14 BETWEEN + col0 AND ( col1 )
----
53

query I rowsort
SELECT DISTINCT + col0 * + 5 FROM tab0 AS cor0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT - MAX( ALL - col0 ) + COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5103
SELECT - MAX ( ALL - col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT ALL col2 + - col2 * col2 FROM tab1 AS cor0 WHERE ( + 94 ) IS NULL
----

query I rowsort
SELECT + 42 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1016
-2518
-4308

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL COUNT( ( 37 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL COUNT ( ( 37 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * - 4 + col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5108
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5108
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * 76 col2 FROM tab0 cor0 WHERE col1 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE ( - 58 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL 86 * - col0 - - 62 FROM tab1
----
-4324
-7248
-7764

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5112
SELECT * FROM tab2 WHERE ( - 77 / col0 + - CAST( col2 AS SIGNED ) ) < col1 * col0 + + 76 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5112
SELECT * FROM tab2 WHERE ( - 77 / col0 + - CAST ( col2 AS INTEGER ) ) < col1 * col0 + + 76 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL ( 43 ) AS col2 FROM tab2 cor0 WHERE - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 67 col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT + col1 - - 19 * col1 AS col1 FROM tab2 cor0
----
1020
1340
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT + - COUNT( * ) - + 70 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5116
SELECT + - COUNT ( * ) - + 70 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + 86 * col2 - - 9 * + 83 FROM tab1 AS cor0
----
5821
6595
9003

query I rowsort
SELECT 29 * + 78 AS col0 FROM tab2 AS cor0
----
2262
2262
2262

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT - ( + MIN( col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - ( + MIN ( col1 ) ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL col0 / col2 - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 IN ( + 94 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL col0 / col2 - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 IN ( + 94 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL MAX( col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL MAX ( col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT - 34 AS col1 FROM tab2 WHERE NOT + col0 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT SUM( DISTINCT + + 62 ) AS col2 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-5124
SELECT SUM ( DISTINCT + + 62 ) AS col2 FROM tab0
----
62

query I rowsort
SELECT ALL col2 * + - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT MAX( ALL + - 35 ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5126
SELECT MAX ( ALL + - 35 ) FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + MIN( ALL - - 31 ) AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5127
SELECT + MIN ( ALL - - 31 ) AS col0 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL - + 80 * + - col2 AS col0 FROM tab0 AS cor0
----
3760
7920
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT COUNT( * ) * + 88 + 36 * + 63 FROM tab1 AS cor0
----
2532

skipif mysql # not compatible
query I rowsort label-5130
SELECT COUNT ( * ) * + 88 + 36 * + 63 FROM tab1 AS cor0
----
2532

query I rowsort
SELECT + ( - 38 ) FROM tab0 AS cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 + - ( ( 63 ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + 43 + + 54 FROM tab2 AS cor0
----
2247
2935
3365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5134
SELECT ALL + MAX( ALL 78 ) DIV + ( SUM( ALL col0 ) ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5134
SELECT ALL + MAX ( ALL 78 ) / + ( SUM ( ALL col0 ) ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT - - col0 DIV ( + 47 ) * + 15 FROM tab0 AS cor0
----
0
15
30

skipif mysql # not compatible
query I rowsort label-5135
SELECT - - col0 / ( + 47 ) * + 15 FROM tab0 AS cor0
----
0
15
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN col1 * 59 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 col0 FROM tab2 AS cor0 WHERE ( NULL ) > col2 + + col0
----

query I rowsort
SELECT DISTINCT + + col1 + - + ( col2 ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT DISTINCT - COUNT( + col2 ) + - 61 FROM tab2 AS cor0 WHERE + col2 + CAST( NULL AS SIGNED ) - + ( + 36 ) BETWEEN NULL AND 62
----
-61

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT - COUNT ( + col2 ) + - 61 FROM tab2 AS cor0 WHERE + col2 + CAST ( NULL AS INTEGER ) - + ( + 36 ) BETWEEN NULL AND 62
----
-61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 / 13 + 42 BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - 35 + - 0 + - col2 AS col1 FROM tab1 cor0
----
-103
-131
-94

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT 57 BETWEEN NULL AND ( 17 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + ( 16 ) + 57 + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 + - - 59 col2 FROM tab0
----
121
156
255

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT col0 DIV col2 + - col1 + col2 FROM tab2
----
-26
-36
-8

skipif mysql # not compatible
query I rowsort label-5146
SELECT col0 / col2 + - col1 + col2 FROM tab2
----
-26
-36
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT - col2 + 1 * 56 DIV - col0 FROM tab0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-5149
SELECT - col2 + 1 * 56 / - col0 FROM tab0
----
-10
-50
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5150
SELECT * FROM tab0 WHERE ( + + col1 ) < CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5150
SELECT * FROM tab0 WHERE ( + + col1 ) < CAST ( col1 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col2 col0, col1 FROM tab1
----
-45
14
23
47
26
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 57 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 54 ) > NULL
----

query I rowsort
SELECT col1 - - + col0 * 79 AS col1 FROM tab1
----
4043
6720
7236

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - 51 + - MAX( DISTINCT col1 ) FROM tab2 WHERE col0 + - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 51 + - MAX ( DISTINCT col1 ) FROM tab2 WHERE col0 + - - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT 6 - ( COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT 6 - ( COUNT ( * ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 4 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 >= ( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 >= ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + COUNT( * ) * - + 22 * + 54 * - MIN( - ( - 42 ) ) FROM tab0
----
149688

skipif mysql # not compatible
query I rowsort label-5161
SELECT + COUNT ( * ) * - + 22 * + 54 * - MIN ( - ( - 42 ) ) FROM tab0
----
149688

onlyif mysql # DIV for integer division: 
query II rowsort label-5162
SELECT col2 DIV - col2 AS col0, + col2 * - 50 + - col1 AS col0 FROM tab0
----
-1
-2431
-1
-4951
-1
-521

skipif mysql # not compatible
query II rowsort label-5162
SELECT col2 / - col2 AS col0, + col2 * - 50 + - col1 AS col0 FROM tab0
----
-1
-2431
-1
-4951
-1
-521

query II rowsort
SELECT col2 AS col2, + 26 FROM tab0
----
10
26
47
26
99
26

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * ( + ( - + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + - MIN( + - col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5165
SELECT + - MIN ( + - col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL - SUM( 12 ) * MAX( ALL + + 55 ) AS col0 FROM tab1 AS cor0
----
-1980

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - SUM ( 12 ) * MAX ( ALL + + 55 ) AS col0 FROM tab1 AS cor0
----
-1980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col1 FROM tab1 WHERE - 53 - + + col1 <= + col1
----
14

query I rowsort
SELECT col0 * + + 25 AS col2 FROM tab0
----
2175
2425
375

query I rowsort
SELECT ALL col1 * - col2 FROM tab2 WHERE NOT - ( col0 ) * + 93 + - + col2 * - - col2 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + col1 * - 3 FROM tab1 AS cor0
----
-50
70
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT - + col1 DIV - + 5 FROM tab0 AS cor0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-5171
SELECT - + col1 / - + 5 FROM tab0 AS cor0
----
0
16
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) + - col1 NOT IN ( col0 )
----

query I rowsort
SELECT ALL + 63 * + col1 - - col2 FROM tab0
----
1333
162
5150

onlyif mysql # DIV for integer division: 
query II rowsort label-5174
SELECT DISTINCT + col1 + - col1 DIV - col0 + - col1 col2, - 36 FROM tab0
----
0
-36
5
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5174
SELECT DISTINCT + col1 + - col1 / - col0 + - col1 col2, - 36 FROM tab0
----
0
-36
5
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - COUNT( * ) + + - 0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - COUNT ( * ) + + - 0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT + COUNT( * ) - ( ( - - 24 ) ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + COUNT ( * ) - ( ( - - 24 ) ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT col2 + - 20 FROM tab2 AS cor0
----
20
3
38

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - 76 + - 93 * + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + + col1 * 43 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT 53 ) AS col1 FROM tab2 WHERE ( NOT 52 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT 53 ) AS col1 FROM tab2 WHERE ( NOT 52 IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + col1 + - + col2 * col2 = NULL OR NOT - 6 NOT IN ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + + COUNT( * ) * COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT + + COUNT ( * ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + ( - 43 ) * - 81 FROM tab2 AS cor0
----
3483
3483
3483

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * - 86 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + + col0 + - + col2 IS NULL
----

query II rowsort
SELECT + 15 AS col1, + col0 + col1 + col2 FROM tab0
----
15
118
15
143
15
197

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - - MIN( DISTINCT - 56 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5188
SELECT - - MIN ( DISTINCT - 56 ) FROM tab1 AS cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5189
SELECT + MAX( DISTINCT - CAST( + CAST( - col1 AS DECIMAL ) AS SIGNED ) ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5189
SELECT + MAX ( DISTINCT - CAST ( + CAST ( - col1 AS REAL ) AS INTEGER ) ) AS col2 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT - 44 + - COUNT( * ) FROM tab0 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT - 44 + - COUNT ( * ) FROM tab0 cor0
----
-47

query I rowsort
SELECT col2 * - - 34 FROM tab0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL ( - - COUNT( ALL - col1 ) ) * - 39 AS col1 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL ( - - COUNT ( ALL - col1 ) ) * - 39 AS col1 FROM tab0
----
-117

query I rowsort
SELECT ALL + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT + 88 DIV col2 + + - 40 FROM tab2 AS cor0
----
-37
-38
-39

skipif mysql # not compatible
query I rowsort label-5194
SELECT + 88 / col2 + + - 40 FROM tab2 AS cor0
----
-37
-38
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-5195
SELECT - col1 AS col0, + 83 DIV + col2 + - - col0 FROM tab0 AS cor0
----
-1
97
-21
95
-81
16

skipif mysql # not compatible
query II rowsort label-5195
SELECT - col1 AS col0, + 83 / + col2 + - - col0 FROM tab0 AS cor0
----
-1
97
-21
95
-81
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + + ( COUNT( - 48 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5196
SELECT + + ( COUNT ( - 48 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT + ( - + 24 ) FROM tab2 AS cor0 WHERE + col0 < - - ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + col0 * - 20 IS NULL AND ( NULL ) >= - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT DISTINCT + + 57 + - 6 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + + 57 + - 6 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5201
SELECT * FROM tab1 WHERE - col2 NOT IN ( + col1, - 52 + + 6, CAST( + 27 AS SIGNED ) / + col2 * + + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5201
SELECT * FROM tab1 WHERE - col2 NOT IN ( + col1, - 52 + + 6, CAST ( + 27 AS INTEGER ) / + col2 * + + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + + 30 FROM tab2
----
105
76
94

query I rowsort
SELECT ALL - col2 + + col2 + + col2 * + + col1 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT 45 - - 29 + - col1 FROM tab1
----
27
60
69

query I rowsort
SELECT DISTINCT + col0 - + 89 FROM tab0
----
-2
-74
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * - col1 col1 FROM tab0
----
-1533
-5913
-73

query I rowsort
SELECT DISTINCT 53 + + ( col2 ) + col1 * + col2 * - 92 FROM tab0 AS cor0
----
-19257
-350144
-8956

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5208
SELECT DISTINCT - 40 * CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT DISTINCT - 40 * CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 28 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 28 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE + CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE + CAST ( + + col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT col0, ( - 13 ) FROM tab2
----
46
-13
64
-13
75
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL SUM( DISTINCT - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL SUM ( DISTINCT - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 17 col0 FROM tab2 AS cor0 WHERE NOT + 7 = - - 31
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5214
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 87 / CAST( NULL AS SIGNED ) IN ( col1, 31, col0 ) )
----

skipif mysql # not compatible
query III rowsort label-5214
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 87 / CAST ( NULL AS INTEGER ) IN ( col1, 31, col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5215
SELECT ALL 88 AS col0, ( AVG ( DISTINCT + 39 ) ) * - SUM( DISTINCT 52 ) + - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL 88 AS col0, ( AVG ( DISTINCT + 39 ) ) * - SUM ( DISTINCT 52 ) + - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
88
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5216
SELECT - col0 DIV col1, - ( - ( - col0 ) ) * - + col0 AS col1 FROM tab0
----
-4
7569
-97
9409
0
225

skipif mysql # not compatible
query II rowsort label-5216
SELECT - col0 / col1, - ( - ( - col0 ) ) * - + col0 AS col1 FROM tab0
----
-4
7569
-97
9409
0
225

query I rowsort
SELECT 60 * - + col0 * - 66 AS col0 FROM tab1
----
201960
336600
360360

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + MAX( + - ( + 83 ) ) col2 FROM tab2
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5218
SELECT ALL + MAX ( + - ( + 83 ) ) col2 FROM tab2
----
-83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 45 > + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + - 31 > NULL
----

query I rowsort
SELECT ALL - col1 + + - col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IN ( + 33, 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL - + 14 + CAST( + + MIN( - + col1 ) AS SIGNED ) + MAX( + col2 ) * - - COUNT( DISTINCT - col2 ) FROM tab2 WHERE ( NULL BETWEEN 51 AND - - col1 * - ( + + col0 ) - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - + 14 + CAST ( + + MIN ( - + col1 ) AS INTEGER ) + MAX ( + col2 ) * - - COUNT ( DISTINCT - col2 ) FROM tab2 WHERE ( NULL BETWEEN 51 AND - - col1 * - ( + + col0 ) - 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL MAX( - + 76 ) * COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-684

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL MAX ( - + 76 ) * COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - MIN( ALL col2 ) col0 FROM tab0 WHERE NOT ( - 9 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5226
SELECT ALL - MIN ( ALL col2 ) col0 FROM tab0 WHERE NOT ( - 9 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 20 IN ( col2, + 39 * 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT 11 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) * + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5228
SELECT 11 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - MAX( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - MAX ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT col1 DIV 97 * - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT col1 / 97 * - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5231
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 87 NOT IN ( - CAST( NULL AS SIGNED ), col0, + 90, + 34 / col2 )
----

skipif mysql # not compatible
query III rowsort label-5231
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 87 NOT IN ( - CAST ( NULL AS INTEGER ), col0, + 90, + 34 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT 86 DIV 75 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5232
SELECT 86 / 75 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + 59 AS col2, + 2 AS col1 FROM tab1 AS cor0
----
59
2
59
2
59
2

query I rowsort
SELECT - + 3 * + + col0 * - col2 AS col2 FROM tab2 cor0
----
13050
3174
7680

query I rowsort
SELECT + 56 * + - 32 FROM tab2 AS cor0
----
-1792
-1792
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT - MIN( - - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5236
SELECT - MIN ( - - col1 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + 93 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + 93 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
279

query I rowsort
SELECT ALL col0 + ( + - col1 ) + col1 + + + col0 AS col2 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT col0 / - col0 + - col0 * + ( + 14 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT col0 / - col0 + - col0 * + ( + 14 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 WHERE - col1 = NULL
----

query II rowsort
SELECT ALL ( col1 ), col1 AS col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT ALL - 98 * COUNT( col2 ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL - 98 * COUNT ( col2 ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-98

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT COUNT( * ) * - - 24 col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5244
SELECT COUNT ( * ) * - - 24 col2 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT + COUNT( ALL - 58 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + COUNT ( ALL - 58 ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 62 < NULL
----

query II rowsort
SELECT 17 * - col2 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-391
51
-680
77
-986
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL - MIN( ALL + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - MIN ( ALL + col1 ) FROM tab0
----
-1

query I rowsort
SELECT + 4 AS col2 FROM tab2 WHERE NOT + ( + - col2 ) IS NULL
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 47 col1 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT ALL + + 9 FROM tab1 WHERE NOT ( 76 * - - 35 > - + col2 )
----

query I rowsort
SELECT + col0 + - 0 + + - col2 * + ( - col0 ) * - col1 * 41 FROM tab1
----
-1027990
-11924185
-2810253

query II rowsort
SELECT DISTINCT col2 AS col2, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT - - ( - col0 ) DIV col1 AS col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT - - ( - col0 ) / col1 AS col1 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5256
SELECT ALL + 25 + + - col2 DIV - ( - - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + 25 + + - col2 / - ( - - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
25
25
25

query II rowsort
SELECT ALL + 18, 68 + + - col1 AS col1 FROM tab1 AS cor0
----
18
21
18
54
18
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT - + COUNT( * ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5258
SELECT - + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab2 WHERE 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 73 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT ALL - + col1 DIV 64 FROM tab0 AS cor0 WHERE NOT + 4 < - col0 DIV - col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - + col1 / 64 FROM tab0 AS cor0 WHERE NOT + 4 < - col0 / - col1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT + - COUNT( DISTINCT + col1 ) + - + COUNT( - col0 ) AS col2, + 27 * - COUNT( * ) AS col0 FROM tab2 cor0
----
-6
-81

skipif mysql # not compatible
query II rowsort label-5263
SELECT + - COUNT ( DISTINCT + col1 ) + - + COUNT ( - col0 ) AS col2, + 27 * - COUNT ( * ) AS col0 FROM tab2 cor0
----
-6
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT COUNT( * ) + - - 99 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5264
SELECT COUNT ( * ) + - - 99 FROM tab0 AS cor0
----
102

query I rowsort
SELECT col2 + + col1 * col1 + - 75 FROM tab1 AS cor0
----
217
2202
9

query I rowsort
SELECT - - col2 + - - ( col0 ) AS col0 FROM tab0 cor0 WHERE - 22 * - col1 IS NULL
----

query I rowsort
SELECT ALL + + 15 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL + SUM( col2 ) + + - 7 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + SUM ( col2 ) + + - 7 FROM tab2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT DISTINCT 53 + + + ( COUNT( * ) ) + + COUNT( * ) * - 63 + + 60 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT 53 + + + ( COUNT ( * ) ) + + COUNT ( * ) * - 63 + + 60 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT 20 DIV 39 * + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5270
SELECT 20 / 39 * + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * + - col0 * + 6 + + 9 AS col1 FROM tab0
----
-10953
-573
-7281

query I rowsort
SELECT ( + col0 ) + 44 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, col0, + col2 + - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, col0, + col2 + - 85 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT + ( - + col2 ) * col2 - - 51 + + 28 + - + col1 DIV col1 FROM tab2 cor0
----
-1522
-3286
-451

skipif mysql # not compatible
query I rowsort label-5275
SELECT + ( - + col2 ) * col2 - - 51 + + 28 + - + col1 / col1 FROM tab2 cor0
----
-1522
-3286
-451

query II rowsort
SELECT col1 AS col2, - 23 AS col0 FROM tab2
----
51
-23
67
-23
77
-23

query I rowsort
SELECT DISTINCT col1 * col1 * - + col0 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) + + col0 + - col1 + col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

query II rowsort
SELECT DISTINCT - - col1 AS col1, + col0 * - + col1 AS col2 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

query II rowsort
SELECT - + col0 AS col1, + col2 FROM tab2 cor0 WHERE NOT + col2 + + col0 + - - 91 + col1 IS NULL
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, col0 col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT + 66, 62 AS col2 FROM tab2 cor0
----
66
62

query II rowsort
SELECT - + 55 AS col0, col1 AS col2 FROM tab2 cor0
----
-55
51
-55
67
-55
77

query I rowsort
SELECT col1 - + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - - COUNT( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5285
SELECT - - COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5286
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col1 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5286
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col1 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( + col2 ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - 99 AS col0 FROM tab1
----
-3
-31
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT + 16 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT ( col2 ) AS col0, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT - 95 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE + col1 / - + col0 * + ( + + col2 ) - + - col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5292
SELECT - 95 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col1 / - + col0 * + ( + + col2 ) - + - col2 >= NULL
----

query II rowsort
SELECT - col0 + - 44 AS col1, col1 FROM tab2 AS cor0
----
-108
77
-119
67
-90
51

query I rowsort
SELECT col1 * + - col0 + - ( + 65 ) FROM tab1 AS cor0
----
-4342
-490
-779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT DISTINCT col0 - - - col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT col0 - - - col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + COUNT( * ) - + - 85 col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5296
SELECT ALL + COUNT ( * ) - + - 85 col0 FROM tab1 AS cor0
----
88

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL - CAST( - MAX( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - CAST ( - MAX ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL - 17 + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - 17 + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT - - COUNT( - 24 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5300
SELECT - - COUNT ( - 24 ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5302
SELECT col0 - - 73 - + + col0 col1, + CAST( NULL AS DECIMAL ) + 54 - + - 69 FROM tab2 AS cor0
----
73
NULL
73
NULL
73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5302
SELECT col0 - - 73 - + + col0 col1, + CAST ( NULL AS REAL ) + 54 - + - 69 FROM tab2 AS cor0
----
73
NULL
73
NULL
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT ALL 69 * - - CAST( + COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL 69 * - - CAST ( + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL MAX( - - col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5304
SELECT ALL MAX ( - - col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT DISTINCT + ( SUM( DISTINCT - - ( - 3 ) ) ) + COUNT( * ) + + 26 AS col0, - MAX( - + col0 ) FROM tab0 AS cor0
----
26
15

skipif mysql # not compatible
query II rowsort label-5305
SELECT DISTINCT + ( SUM ( DISTINCT - - ( - 3 ) ) ) + COUNT ( * ) + + 26 AS col0, - MAX ( - + col0 ) FROM tab0 AS cor0
----
26
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 7 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + col0, col0 col1 FROM tab1
----
138
91
65
51
90
85

query III rowsort
SELECT * FROM tab0 WHERE + col1 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT - 37 + ( COUNT( * ) ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT - 37 + ( COUNT ( * ) ) FROM tab0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + 53 * - 63 col0 FROM tab1
----
1285
142
5877

query I rowsort
SELECT + col2 * + - 41 + + - 70 AS col1 FROM tab1
----
-2489
-2858
-4006

query II rowsort
SELECT DISTINCT col0, ( 51 ) FROM tab2
----
46
51
64
51
75
51

query I rowsort
SELECT - 54 + + col1 * - 59 + + + col2 + + 2 FROM tab2
----
-3038
-3947
-4555

query II rowsort
SELECT col1 * - + col0 * - col0 * + 14, - 88 AS col0 FROM tab2 cor0
----
1510824
-88
4415488
-88
5276250
-88

query I rowsort
SELECT ALL - col1 + - col1 - col1 FROM tab2 AS cor0
----
-153
-201
-231

query II rowsort
SELECT - 39, + col0 AS col2 FROM tab0 AS cor0
----
-39
15
-39
87
-39
97

query I rowsort
SELECT + + 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - 84 * 78 ) AND NULL
----

query I rowsort
SELECT col2 - col0 * + 40 FROM tab2
----
-1817
-2520
-2942

query I rowsort
SELECT ALL + - 84 * - + 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 - 99 FROM tab0
----
-12
-2
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT ( - col2 ) * + - col2 + - 47 + - ( - ( + col0 ) ) * - 55 * - col1 + - col0 DIV - - col1 FROM tab1 AS cor0
----
239811
26792
48436

skipif mysql # not compatible
query I rowsort label-5322
SELECT ( - col2 ) * + - col2 + - 47 + - ( - ( + col0 ) ) * - 55 * - col1 + - col0 / - - col1 FROM tab1 AS cor0
----
239811
26792
48436

query II rowsort
SELECT - 77 AS col1, 27 - + 11 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5324
SELECT - 82 / COUNT( * ) / CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT - 82 / COUNT ( * ) / CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 89 FROM tab2 cor0
----
89

query I rowsort
SELECT col0 * - 35 FROM tab2 AS cor0
----
-1610
-2240
-2625

query II rowsort
SELECT ALL + 35, 23 AS col1 FROM tab0
----
35
23
35
23
35
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT MIN( ALL - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5328
SELECT MIN ( ALL - col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT + SUM( ALL - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + SUM ( ALL - col0 ) AS col2 FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + - col2 <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - 89 + col1 IS NULL
----

query II rowsort
SELECT col0 * col2 * + 26 AS col0, - 81 + + col2 AS col0 FROM tab1
----
127296
15
130390
-22
160888
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 72 * 47 AS col0 FROM tab0 AS cor0 WHERE NOT ( 96 ) = - col2
----
3384
3384
3384

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 28 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + + ( + ( + + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5337
SELECT + + ( + ( + + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + 25 + col2 * col1 - - - 7
----

query I rowsort
SELECT ALL + - col1 + - - col0 - - col0 FROM tab1 AS cor0
----
135
165
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 76 BETWEEN 62 AND + col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + col2 <= - - col1 * - col0
----

query I rowsort
SELECT ALL + - 68 + - col1 AS col0 FROM tab0 AS cor0
----
-149
-69
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5343
SELECT * FROM tab1 WHERE + ( + + 96 ) / col2 + col0 + + 69 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5343
SELECT * FROM tab1 WHERE + ( + + 96 ) / col2 + col0 + + 69 * + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 65 + - col1 * + col1 * - col0 FROM tab0
----
32
38302
98350

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + COUNT( * ) * COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5345
SELECT + COUNT ( * ) * COUNT ( * ) col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT SUM( col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT SUM ( col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT - col0 * - + col0 * - col1 + + 93 FROM tab2 AS cor0
----
-107823
-315299
-376782

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <= + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT CAST( + + 32 AS SIGNED ) + + 47 AS col1 FROM tab0 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-5349
SELECT CAST ( + + 32 AS INTEGER ) + + 47 AS col1 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT MAX( ALL - + col1 ) * + COUNT( * ) + + SUM( 92 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
273

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT MAX ( ALL - + col1 ) * + COUNT ( * ) + + SUM ( 92 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
273

query III rowsort
SELECT * FROM tab0 WHERE - 41 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - - 56 ) NOT IN ( + col1, + 56 + - 56, - col2, + col2 + - 21 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - COUNT( * ) + + 10 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - COUNT ( * ) + + 10 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT DISTINCT + COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5355
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5355
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5356
SELECT + col2 AS col0, CAST( - - col1 AS SIGNED ) DIV - - 79 FROM tab0 AS cor0
----
10
0
47
1
99
0

skipif mysql # not compatible
query II rowsort label-5356
SELECT + col2 AS col0, CAST ( - - col1 AS INTEGER ) / - - 79 FROM tab0 AS cor0
----
10
0
47
1
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - MAX( - 27 ) col1 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5357
SELECT ALL - MAX ( - 27 ) col1 FROM tab1
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 92 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 86 ) AS col0 FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT - MAX( + 38 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - MAX ( + 38 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT + CAST( 39 AS SIGNED ) * 33 FROM tab1 AS cor0
----
1287
1287
1287

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( 39 AS INTEGER ) * 33 FROM tab1 AS cor0
----
1287
1287
1287

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45, 10 col1 FROM tab1 AS cor0
----
-45
10
-45
10
-45
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MAX( 20 ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5364
SELECT MAX ( 20 ) FROM tab0 AS cor0
----
20

query II rowsort
SELECT ALL + + col2, 48 AS col0 FROM tab1 AS cor0
----
59
48
68
48
96
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5366
SELECT - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT col2 + + - col1 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 30 ) + 87 AS col0 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # DIV for integer division: 
query II rowsort label-5370
SELECT DISTINCT 26 + - 71 DIV + + 62 AS col0, col1 FROM tab2 AS cor0
----
25
51
25
67
25
77

skipif mysql # not compatible
query II rowsort label-5370
SELECT DISTINCT 26 + - 71 / + + 62 AS col0, col1 FROM tab2 AS cor0
----
25
51
25
67
25
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5371
SELECT * FROM tab0 WHERE - 9 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5371
SELECT * FROM tab0 WHERE - 9 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 * + col2 * + 25 FROM tab1
----
33600
7375
79900

onlyif mysql # DIV for integer division: 
query II rowsort label-5373
SELECT + col1 DIV + col1 AS col0, col1 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-5373
SELECT + col1 / + col1 AS col0, col1 FROM tab0
----
1
1
1
21
1
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * + 80 col1 FROM tab0
----
-4320
-4320
-4320

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 35 * - - col1 FROM tab0 AS cor0
----
-2835
-35
-735

query I rowsort
SELECT - 42 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-42
-42
-42

query I rowsort
SELECT + 14 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT DISTINCT - + COUNT( * ) DIV + + 83 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - + COUNT ( * ) / + + 83 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT - 22 DIV ( + - ( + ( + col0 ) ) ) * - col2 + + 77 FROM tab0 AS cor0
----
30
77
77

skipif mysql # not compatible
query I rowsort label-5381
SELECT - 22 / ( + - ( + ( + col0 ) ) ) * - col2 + + 77 FROM tab0 AS cor0
----
30
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + - MAX( DISTINCT + + 52 ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5382
SELECT + - MAX ( DISTINCT + + 52 ) AS col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT ALL 81 + + + col0 + + + 98 AS col2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + 57 AND + col0
----

query II rowsort
SELECT DISTINCT col0 AS col2, + 19 FROM tab0
----
15
19
87
19
97
19

query I rowsort
SELECT 92 * - col1 FROM tab2
----
-4692
-6164
-7084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5386
SELECT - col0 * + CAST( NULL AS SIGNED ) col0, 70 FROM tab0
----
NULL
70
NULL
70
NULL
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5386
SELECT - col0 * + CAST ( NULL AS INTEGER ) col0, 70 FROM tab0
----
NULL
70
NULL
70
NULL
70

query I rowsort
SELECT ALL - 53 * col0 FROM tab2
----
-2438
-3392
-3975

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NULL ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5389
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + - col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5389
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + - col1 AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 + 10 * col2 FROM tab0 cor0
----
100
470
990

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT + - COUNT( * ) * + 38 + + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT + - COUNT ( * ) * + 38 + + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT - CAST( 98 AS SIGNED ) * col2 + + col0 * - + 92 AS col0 FROM tab2 AS cor0
----
-12584
-6486
-9808

skipif mysql # not compatible
query I rowsort label-5393
SELECT - CAST ( 98 AS INTEGER ) * col2 + + col0 * - + 92 AS col0 FROM tab2 AS cor0
----
-12584
-6486
-9808

query I rowsort
SELECT ALL - - 33 AS col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + 66 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT + col0 DIV + 16 FROM tab2 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-5396
SELECT + col0 / + 16 FROM tab2 AS cor0
----
2
4
4

query II rowsort
SELECT ( + 74 ) AS col1, + 14 AS col2 FROM tab1 AS cor0
----
74
14
74
14
74
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT ALL + 53 + + + col2 DIV + col1 FROM tab1
----
54
59
64

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + 53 + + + col2 / + col1 FROM tab1
----
54
59
64

query I rowsort
SELECT DISTINCT - col0 - ( - col2 ) AS col2 FROM tab0 WHERE NOT - ( - - col0 ) + - - col1 / + col2 > - + 0
----
-77
2
32

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col1 + 15 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - + + 0 + - + col2 + 93 * col1 + + + 15 FROM tab2 cor0
----
4712
6130
7096

query II rowsort
SELECT DISTINCT 45 AS col1, + 26 * - col1 AS col2 FROM tab0 AS cor0
----
45
-2106
45
-26
45
-546

query I rowsort
SELECT DISTINCT - ( 43 ) FROM tab0 AS cor0
----
-43

query II rowsort
SELECT ALL + - 67, col2 FROM tab2 AS cor0
----
-67
23
-67
40
-67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5407
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-5407
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT col1 * + col0 + + col1 + col2 FROM tab0 cor0
----
1343
1858
197

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 80 * - 81 + 33 IS NOT NULL
----

query I rowsort
SELECT col0 * - - 91 FROM tab0 cor0
----
1365
7917
8827

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 11 * - col0 + + - col2, 2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col1 FROM tab0 AS cor0 WHERE 38 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - SUM( ALL + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5415
SELECT - SUM ( ALL + col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE - 16 + + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT CAST( col0 AS SIGNED ) * col1 + - + col1 / + col0 + 67 - col1 * + col1 * - col1 * - - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col1 + - + col1 / + col0 + 67 - col1 * + col1 * - col1 * - - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5418
SELECT ALL ( col1 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL ( col1 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 * + - col0 FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT COUNT( * ) * + - 10 * - 37 FROM tab0
----
1110

skipif mysql # not compatible
query I rowsort label-5420
SELECT COUNT ( * ) * + - 10 * - 37 FROM tab0
----
1110

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT ALL + 60 DIV + 1 FROM tab1
----
60
60
60

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + 60 / + 1 FROM tab1
----
60
60
60

query I rowsort
SELECT col2 + + - 86 FROM tab0
----
-39
-76
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - 50 * 29 * + 60 = - - 24 * + col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 68 + 99 AS col1 FROM tab1 AS cor0
----
4111
4723
6627

query I rowsort
SELECT - - ( 74 ) FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5426
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ( ( - + ( MIN( - - col0 ) ) ) ) * + ( + COUNT( * ) ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5427
SELECT ( ( - + ( MIN ( - - col0 ) ) ) ) * + ( + COUNT ( * ) ) AS col1 FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT 95 * - - CAST( NULL AS SIGNED ) * ( - col1 ) + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT 95 * - - CAST ( NULL AS INTEGER ) * ( - col1 ) + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT - 28 DIV - + 86 + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 28 / - + 86 + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 * + + col1 col1 FROM tab2 AS cor0
----
1150
3040
3828

query I rowsort
SELECT DISTINCT - + 29 * ( col2 ) AS col0 FROM tab0 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 - col2 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT col1 + col1 DIV ( + 91 ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5433
SELECT col1 + col1 / ( + 91 ) FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + - - col0 col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT ALL 1 - - col0 * col0 * + col0 * + - 91 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 1 - - col0 * col0 * + col0 * + - 91 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 - + 77 AS col1, - 17 FROM tab1
----
-124
-17
-82
-17
-91
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT COUNT( - + 61 ) - - 20 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT COUNT ( - + 61 ) - - 20 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT + 40 * 33 col0, + 70 + + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
1320
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5438
SELECT + 40 * 33 col0, + 70 + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
1320
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT ( COUNT( * ) ) AS col1, + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5439
SELECT ( COUNT ( * ) ) AS col1, + COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - + ( + 32 ) ) / col2 * col0 / + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + col0 * 1
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + col0 * 1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 28 = - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 62 * 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + col2 - ( - col0 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 91 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> col1 + - - 9
----

query I rowsort
SELECT col2 * - + col2 AS col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL - 26 * + + col0 AS col1 FROM tab2
----
-1196
-1664
-1950

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( col0 * col0 * - col0 ) AND col2 * + - col2 / + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT 76 * + COUNT( * ) col2 FROM tab0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5451
SELECT 76 * + COUNT ( * ) col2 FROM tab0
----
228

query I rowsort
SELECT ALL - 64 * + col2 AS col0 FROM tab0
----
-3008
-6336
-640

query II rowsort
SELECT DISTINCT - 31 * col2 * + + col1 * + col0, col0 FROM tab2
----
-1672698
46
-6110720
64
-9034950
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <> - col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 64 * + col2 + + col2 FROM tab0 AS cor0
----
3055
6435
650

query I rowsort
SELECT col2 FROM tab0 WHERE + - col0 * + col0 IN ( - col0 + + + col2 + + - col2 )
----

query I rowsort
SELECT col2 * - 22 AS col0 FROM tab1
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT COUNT( - 44 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5458
SELECT DISTINCT COUNT ( - 44 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT SUM( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT - - 72 AS col2 FROM tab2 cor0
----
72

query I rowsort
SELECT ALL - col2 * col1 * col2 + col1 FROM tab1 AS cor0
----
-129010
-17400
-217281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT col1 - + col2 - - CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5462
SELECT col1 - + col2 - - CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 - col0, col2 FROM tab1
----
-37
96
-44
68
-80
59

query I rowsort
SELECT - col2 - + ( col0 ) AS col2 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN - col1 * + col0 + - 31 / - col2 AND - 14 * 60 + + - 40 + + 9 AND NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = col1 AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5468
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT DISTINCT - 36 DIV + + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - 36 / + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 1 * - 39 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5471
SELECT DISTINCT + ( col1 ), + col1 DIV col2 FROM tab0 AS cor0
----
1
0
21
2
81
1

skipif mysql # not compatible
query II rowsort label-5471
SELECT DISTINCT + ( col1 ), + col1 / col2 FROM tab0 AS cor0
----
1
0
21
2
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL + col1 + + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + col1 + + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 7 FROM tab0 AS cor0 WHERE - 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - COUNT( * ) * + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT DISTINCT - 86 + - + 96 * col1 DIV col0 FROM tab2 cor0
----
-171
-192
-201

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT - 86 + - + 96 * col1 / col0 FROM tab2 cor0
----
-171
-192
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5476
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5476
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - - col2 * 17 AS col0 FROM tab0
----
-166617
-1700
-37553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + 70 col0 FROM tab0
----
151
71
91

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 31 + 31 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT + ( 34 ) DIV - col0 + - - 46 col1 FROM tab0 AS cor0
----
44
46
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5481
SELECT + ( 34 ) / - col0 + - - 46 col1 FROM tab0 AS cor0
----
44
46
46

query I rowsort
SELECT 27 + col1 * + col1 FROM tab0
----
28
468
6588

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( 58 )
----

query I rowsort
SELECT + col2 + col2 * + col0 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
752
880
9702

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + 97 * - col2 >= - 7 / + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 40 AS col1 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT - 55 * 98 AS col0 FROM tab0
----
-5390
-5390
-5390

query I rowsort
SELECT DISTINCT - col1 + 75 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT ALL + COUNT( * ) + + 97 DIV - 6 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + COUNT ( * ) + + 97 / - 6 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT COUNT( DISTINCT col1 ) * - 42 AS col1 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-5490
SELECT COUNT ( DISTINCT col1 ) * - 42 AS col1 FROM tab0
----
-126

query III rowsort
SELECT * FROM tab0 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT ALL + 14 * + ( + col1 ) AS col2 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT 5 + COUNT( * ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5493
SELECT 5 + COUNT ( * ) AS col2 FROM tab1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT ALL - 82 * + SUM( DISTINCT col0 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 * ( - col0 ) IN ( + 98 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - 82 * + SUM ( DISTINCT col0 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 * ( - col0 ) IN ( + 98 * col1 )
----
NULL

query I rowsort
SELECT 86 + - col1 * + 63 FROM tab2 WHERE ( - 3 ) < ( + col2 - ( col1 ) )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - 93 * + col1 FROM tab0 WHERE NOT NULL <= ( - 96 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab0 WHERE NULL BETWEEN ( - 45 * col2 ) AND ( + 81 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5501
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab0 WHERE NULL BETWEEN ( - 45 * col2 ) AND ( + 81 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 58 NOT BETWEEN - col1 + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - 15 > NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab0 WHERE 75 NOT BETWEEN col2 AND NULL
----
100

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 - - col2 ) = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5506
SELECT COUNT( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + ( + col0 ) * ( + col1 * CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + ( + col0 ) * ( + col1 * CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT ALL + SUM( DISTINCT + col2 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + SUM ( DISTINCT + col2 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT + col0 * + 6 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5509
SELECT 41 DIV + COUNT( * ) col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5509
SELECT 41 / + COUNT ( * ) col0 FROM tab0 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT 89 * COUNT( * ) AS col1 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-5511
SELECT 89 * COUNT ( * ) AS col1 FROM tab1
----
267

query I rowsort
SELECT DISTINCT - 86 * col0 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT + 59 + + col0 FROM tab1
----
110
144
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5514
SELECT * FROM tab2 WHERE NOT 24 <= - CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-5514
SELECT * FROM tab2 WHERE NOT 24 <= - CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - 50 ) + col1 NOT BETWEEN ( + ( + col2 ) ) AND col0 + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT DISTINCT col2 + + col2 DIV ( - col1 ) AS col1 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT col2 + + col2 / ( - col1 ) AS col1 FROM tab1 AS cor0
----
48
67
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + col1 + 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5518
SELECT DISTINCT - 81 * col1 + - col2 * - ( col2 + - 11 * CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - 81 * col1 + - col2 * - ( col2 + - 11 * CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE ( col1 ) - 54 BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - - 98 + col2 AS col1 FROM tab2 cor0
----
121
138
156

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab2 AS cor0 WHERE col2 + col1 * 78 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT 75 * + + SUM( DISTINCT col1 ) * 42 + 22 AS col0 FROM tab1
----
207922

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT 75 * + + SUM ( DISTINCT col1 ) * 42 + 22 AS col0 FROM tab1
----
207922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT 96 * col1 FROM tab1 WHERE - CAST( NULL AS SIGNED ) + 46 IN ( + col1 - col2 ) OR NOT ( col0 + 94 ) BETWEEN 74 AND col0
----
1344
4512
480

skipif mysql # not compatible
query I rowsort label-5523
SELECT 96 * col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + 46 IN ( + col1 - col2 ) OR NOT ( col0 + 94 ) BETWEEN 74 AND col0
----
1344
4512
480

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT ALL - col0 * - ( + CAST( col1 AS SIGNED ) ) * + 67 + col2 AS col0 FROM tab0
----
122419
6598
81452

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - col0 * - ( + CAST ( col1 AS INTEGER ) ) * + 67 + col2 AS col0 FROM tab0
----
122419
6598
81452

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT SUM( DISTINCT 17 ) * MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5526
SELECT SUM ( DISTINCT 17 ) * MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
17

query I rowsort
SELECT col1 * - 21 AS col1 FROM tab2
----
-1071
-1407
-1617

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col2 <> NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE ( col2 ) BETWEEN ( col1 ) AND - col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - col0 + + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 + - 33 FROM tab1 AS cor0
----
18
52
58

query I rowsort
SELECT + col1 + - col2 * - col2 AS col1 FROM tab0 cor0
----
121
2290
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT MAX( ALL + - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5534
SELECT MAX ( ALL + - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT + + col0 * + col0 + col2 FROM tab2 cor0
----
2139
4136
5683

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT + 83 * - CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT + 83 * - CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
252

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab0 AS cor0 WHERE NOT 29 IS NULL
----
100
128
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - COUNT( * ) * 23 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - COUNT ( * ) * 23 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - - 67 NOT IN ( - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT 23 - + MAX( DISTINCT 18 ) + COUNT( * ) col2 FROM tab1 cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5543
SELECT 23 - + MAX ( DISTINCT 18 ) + COUNT ( * ) col2 FROM tab1 cor0
----
8

query I rowsort
SELECT ALL - - ( 54 ) * + + col0 * + 35 - - 95 AS col2 FROM tab0 AS cor0
----
164525
183425
28445

query I rowsort
SELECT - 55 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( - 16 ) * - col1
----

query I rowsort
SELECT 58 - - col1 FROM tab0 AS cor0
----
139
59
79

query I rowsort
SELECT + - 75 * + col2 + col0 + col1 * - 44 AS col0 FROM tab2 AS cor0
----
-3923
-6324
-7223

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT MIN( DISTINCT - 25 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5549
SELECT MIN ( DISTINCT - 25 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + ( - 5 ) * - COUNT( * ) * - 0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT + ( - 5 ) * - COUNT ( * ) * - 0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5551
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN 83 AND col1 + - CAST( NULL AS SIGNED ) / + 79
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-5551
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN 83 AND col1 + - CAST ( NULL AS INTEGER ) / + 79
----
85
5
59
91
47
68

query I rowsort
SELECT ALL col2 * 39 FROM tab2
----
1560
2262
897

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( - - 74 * col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( + col1 )
----

query I rowsort
SELECT ALL ( + col2 ) * col2 FROM tab1 WHERE - col0 + - col2 + col2 <= col2 - col2 / - col0
----
3481
4624
9216

query I rowsort
SELECT ALL 18 * + col1 AS col0 FROM tab1
----
252
846
90

query III rowsort
SELECT ALL * FROM tab0 WHERE + 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col2 * col2 AS col0 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5559
SELECT col2 * + 74, CAST( - col1 AS SIGNED ) - col0 AS col0 FROM tab2 AS cor0
----
1702
-97
2960
-141
4292
-142

skipif mysql # not compatible
query II rowsort label-5559
SELECT col2 * + 74, CAST ( - col1 AS INTEGER ) - col0 AS col0 FROM tab2 AS cor0
----
1702
-97
2960
-141
4292
-142

query I rowsort
SELECT ALL + col2 + col2 FROM tab2 AS cor0 WHERE ( NOT ( NULL ) < col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( 31 ) + - - 56 * + col2 IN ( 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - + col0 + + col1 / 16 IN ( col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + COUNT( * ) * + 10 * SUM( - 72 ) * 67 AS col0 FROM tab0 AS cor0
----
-434160

skipif mysql # not compatible
query I rowsort label-5563
SELECT + COUNT ( * ) * + 10 * SUM ( - 72 ) * 67 AS col0 FROM tab0 AS cor0
----
-434160

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NULL NOT BETWEEN ( - 38 ) AND col2
----

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab0 WHERE NOT 99 = - ( ( ( + col2 ) ) )
----
198
20
94

query I rowsort
SELECT - 43 * - + col1 FROM tab0
----
3483
43
903

query I rowsort
SELECT ALL + 3 AS col2 FROM tab0 WHERE NOT - 46 >= ( NULL )
----

query I rowsort
SELECT + - col0 * - - col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN col1 AND ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5570
SELECT + COUNT( ALL - CAST( - - col1 AS DECIMAL ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5570
SELECT + COUNT ( ALL - CAST ( - - col1 AS REAL ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 94 + 54 AS col0 FROM tab0 AS cor0
----
148
148
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT + col1 + - - col1 + CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT + col1 + - - col1 + CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 55 * + col1 NOT IN ( 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT COUNT( * ) + - 8 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5576
SELECT COUNT ( * ) + - 8 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col0 * + + 64 AS col2 FROM tab0
----
5568
6208
960

query III rowsort
SELECT * FROM tab2 WHERE ( + 34 ) > col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT ( col0 ) IN ( + 40 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - + ( - col2 ) AS col0 FROM tab2 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT COUNT( * ) * - - 64 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT COUNT ( * ) * - - 64 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT DISTINCT - col0 + + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - col0 + + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5585
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 26 * + - col0 IN ( + ( 62 ) + - CAST( - 8 AS SIGNED ) * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5585
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 26 * + - col0 IN ( + ( 62 ) + - CAST ( - 8 AS INTEGER ) * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT COUNT( * ) + + + CAST( + - MAX( + 76 ) AS SIGNED ) * + SUM( - col0 ) FROM tab2
----
14063

skipif mysql # not compatible
query I rowsort label-5586
SELECT COUNT ( * ) + + + CAST ( + - MAX ( + 76 ) AS INTEGER ) * + SUM ( - col0 ) FROM tab2
----
14063

query I rowsort
SELECT DISTINCT 29 * + col0 - - col1 FROM tab1
----
1493
2470
2686

query I rowsort
SELECT + ( + 74 ) * ( + + col0 ) FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT ALL + - 66 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-46530
-57420
-633798

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT + COUNT( - 86 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + COUNT ( - 86 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ( - - SUM( ALL - col0 ) ) * + + MIN( ALL + 47 ) FROM tab1 AS cor0
----
-10669

skipif mysql # not compatible
query I rowsort label-5593
SELECT ( - - SUM ( ALL - col0 ) ) * + + MIN ( ALL + 47 ) FROM tab1 AS cor0
----
-10669

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < + col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - 36 * + col0 * + - col1 col1 FROM tab2
----
3040416
6386688
6512400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39, - 17 col2 FROM tab1
----
39
-17
39
-17
39
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT SUM( DISTINCT - + 8 ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT SUM ( DISTINCT - + 8 ) AS col1 FROM tab1
----
-8

query I rowsort
SELECT DISTINCT - col2 * - - 21 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT ALL 82 * - col1 * 62 FROM tab0
----
-106764
-411804
-5084

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT 0 * + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT 0 * + COUNT ( * ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + + col1 * - col1 * + 91 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT - col2 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5602
SELECT - col2 / - + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 95 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT DISTINCT - 33 + - + COUNT( * ) + ( COUNT( * ) ) * MIN( 52 ) FROM tab1 WHERE - col0 <> ( col1 + col1 * + 22 )
----
120

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - 33 + - + COUNT ( * ) + ( COUNT ( * ) ) * MIN ( 52 ) FROM tab1 WHERE - col0 <> ( col1 + col1 * + 22 )
----
120

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + - ( col1 ) + col2 NOT BETWEEN NULL AND - 23 + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL + col1 / + col2 AS col0 FROM tab1 AS cor0 WHERE - col1 - + col1 IS NULL
----

query II rowsort
SELECT - - col2, 70 AS col2 FROM tab2 cor0
----
23
70
40
70
58
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT + 21 DIV - + 57 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT + 21 / - + 57 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - col2 * - col0 * - col1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5610
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - col2 * - col0 * - col1 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5611
SELECT + MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + col2 ) ) <> 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5613
SELECT col1, + col2 * + CAST( NULL AS DECIMAL ) + - 56 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5613
SELECT col1, + col2 * + CAST ( NULL AS REAL ) + - 56 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT 68 FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN + ( - col0 ) + + col1 * - col1 - - col2 / col0 AND ( NULL ) AND col1 IN ( 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 24, - col1 col2 FROM tab2 AS cor0
----
24
-51
24
-67
24
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 20 ) col2 FROM tab1 WHERE ( col0 + - 28 ) IS NOT NULL
----
-20

query I rowsort
SELECT DISTINCT + - AVG ( ALL - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23, col1 + + + col0 col0 FROM tab1 AS cor0
----
23
138
23
65
23
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 >= col2 * - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT COUNT( + 26 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT COUNT ( + 26 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT DISTINCT - MAX( 66 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - MAX ( 66 ) FROM tab0 AS cor0
----
-66

query II rowsort
SELECT ALL col0, + 23 FROM tab1 AS cor0
----
51
23
85
23
91
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5624
SELECT * FROM tab1 WHERE NOT ( NOT CAST( col1 AS SIGNED ) <= ( - + col0 * + 46 * + 43 * + col0 * - col2 + col0 * col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5624
SELECT * FROM tab1 WHERE NOT ( NOT CAST ( col1 AS INTEGER ) <= ( - + col0 * + 46 * + 43 * + col0 * - col2 + col0 * col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - 27 AS col1 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL - COUNT( DISTINCT + - CAST( 42 AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - COUNT ( DISTINCT + - CAST ( 42 AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL MIN( ALL + 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL MIN ( ALL + 47 ) FROM tab0
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > - col0 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL - + SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - + SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 82 / + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT - - COUNT( * ) * 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 72 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - - COUNT ( * ) * 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 72 = NULL
----
0

query I rowsort
SELECT ALL - 23 * + col0 + + 35 * + col1 + - + col0 + + + 47 AS col1 FROM tab0
----
-1306
-2246
2522

query I rowsort
SELECT DISTINCT + 88 * col1 AS col1 FROM tab2
----
4488
5896
6776

query II rowsort
SELECT ALL + 94 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
94
59
94
68
94
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT - col0 * + - CAST( NULL AS SIGNED ) + - col1 - + 14 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - col0 * + - CAST ( NULL AS INTEGER ) + - col1 - + 14 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + ( + - col2 ) * - col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + ( + - col2 ) * - col1 AND - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL 75 + + col2 + - CAST( 98 AS SIGNED ) col0 FROM tab1 AS cor0
----
36
45
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5637
SELECT ALL 75 + + col2 + - CAST ( 98 AS INTEGER ) col0 FROM tab1 AS cor0
----
36
45
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 35 + + 46 <> + 21
----
9 values hashing to c6c