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 c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 43 + + col0 FROM tab0 AS cor0
----
130
140
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT COUNT( * ) * - 60 + + + 21 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT COUNT ( * ) * - 60 + + + 21 FROM tab1
----
-159

query I rowsort
SELECT DISTINCT + col0 * 24 FROM tab0 WHERE NOT 83 IS NULL
----
2088
2328
360

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

query I rowsort
SELECT - 83 * - - col2 FROM tab0
----
-3901
-8217
-830

query I rowsort
SELECT + 41 + - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-40
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL - COUNT( - ( + 8 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL - COUNT ( - ( + 8 ) ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5648
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1, + 72 FROM tab1
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
query II rowsort label-5648
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1, + 72 FROM tab1
----
NULL
72
NULL
72
NULL
72

query I rowsort
SELECT col1 * - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5650
SELECT ALL + CAST( + col1 AS SIGNED ), + col2 * 1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + + col1 NOT IN ( + col0 )
----

skipif mysql # not compatible
query II rowsort label-5650
SELECT ALL + CAST ( + col1 AS INTEGER ), + col2 * 1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + + col1 NOT IN ( + col0 )
----

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

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

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

query I rowsort
SELECT - col1 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
200
3760

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= col0 * - 7 * + ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT SUM( + 85 ) AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5658
SELECT SUM ( + 85 ) AS col2 FROM tab0
----
255

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - + col1 ) <> - 10
----

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

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

query II rowsort
SELECT ALL col1 AS col0, col1 + + col1 AS col2 FROM tab2
----
51
102
67
134
77
154

query II rowsort
SELECT DISTINCT - col1, - ( + col2 ) + - col1 + + col0 AS col2 FROM tab1
----
-14
-59
-47
-24
-5
21

query I rowsort
SELECT DISTINCT 20 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 + col1 * + col0 col2 FROM tab1 AS cor0
----
4299
447
736

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

query I rowsort
SELECT 20 + - + 82 FROM tab2
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + 62 ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5670
SELECT MAX ( + + 75 ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT 44 * - + COUNT( * ) + 38 AS col2 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT 44 * - + COUNT ( * ) + 38 AS col2 FROM tab2 AS cor0
----
-94

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 74 FROM tab0
----
155
75
95

query I rowsort
SELECT + 60 - - col0 FROM tab0
----
147
157
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5676
SELECT ALL CAST( NULL AS SIGNED ) - + MAX( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT DISTINCT - COUNT( * ) DIV - - 6 * - - MAX( col2 ) - - + 24 col1 FROM tab1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5677
SELECT DISTINCT - COUNT ( * ) / - - 6 * - - MAX ( col2 ) - - + 24 col1 FROM tab1
----
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - + 89 * - SUM( + col2 ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
59541

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - + 89 * - SUM ( + col2 ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
59541

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

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

query I rowsort
SELECT + 83 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + col2 * + ( 15 ) * + + ( - + 15 ) FROM tab1
----
-13275
-15300
-21600

query I rowsort
SELECT ALL - col1 * + 64 AS col2 FROM tab0
----
-1344
-5184
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

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

query I rowsort
SELECT + + ( 56 ) * + 5 FROM tab0 AS cor0
----
280
280
280

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

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

query I rowsort
SELECT - - 47 * - - ( - col1 ) FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT COUNT( * ) DIV - + 24 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT COUNT ( * ) / - + 24 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 > + 12
----
97
1
99

query II rowsort
SELECT ALL 65 AS col2, col0 * - col2 FROM tab0
----
65
-705
65
-870
65
-9603

query I rowsort
SELECT ALL + ( + - 72 ) FROM tab0
----
-72
-72
-72

query I rowsort
SELECT col2 + - + ( + - col0 ) FROM tab2
----
104
133
69

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NULL <> - + col0 * - - col2
----

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

query I rowsort
SELECT + + col2 + - - col2 + - col1 + + - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + 26 * - col2 AS col2 FROM tab2 AS cor0
----
-1040
-1508
-598

query II rowsort
SELECT DISTINCT col1 * col1 AS col2, col2 * - col0 AS col1 FROM tab1 AS cor0
----
196
-4896
2209
-6188
25
-5015

query I rowsort
SELECT - col0 + - 95 FROM tab2 AS cor0
----
-141
-159
-170

query I rowsort
SELECT ALL - 97 + + col0 + + - col0 * + ( 13 ) + - 67 FROM tab1 AS cor0
----
-1184
-1256
-776

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

query I rowsort
SELECT ALL + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT ALL + col0 + + + 20 + + col2 AS col1 FROM tab0 cor0
----
117
216
82

query I rowsort
SELECT DISTINCT - - 21 + + col1 - + 7 * - col0 AS col2 FROM tab2 AS cor0
----
394
546
613

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 3 * + ( + - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT ALL - 83 + - + col0 DIV + 97 AS col1 FROM tab0
----
-83
-83
-84

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - 83 + - + col0 / + 97 AS col1 FROM tab0
----
-83
-83
-84

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab2 WHERE - + 43 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT SUM( - 28 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5714
SELECT SUM ( - 28 ) FROM tab1
----
-84

query I rowsort
SELECT ALL + 56 * col2 AS col1 FROM tab2
----
1288
2240
3248

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT 65 * - COUNT( * ) AS col2, + 97 AS col0 FROM tab0
----
-195
97

skipif mysql # not compatible
query II rowsort label-5716
SELECT 65 * - COUNT ( * ) AS col2, + 97 AS col0 FROM tab0
----
-195
97

query II rowsort
SELECT DISTINCT col1 * 53 AS col0, - col1 + col2 FROM tab1
----
2491
21
265
54
742
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 75 col0 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT - ( + col0 ) * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - col1 * + 6 + - 15 - + col1 FROM tab2 AS cor0
----
-372
-484
-554

query I rowsort
SELECT + 42 * + + col1 FROM tab2
----
2142
2814
3234

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5724
SELECT ALL - ( - - 5 ) DIV 42 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - ( - - 5 ) / 42 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + - 43 / + col1 * + col0 - - + 58, col2, col1, - col1 / + + 47 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT DISTINCT 17 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT 17 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + SUM( ALL col2 ) * 39 FROM tab1 AS cor0
----
8697

skipif mysql # not compatible
query I rowsort label-5730
SELECT + SUM ( ALL col2 ) * 39 FROM tab1 AS cor0
----
8697

query I rowsort
SELECT DISTINCT + 90 + - + ( 78 ) * - col2 * col1 * - + col0 AS col1 FROM tab2 AS cor0
----
-15375270
-22733010
-4208634

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT COUNT( * ) * + + 85 AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT COUNT ( * ) * + + 85 AS col2 FROM tab0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL - 50 * + COUNT( col0 ) AS col0 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - 50 * + COUNT ( col0 ) AS col0 FROM tab2
----
-150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT ALL - col1 * col1 DIV 77 FROM tab0
----
-5
-85
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - col1 * col1 / 77 FROM tab0
----
-5
-85
0

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

query I rowsort
SELECT col2 + - 95 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - + 90 + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 72 * - col2 NOT BETWEEN NULL AND - + 70
----
-90

skipif mysql # not compatible
query I rowsort label-5742
SELECT - + 90 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 72 * - col2 NOT BETWEEN NULL AND - + 70
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5743
SELECT + MAX( + 51 ) / + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT + MAX ( + 51 ) / + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT COUNT( * ) - 14 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5744
SELECT COUNT ( * ) - 14 FROM tab1 AS cor0
----
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL + COUNT( * ) + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT col2 * - + 2 - - + col0 AS col2 FROM tab0 AS cor0
----
-101
-79
67

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

query I rowsort
SELECT DISTINCT - 22 + - 7 AS col1 FROM tab0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT - + MAX( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT + - 84 <> - col2 * - CAST( - col0 AS SIGNED ) + + col2 / + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT - + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + - 84 <> - col2 * - CAST ( - col0 AS INTEGER ) + + col2 / + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NOT + + 13 * + 70 * col1 + - 8 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NOT + + 13 * + 70 * col1 + - 8 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT ALL - SUM( DISTINCT 18 ) AS col2, 15 FROM tab2
----
-18
15

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL - SUM ( DISTINCT 18 ) AS col2, 15 FROM tab2
----
-18
15

query I rowsort
SELECT ALL - col0 * - - 16 * col0 AS col0 FROM tab1
----
-115600
-132496
-41616

query I rowsort
SELECT 51 FROM tab1 WHERE NOT 11 + 23 + + + col2 + + - 42 BETWEEN + col2 AND + 72
----
51
51
51

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5757
SELECT ALL - COUNT( * ) col0, + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5757
SELECT ALL - COUNT ( * ) col0, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3
3

query I rowsort
SELECT - 59 FROM tab1 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + SUM( 96 ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-5759
SELECT + SUM ( 96 ) FROM tab2
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) / 84 - 6 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) / 84 - 6 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT + 80 + CAST( NULL AS SIGNED ) * - 82 * 53 / - col2 * + col0 * + col0 * + col2 + - 96 * + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 18 * 74 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 80 + CAST ( NULL AS INTEGER ) * - 82 * 53 / - col2 * + col0 * + col0 * + col2 + - 96 * + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 18 * 74 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col2, 40 col2 FROM tab0 AS cor0 WHERE NOT 95 IS NULL
----
196
40
62
40
97
40

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - 58 * + col2 + 25 AS col0 FROM tab0 WHERE NOT ( NOT ( + col1 IS NOT NULL ) )
----
-2701
-555
-5717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT 75 DIV - - COUNT( * ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5766
SELECT 75 / - - COUNT ( * ) AS col0 FROM tab0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT ALL + col2 DIV col2 * col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + col2 / col2 * col0 FROM tab0 AS cor0
----
15
87
97

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

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

query I rowsort
SELECT + col0 + - col0 + + col2 * + 14 FROM tab2 AS cor0 WHERE NOT ( col0 ) <= - col0
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - + COUNT( * ) + + 89 col2 FROM tab0 AS cor0
----
86

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

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

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

query I rowsort
SELECT ALL + 53 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) * + col0 col0 FROM tab0 WHERE NOT + 37 IS NOT NULL AND 62 >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT DISTINCT 78 DIV - COUNT( * ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT 78 / - COUNT ( * ) AS col0 FROM tab0
----
-26

query I rowsort
SELECT ALL + 95 + - 22 AS col2 FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT ALL COUNT( * ), - SUM( ALL 69 ) col0 FROM tab0
----
3
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5776
SELECT ALL COUNT ( * ), - SUM ( ALL 69 ) col0 FROM tab0
----
3
-207

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

query I rowsort
SELECT 36 + + col0 AS col0 FROM tab1
----
121
127
87

query I rowsort
SELECT + 25 * col1 FROM tab0
----
2025
25
525

query II rowsort
SELECT + 49 AS col2, - 35 FROM tab0
----
49
-35
49
-35
49
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT SUM( ALL - col0 ) * - COUNT( * ) col0 FROM tab1
----
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5781
SELECT SUM ( ALL - col0 ) * - COUNT ( * ) col0 FROM tab1
----
681

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

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

query I rowsort
SELECT + col0 - + + 90 * - - 29 * + 94 FROM tab1
----
-245249
-245255
-245289

query I rowsort
SELECT - 71 + col2 + ( 21 ) + - col2 FROM tab2 cor0
----
-50
-50
-50

query I rowsort
SELECT - - 86 + + + 30 FROM tab0 AS cor0 WHERE NULL > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < 32 + - 7
----

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < 32 + - 7
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5791
SELECT COUNT ( * ) / 81 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 42 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT 9 DIV 47 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT 9 / 47 FROM tab0
----
0
0
0

query I rowsort
SELECT - 99 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 50 BETWEEN - col2 AND ( - ( + - col2 ) ) - + + col0
----
97
1
99

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

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

query I rowsort
SELECT DISTINCT - 0 * + col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + - 49 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-5798
SELECT + - 49 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
147

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5802
SELECT ( MAX ( DISTINCT col1 ) ) AS col2 FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT ALL + 83 * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + 83 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-249

query I rowsort
SELECT + col0 + + col0 + - 32 AS col1 FROM tab2
----
118
60
96

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

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

query I rowsort
SELECT + 8 AS col0 FROM tab2 AS cor0 WHERE 24 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT - MIN( + 8 ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5808
SELECT - MIN ( + 8 ) AS col0 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT col1, - 58 FROM tab0 AS cor0
----
1
-58
21
-58
81
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5810
SELECT ALL + CAST( + col1 AS SIGNED ), col2 AS col0 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL + CAST ( + col1 AS INTEGER ), col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT 89 + - col0 FROM tab1
----
-2
38
4

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT + col0 + - - ( col0 ) DIV - 84 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-5815
SELECT + col0 + - - ( col0 ) / - 84 FROM tab1 AS cor0
----
51
84
90

query II rowsort
SELECT DISTINCT + col0 + col1 AS col2, - col0 * - 51 FROM tab2 AS cor0
----
141
3264
142
3825
97
2346

query I rowsort
SELECT ALL + col2 + - 9 + - col1 * + - col2 AS col1 FROM tab1 AS cor0
----
1431
3255
345

query II rowsort
SELECT - 75 + ( - col0 ) AS col0, col2 FROM tab1 AS cor0
----
-126
96
-160
59
-166
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT DISTINCT col2 DIV + + col1 + + 20 FROM tab0
----
119
20

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT col2 / + + col1 + + 20 FROM tab0
----
119
20

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

query I rowsort
SELECT + 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL - + MIN( - - 30 ) * 69 * COUNT( * ) FROM tab2 AS cor0
----
-6210

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - + MIN ( - - 30 ) * 69 * COUNT ( * ) FROM tab2 AS cor0
----
-6210

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

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

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

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL CAST ( col2 AS INTEGER ) / + 34 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT MAX( col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT MAX ( col0 ) AS col1 FROM tab0
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5829
SELECT DISTINCT - ( + col2 ), CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT - ( + col2 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL COUNT( CAST( - - col1 AS SIGNED ) ) + COUNT( * ) + - + 95 AS col2 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL COUNT ( CAST ( - - col1 AS INTEGER ) ) + COUNT ( * ) + - + 95 AS col2 FROM tab1 AS cor0
----
-89

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

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

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

query I rowsort
SELECT ALL 37 + - col1 * + 87 AS col1 FROM tab0 AS cor0
----
-1790
-50
-7010

query I rowsort
SELECT 96 + - col2 FROM tab1 cor0
----
0
28
37

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + + col0 + - 50 col2 FROM tab2 AS cor0
----
-63
-74
-92

query I rowsort
SELECT DISTINCT + col1 * + col0 - - col2 + + col1 FROM tab2
----
2420
5045
5150

query I rowsort
SELECT ALL + 67 + - + col2 + + 25 * - + 53 + + - 54 FROM tab2
----
-1335
-1352
-1370

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

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

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

query I rowsort
SELECT ALL + 93 * + 25 AS col1 FROM tab1 AS cor0
----
2325
2325
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + COUNT( * ) * - 76 + + COUNT( * ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5844
SELECT + COUNT ( * ) * - 76 + + COUNT ( * ) AS col1 FROM tab2
----
-225

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

query I rowsort
SELECT DISTINCT + col1 * col0 + + 6 * - 48 AS col1 FROM tab1 AS cor0
----
137
3989
426

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5847
SELECT ALL - CAST( + - col2 AS SIGNED ) DIV - + 25 - + - col2 FROM tab0 AS cor0
----
10
46
96

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - CAST ( + - col2 AS INTEGER ) / - + 25 - + - col2 FROM tab0 AS cor0
----
10
46
96

query I rowsort
SELECT ALL 32 * ( col0 ) * - 40 FROM tab0 AS cor0
----
-111360
-124160
-19200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5849
SELECT DISTINCT - - COUNT( * ) DIV + 28 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - - COUNT ( * ) / + 28 AS col1 FROM tab0 AS cor0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5853
SELECT DISTINCT - + ( COUNT( ALL col2 ) ) DIV + + 78 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - + ( COUNT ( ALL col2 ) ) / + + 78 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5854
SELECT + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1, col0 * col2 / 3 + + - 2 * col2 * + - ( - col1 ) + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1, col0 * col2 / 3 + + - 2 * col2 * + - ( - col1 ) + - col0 )
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <> - + 15
----

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

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

query II rowsort
SELECT DISTINCT + col0 AS col1, - ( + + col0 ) + col1 + + 48 FROM tab0
----
15
114
87
-18
97
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5860
SELECT 1 AS col0, + COUNT( * ) FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-5860
SELECT 1 AS col0, + COUNT ( * ) FROM tab2
----
1
3

query II rowsort
SELECT col1, 95 + + + col1 FROM tab0
----
1
96
21
116
81
176

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

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

query I rowsort
SELECT ALL + + col1 * + 94 AS col1 FROM tab1 AS cor0
----
1316
4418
470

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - + 21
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5866
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + - COUNT( + + 36 ) + + + MAX( - CAST( + + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + - COUNT ( + + 36 ) + + + MAX ( - CAST ( + + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT MIN( + 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT MIN ( + 90 ) FROM tab0
----
90

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 80 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + - col0 * + col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5874
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( + col1 ) * - + col0 - + - 25 = - CAST( - col0 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( + col1 ) * - + col0 - + - 25 = - CAST ( - col0 AS REAL )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - MAX( DISTINCT + - col1 ) * - COUNT( * ) + + - 63 AS col2 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-5877
SELECT - MAX ( DISTINCT + - col1 ) * - COUNT ( * ) + + - 63 AS col2 FROM tab2
----
-216

query I rowsort
SELECT ALL col1 * 37 AS col0 FROM tab2
----
1887
2479
2849

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 40 AS col2 FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT 48 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT 48 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + ( col0 ) + - 52 + - ( col0 ) / - col1 * 19
----

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

query I rowsort
SELECT ( + - 62 ) + - - 28 + 37 * - + col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT ALL + + col0 DIV - + ( ( + - 98 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + + col0 / - + ( ( + - 98 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 89 >= + + col0 / - col1
----

query I rowsort
SELECT DISTINCT - col2 * - 29 FROM tab2 cor0
----
1160
1682
667

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT - SUM( ALL + ( + 65 ) ) col2 FROM tab1 AS cor0
----
-195

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5894
SELECT + + 72 * - + MIN( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
4176

skipif mysql # not compatible
query I rowsort label-5894
SELECT + + 72 * - + MIN ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
4176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 11, ( + ( + col0 ) ) * + col2 col0 FROM tab2 AS cor0
----
-11
1058
-11
2560
-11
4350

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 97 BETWEEN - col1 * + + 17 * - 67 / - col2 AND NULL
----

query I rowsort
SELECT 92 FROM tab1 WHERE NOT ( col1 * - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5899
SELECT 70 + + 64, + MIN( DISTINCT - ( 21 ) ) + + SUM( - CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
134
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5899
SELECT 70 + + 64, + MIN ( DISTINCT - ( 21 ) ) + + SUM ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
134
NULL

query I rowsort
SELECT ALL + 50 * - - 78 AS col2 FROM tab0
----
3900
3900
3900

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 69
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5903
SELECT DISTINCT + + 85 DIV - col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-1
-51
-1
-67
-1
-77

skipif mysql # not compatible
query II rowsort label-5903
SELECT DISTINCT + + 85 / - col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-1
-51
-1
-67
-1
-77

query II rowsort
SELECT ALL col1 AS col2, + 77 - + col1 FROM tab2 cor0 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT + + 7 + + 76 FROM tab0 AS cor0
----
83
83
83

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

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

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

query II rowsort
SELECT ALL ( + ( - + 52 ) ) AS col2, - 49 * 41 FROM tab0 AS cor0
----
-52
-2009
-52
-2009
-52
-2009

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

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

query I rowsort
SELECT - col1 + - 80 AS col1 FROM tab0 AS cor0
----
-101
-161
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT + MIN( - col2 ) * COUNT( * ) + + ( 77 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + MIN ( - col2 ) * COUNT ( * ) + + ( 77 ) FROM tab2 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5913
SELECT ALL + col0 DIV + 47 - + - col2 + - - col1 AS col0, 60 AS col0 FROM tab0 AS cor0
----
102
60
128
60
32
60

skipif mysql # not compatible
query II rowsort label-5913
SELECT ALL + col0 / + 47 - + - col2 + - - col1 AS col0, 60 AS col0 FROM tab0 AS cor0
----
102
60
128
60
32
60

query I rowsort
SELECT ALL col2 + + col2 * + + col2 FROM tab0
----
110
2256
9900

query I rowsort
SELECT ALL 93 + ( - ( + col0 ) ) FROM tab2
----
18
29
47

query I rowsort
SELECT ALL 59 + + + col1 + + col1 FROM tab2
----
161
193
213

query II rowsort
SELECT DISTINCT + ( + col2 ) + ( + 96 ), + col2 FROM tab1
----
155
59
164
68
192
96

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

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL COUNT ( ALL + - col1 ) - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL + 22 + COUNT( * ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + 22 + COUNT ( * ) AS col1 FROM tab1
----
25

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

query I rowsort
SELECT + ( + 94 ) * col1 + + ( - col1 ) - + + ( + 36 ) FROM tab2 AS cor0
----
4707
6195
7125

query I rowsort
SELECT DISTINCT + col0 + col1 + - 0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT - - 10 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5923
SELECT - - 10 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT + - ( - ( + + 30 ) ) * COUNT( * ) + - - 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
290

skipif mysql # not compatible
query I rowsort label-5925
SELECT + - ( - ( + + 30 ) ) * COUNT ( * ) + - - 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT ALL CAST( - col1 AS SIGNED ) * + col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL CAST ( - col1 AS INTEGER ) * + col2 FROM tab2
----
-1173
-3080
-3886

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col0 * - 27 AS col2 FROM tab1
----
1377
2295
2457

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT col0 DIV + - col1 col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5933
SELECT col0 / + - col1 col2 FROM tab0
----
-4
-97
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 90 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 * - 26 col0 FROM tab0
----
572
572
572

query I rowsort
SELECT DISTINCT + 89 * - + col0 FROM tab0
----
-1335
-7743
-8633

query I rowsort
SELECT col2 + - + col0 FROM tab1 WHERE NOT + col0 + + ( + col1 ) * + col2 IS NULL
----
-23
-26
45

query I rowsort
SELECT ALL col2 * - - 74 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT MAX( + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT MAX ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL >= NULL )
----
NULL

query I rowsort
SELECT - + 76 + col0 AS col2 FROM tab1 AS cor0
----
-25
15
9

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

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

query I rowsort
SELECT - + 22 + - - col0 * + col0 FROM tab2 AS cor0
----
2094
4074
5603

query I rowsort
SELECT DISTINCT 30 + + + 50 FROM tab0
----
80

query I rowsort
SELECT DISTINCT col2 + - 39 * + col0 FROM tab2
----
-1771
-2456
-2867

query I rowsort
SELECT DISTINCT - - 58 / col2 FROM tab0 WHERE NOT + col1 * + + 26 + - + 20 IS NOT NULL
----

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

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

query II rowsort
SELECT 72 * - + 70 AS col0, col1 * - col1 - - - 81 FROM tab0 AS cor0
----
-5040
-522
-5040
-6642
-5040
-82

query II rowsort
SELECT ALL - col2 + - col2 AS col2, 82 AS col0 FROM tab0 AS cor0
----
-198
82
-20
82
-94
82

query I rowsort
SELECT - col2 * - 86 FROM tab2 AS cor0
----
1978
3440
4988

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 64 >= + - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 45 * - col1 AS col2, col0 FROM tab0 AS cor0
----
-3645
15
-45
97
-945
87

query I rowsort
SELECT + col2 - 22 * + - 53 + - - 67 FROM tab0 AS cor0
----
1243
1280
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT - - COUNT( ALL - col1 ) + + 92 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - - COUNT ( ALL - col1 ) + + 92 FROM tab2 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - + col2 AS col2, + col0 col1 FROM tab0 AS cor0
----
-2
97
-32
15
77
87

query I rowsort
SELECT 31 - - col1 * - col1 FROM tab1
----
-165
-2178
6

query I rowsort
SELECT ALL ( 47 ) + - 98 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL 55 - col1 AS col0 FROM tab0
----
-26
34
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT 31 col2 FROM tab0 WHERE NOT ( - - col0 ) * col1 / - CAST( NULL AS SIGNED ) * - 42 + + col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5962
SELECT ALL + COUNT( * ), 16 * 86 col0 FROM tab1
----
3
1376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5962
SELECT ALL + COUNT ( * ), 16 * 86 col0 FROM tab1
----
3
1376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL SUM( DISTINCT + - col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5965
SELECT ALL SUM ( DISTINCT + - col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227

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

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

query I rowsort
SELECT 74 - - col0 AS col0 FROM tab2 WHERE NOT - 99 IS NULL
----
120
138
149

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5968
SELECT DISTINCT 34 / ( + col2 / CAST ( NULL AS INTEGER ) ) - 7 / 93 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort
SELECT ALL + 28 FROM tab1 WHERE NULL BETWEEN ( 58 / - 0 + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT col2 FROM tab2 WHERE ( 68 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT COUNT( * ) FROM tab1 WHERE NOT ( col1 * col2 ) <> - 85
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( col1 * col2 ) <> - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT 97 + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT 97 + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
106

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

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab2 WHERE + col1 IS NOT NULL
----
104
133
69

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

query I rowsort
SELECT DISTINCT col2 + + col0 * 83 FROM tab2
----
3841
5352
6283

query I rowsort
SELECT ALL + 91 + + col1 FROM tab2
----
142
158
168

query III rowsort
SELECT * FROM tab0 WHERE ( + 1 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 52 + + 25 BETWEEN 84 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + + 37 col0 FROM tab0
----
134
134
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT + CAST( + 96 AS SIGNED ) * 39 FROM tab2
----
3744

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + CAST ( + 96 AS INTEGER ) * 39 FROM tab2
----
3744

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 70 / col0 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 79 + - col2 FROM tab0
----
-20
32
69

query I rowsort
SELECT - col0 * 16 AS col0 FROM tab0
----
-1392
-1552
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT col1 DIV col2 + col0 * 65 FROM tab2
----
2992
4161
4876

skipif mysql # not compatible
query I rowsort label-5988
SELECT col1 / col2 + col0 * 65 FROM tab2
----
2992
4161
4876

query I rowsort
SELECT DISTINCT 92 * col1 AS col2 FROM tab1 WHERE - 26 * col0 + + 16 * col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 WHERE - col0 * col0 IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT + ( col2 ) - 59 DIV col0 AS col1 FROM tab1
----
59
68
95

skipif mysql # not compatible
query I rowsort label-5992
SELECT + ( col2 ) - 59 / col0 AS col1 FROM tab1
----
59
68
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT 25 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 * - col0 + - col2 <= ( + 53 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT 25 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 * - col0 + - col2 <= ( + 53 )
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL <> + 9
----

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab0 WHERE ( + 91 * 6 + col0 ) NOT IN ( + col0 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 26 / - ( col0 ) BETWEEN + col0 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 3 + + 98 AS col2 FROM tab1 AS cor0
----
101
101
101

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

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

query I rowsort
SELECT - 89 * - 49 + col1 FROM tab0 AS cor0
----
4362
4382
4442

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) - col2 col1 FROM tab0 AS cor0 WHERE ( - 56 ) < - col0 + ( + col1 + col0 * + col0 ) * col2
----
-2
-32
77

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

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

query I rowsort
SELECT DISTINCT - 0 + col2 * 34 AS col1 FROM tab2 AS cor0
----
1360
1972
782

query I rowsort
SELECT ALL + 51 * + col1 AS col0 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT DISTINCT col2 DIV + - 28 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT col2 / + - 28 FROM tab2
----
-1
-2
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT MAX( 2 ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6007
SELECT MAX ( 2 ) AS col0 FROM tab1
----
2

query I rowsort
SELECT col0 - - 80 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col1 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL 52 / - + col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6011
SELECT ALL COUNT( CAST( - 59 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL COUNT ( CAST ( - 59 AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT - MAX( + - 36 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-6012
SELECT - MAX ( + - 36 ) FROM tab1
----
36

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6015
SELECT COUNT ( - + 42 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE 3 = col1 OR NULL <> + col0 * col2
----

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

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-6021
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - CAST ( NULL AS INTEGER ) + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( 54 )
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( 54 )
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN ( - - 63 ) AND NULL
----

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

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

query I rowsort
SELECT ALL 58 + col2 * col2 FROM tab1
----
3539
4682
9274

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL - ( MIN( - 79 ) ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - ( MIN ( - 79 ) ) FROM tab1
----
79

query II rowsort
SELECT DISTINCT - col0 + - col2 AS col2, + col2 + + + col0 FROM tab2
----
-104
104
-133
133
-69
69

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

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

skipif mysql # not compatible
query I rowsort label-6031
SELECT - SUM ( ALL + col2 ) FROM tab2
----
-121

query I rowsort
SELECT ALL + col2 + - col2 * + - col2 FROM tab1
----
3540
4692
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT ALL 65 DIV + + 66 * + col0 + - ( col1 ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL 65 / + + 66 * + col0 + - ( col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT AVG ( DISTINCT - - 41 ) * - MAX( DISTINCT - col2 ) + + 69 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT AVG ( DISTINCT - - 41 ) * - MAX ( DISTINCT - col2 ) + + 69 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL + - COUNT( * ) + - 40 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + - COUNT ( * ) + - 40 FROM tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col1 col1, col0 + - col2 col1 FROM tab1 AS cor0
----
425
26
4277
23
714
-45

query I rowsort
SELECT DISTINCT col2 * + 47 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6038
SELECT ALL MAX( - + col2 ) DIV 51 * - - COUNT( * ) + - 69 - - COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL MAX ( - + col2 ) / 51 * - - COUNT ( * ) + - 69 - - COUNT ( * ) FROM tab1
----
-69

query I rowsort
SELECT DISTINCT col2 - + col0 - + col0 + col2 * + + col2 AS col1 FROM tab1 AS cor0
----
3370
4510
9210

query I rowsort
SELECT DISTINCT + col0 * - 96 AS col1 FROM tab0 AS cor0
----
-1440
-8352
-9312

query I rowsort
SELECT col2 * 66 * 52 FROM tab0 AS cor0
----
161304
339768
34320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6042
SELECT DISTINCT AVG ( ALL CAST( NULL AS DECIMAL ) ) * + ( - 68 ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6042
SELECT DISTINCT AVG ( ALL CAST ( NULL AS REAL ) ) * + ( - 68 ) col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + 97 * col2 IS NULL
----
-14
-47
-5

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

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + col2 IS NULL
----

query II rowsort
SELECT + ( - 42 ) AS col0, - col0 FROM tab0
----
-42
-15
-42
-87
-42
-97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL COUNT( * ) * + + 62 AS col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL COUNT ( * ) * + + 62 AS col0 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-6051
SELECT 26, - MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
26
51

skipif mysql # not compatible
query II rowsort label-6051
SELECT 26, - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
26
51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL - COUNT( * ) * - 95 * - + 34 * 36 AS col2 FROM tab2
----
-348840

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - COUNT ( * ) * - 95 * - + 34 * 36 AS col2 FROM tab2
----
-348840

query I rowsort
SELECT ALL - col2 * - 86 FROM tab2
----
1978
3440
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - + SUM( ALL 71 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-639

skipif mysql # not compatible
query I rowsort label-6056
SELECT - + SUM ( ALL 71 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-639

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6058
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + + CAST( + + col0 AS SIGNED ) * - col1 * + 3
----

skipif mysql # not compatible
query III rowsort label-6058
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + + CAST ( + + col0 AS INTEGER ) * - col1 * + 3
----

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - col0 * + col2 * - 60 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL + 42 * - - 6 + - COUNT( * ) AS col1 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + 42 * - - 6 + - COUNT ( * ) AS col1 FROM tab2
----
249

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6062
SELECT DISTINCT + - col2 * 37 AS col2, + CAST( col2 AS DECIMAL ) + col1 * - col0 col0 FROM tab1 WHERE NOT + - col0 + - col2 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6062
SELECT DISTINCT + - col2 * 37 AS col2, + CAST ( col2 AS REAL ) + col1 * - col0 col0 FROM tab1 WHERE NOT + - col0 + - col2 >= NULL
----

query II rowsort
SELECT - 53 * - col0 * - col0, + col0 + + col0 AS col0 FROM tab1
----
-137853
102
-382925
170
-438893
182

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

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

query I rowsort
SELECT 56 * + col2 - 94 AS col0 FROM tab1 AS cor0
----
3210
3714
5282

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 - + ( + col2 ) + + col0 * 99 NOT BETWEEN NULL AND - col2 * ( + col1 ) + col0 + col1
----

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

query I rowsort
SELECT + 88 * - - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-103224
-271040
-341968

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6075
SELECT ALL - col2 * - + col1 / - 61 col2 FROM tab1 WHERE NOT ( + col2 * CAST ( NULL AS INTEGER ) * - col0 * - col2 * + col1 + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col1 * - col2 * + - col2 AS col1 FROM tab0
----
14493249
44100
9801

query I rowsort
SELECT ALL 73 * 98 AS col1 FROM tab1
----
7154
7154
7154

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT 92 DIV + col1 AS col0 FROM tab0
----
1
4
92

skipif mysql # not compatible
query I rowsort label-6079
SELECT 92 / + col1 AS col0 FROM tab0
----
1
4
92

query I rowsort
SELECT - col2 * 37 * 31 FROM tab1
----
-110112
-67673
-77996

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 62 + - - col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 * col0 * + col2 * - 13 FROM tab1
----
3846505
5470192
6110208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL + MIN( + CAST( + - 24 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + MIN ( + CAST ( + - 24 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT + 79 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6088
SELECT + 79 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / 29 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 21 IN ( - 24 * + 21 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT ALL + + col2 + + + CAST( + - 86 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39
-76
13

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL + + col2 + + + CAST ( + - 86 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39
-76
13

query I rowsort
SELECT + col1 + - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 / col0 < NULL
----

query I rowsort
SELECT DISTINCT col1 * - 59 + + col1 AS col0 FROM tab0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT COUNT( * ) - + 20 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-6094
SELECT COUNT ( * ) - + 20 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT + col1 * - + ( + col2 ) - + 5 FROM tab1
----
-1349
-300
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
3

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6099
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 83 * - + 17 AS col2 FROM tab2
----
-1411

query I rowsort
SELECT ALL + + 85 * col0 FROM tab1 WHERE + ( col1 ) NOT IN ( + 11, - col1 )
----
4335
7225
7735

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> - + col1 / - - col1 + + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 83, 75 col0 FROM tab0
----
-3901
75
-8217
75
-830
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 * - + col1 * + col1 IN ( col0 + - col2 + - - col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 65 / col1 NOT BETWEEN NULL AND - col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT ALL - 13 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - 13 / col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL - CAST( + ( 30 ) AS SIGNED ) * MIN( - 3 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - CAST ( + ( 30 ) AS INTEGER ) * MIN ( - 3 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT + + 57 * - 56 + + + 7 + + col1 FROM tab2 AS cor0
----
-3108
-3118
-3134

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

skipif mysql # not compatible
query II rowsort label-6116
SELECT - 23 * + col0 + - - 73 + - CAST ( NULL AS INTEGER ) * - col1 AS col0, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT + 65 + - + col0 FROM tab2 AS cor0
----
-10
1
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 * - 5 + + + col0 col1 FROM tab1 AS cor0
----
146
180
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT - COUNT( * ) + - 24 AS col2 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6120
SELECT - COUNT ( * ) + - 24 AS col2 FROM tab2 cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT DISTINCT col2 * + 8 + - col2 - + col1 * 32 DIV col0 AS col2 FROM tab1 cor0
----
412
460
664

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT col2 * + 8 + - col2 - + col1 * 32 / col0 AS col2 FROM tab1 cor0
----
412
460
664

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL + MAX( DISTINCT + - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + MAX ( DISTINCT + - col1 ) FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6123
SELECT ALL * FROM tab2 AS cor0 WHERE + 43 / + 23 + - CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6123
SELECT ALL * FROM tab2 AS cor0 WHERE + 43 / + 23 + - CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT MIN( - col2 ) - - - 60 AS col0 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT MIN ( - col2 ) - - - 60 AS col0 FROM tab1
----
-156

query I rowsort
SELECT ALL - 57 * 93 + + - col0 AS col1 FROM tab1
----
-5352
-5386
-5392

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

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

query I rowsort
SELECT 42 * + col2 AS col0 FROM tab1
----
2478
2856
4032

query I rowsort
SELECT DISTINCT col2 + - 38 FROM tab0
----
-28
61
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT ALL - col0 DIV - col0 - + col2 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - col0 / - col0 - + col2 FROM tab1
----
-58
-67
-95

query II rowsort
SELECT DISTINCT + 0 * col0 AS col1, - 15 FROM tab2 AS cor0
----
0
-15

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE - 32 * - col0 NOT BETWEEN + col0 AND + col1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 60 IS NULL
----

query I rowsort
SELECT DISTINCT + 13 * - col2 + 86 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1201
-44
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT DISTINCT - 57 DIV - 65 + + 38 col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6134
SELECT DISTINCT - 57 / - 65 + + 38 col0 FROM tab1 AS cor0
----
38

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 45 * + col0 col1, - col0 AS col0 FROM tab2
----
105570
-46
221760
-64
226125
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + SUM( 37 ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-6138
SELECT + SUM ( 37 ) FROM tab1
----
111

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( + - 31 ) IS NOT NULL
----
59
68
96

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

query I rowsort
SELECT DISTINCT - + 1 + - + ( - 28 ) FROM tab1 cor0
----
27

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT ALL - CAST( 45 AS SIGNED ) + + + 4 + + 30 + + + col0 FROM tab0 AS cor0
----
4
76
86

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - CAST ( 45 AS INTEGER ) + + + 4 + + 30 + + + col0 FROM tab0 AS cor0
----
4
76
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6144
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST( NULL AS DECIMAL ) * - 63 + - col1 + + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6144
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST ( NULL AS REAL ) * - 63 + - col1 + + + col0 AND NULL
----

query I rowsort
SELECT - - col0 * col0 + - + ( - 81 ) FROM tab0 AS cor0
----
306
7650
9490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT DISTINCT - + ( CAST( - 79 AS SIGNED ) ) col2 FROM tab2 WHERE NULL > - + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6146
SELECT DISTINCT - + ( CAST ( - 79 AS INTEGER ) ) col2 FROM tab2 WHERE NULL > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT MIN( 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6149
SELECT MIN ( 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL + 98 * - 25 FROM tab2 AS cor0
----
-2450
-2450
-2450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT ALL - SUM( col0 ) + 7 - + - COUNT( * ) - + COUNT( * ) * + COUNT( * ) DIV - SUM( - ( 99 ) ) + - 27 DIV 5 + + COUNT( * ) * + 26 + 64 DIV 99 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL - SUM ( col0 ) + 7 - + - COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) / - SUM ( - ( 99 ) ) + - 27 / 5 + + COUNT ( * ) * + 26 + 64 / 99 FROM tab1 AS cor0
----
-144

query I rowsort
SELECT + 20 - - 2 AS col0 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT - col0 - - 42 - + 55 AS col2 FROM tab0 AS cor0
----
-100
-110
-28

query I rowsort
SELECT ALL 71 * col1 * + + col1 + + 69 FROM tab0 AS cor0
----
140
31380
465900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6155
SELECT ALL + CAST( NULL AS DECIMAL ) * MAX( + + 8 ) + 45 col2, - COUNT( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST( col1 AS SIGNED ), + col1, - 52 )
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6155
SELECT ALL + CAST ( NULL AS REAL ) * MAX ( + + 8 ) + 45 col2, - COUNT ( * ) AS col0 FROM tab2 WHERE col2 + + 61 NOT IN ( - - 57, CAST ( col1 AS INTEGER ), + col1, - 52 )
----
NULL
-3

query I rowsort
SELECT 65 - + col1 FROM tab1
----
18
51
60

query II rowsort
SELECT col1 * - col0 + - col0, - 22 AS col2 FROM tab0
----
-1230
-22
-1914
-22
-194
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + 49 + + 80 DIV 20 DIV + + col0 AS col1 FROM tab0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 49 + + 80 / 20 / + + col0 AS col1 FROM tab0
----
49
49
49

query III rowsort
SELECT * FROM tab1 WHERE 62 <> + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6160
SELECT + COUNT ( * ) + - + 90 col2 FROM tab2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6161
SELECT ALL 79 * + + 97 * + col1 + - CAST( + col1 AS SIGNED ) + - col2 FROM tab1 cor0
----
107172
360046
38251

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 79 * + + 97 * + col1 + - CAST ( + col1 AS INTEGER ) + - col2 FROM tab1 cor0
----
107172
360046
38251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + + col1 col0 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - 70 * + col1 * + + 39 FROM tab1 AS cor0
----
-128310
-13650
-38220

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT - 74 DIV col1 AS col2 FROM tab0 AS cor0
----
-3
-74
0

skipif mysql # not compatible
query I rowsort label-6164
SELECT - 74 / col1 AS col2 FROM tab0 AS cor0
----
-3
-74
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT DISTINCT COUNT( * ) AS col2, 74 AS col0 FROM tab0
----
3
74

skipif mysql # not compatible
query II rowsort label-6166
SELECT DISTINCT COUNT ( * ) AS col2, 74 AS col0 FROM tab0
----
3
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6167
SELECT - col0 col1, 83 + + + 69 - 39 - col1 * CAST( 47 AS SIGNED ) AS col0 FROM tab2
----
-46
-2284
-64
-3506
-75
-3036

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6167
SELECT - col0 col1, 83 + + + 69 - 39 - col1 * CAST ( 47 AS INTEGER ) AS col0 FROM tab2
----
-46
-2284
-64
-3506
-75
-3036

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL + 72 AS col2 FROM tab0 AS cor0 WHERE - col1 + + - 17 > - - col0
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 * col2 AS col2 FROM tab1 AS cor0
----
-14
-9216
-47
-4624
-5
-3481

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

query I rowsort
SELECT DISTINCT - - col0 * + 17 * + 51 * + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
31320375
31570938
337442469

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

query II rowsort
SELECT ALL + ( 68 ) * - - col1 + + 54 + col2 + + - col0 + + 24 + col0 + - col2 AS col2, 90 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 58 ) FROM tab2 AS cor0 WHERE NOT - col0 - + col1 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT - MAX( + - 91 ) AS col1 FROM tab0 WHERE NOT - - 95 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT - MAX ( + - 91 ) AS col1 FROM tab0 WHERE NOT - - 95 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NULL = - 52
----

query II rowsort
SELECT - 95 + - col0, ( + col0 ) * + - 33 AS col1 FROM tab0
----
-110
-495
-182
-2871
-192
-3201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6180
SELECT * FROM tab2 WHERE + col1 * + 12 + - - 49 = - col2 * + col0 + + + CAST( ( - col0 ) AS SIGNED ) + col1 * 51 * - 29
----

skipif mysql # not compatible
query III rowsort label-6180
SELECT * FROM tab2 WHERE + col1 * + 12 + - - 49 = - col2 * + col0 + + + CAST ( ( - col0 ) AS INTEGER ) + col1 * 51 * - 29
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6181
SELECT COUNT( ALL - 38 ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6181
SELECT COUNT ( ALL - 38 ), + COUNT ( * ) FROM tab0
----
3
3

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

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

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

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

query II rowsort
SELECT - col0 * + 13, + col2 FROM tab2 AS cor0
----
-598
23
-832
40
-975
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL COUNT( * ) + + - 25 - 43 col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6185
SELECT ALL COUNT ( * ) + + - 25 - 43 col2 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab1 AS cor0 WHERE ( 8 ) IS NOT NULL
----
-118
-136
-192

query II rowsort
SELECT ALL - - col1 + - col0 AS col1, + ( + 44 ) FROM tab0 AS cor0
----
-66
44
-96
44
66
44

query I rowsort
SELECT col2 FROM tab2 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL ( 84 ) * col0 * - + 52 - + - col0 + - - col2 FROM tab2 AS cor0
----
-200859
-279448
-327467

query I rowsort
SELECT + - col2 + 67 FROM tab2 AS cor0
----
27
44
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT ALL + - 17, MIN( - 89 ) AS col2 FROM tab0 AS cor0
----
-17
-89

skipif mysql # not compatible
query II rowsort label-6191
SELECT ALL + - 17, MIN ( - 89 ) AS col2 FROM tab0 AS cor0
----
-17
-89

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

query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab1 AS cor0 WHERE + col2 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 + 88 FROM tab2 AS cor0
----
134
152
163

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 76 + col2 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 41 + - col1 - 74 FROM tab1
----
-38
-47
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6198
SELECT - col0 * 41, ( + + CAST( + 64 AS SIGNED ) ) * + col0 AS col2 FROM tab0
----
-3567
5568
-3977
6208
-615
960

skipif mysql # not compatible
query II rowsort label-6198
SELECT - col0 * 41, ( + + CAST ( + 64 AS INTEGER ) ) * + col0 AS col2 FROM tab0
----
-3567
5568
-3977
6208
-615
960

query I rowsort
SELECT ALL col0 + - + col2 - col2 AS col0 FROM tab0
----
-101
-79
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6200
SELECT - MIN( ALL - + col2 ) DIV COUNT( * ) - MAX( ( + col0 ) ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-6200
SELECT - MIN ( ALL - + col2 ) / COUNT ( * ) - MAX ( ( + col0 ) ) FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT 26 - + COUNT( * ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6201
SELECT 26 - + COUNT ( * ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL - 14 * - + col1 FROM tab2
----
1078
714
938

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - - 42 * - col1 AS col2 FROM tab0
----
159894
4158
8820

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

query I rowsort
SELECT - col2 * - - 46 * + col1 FROM tab1 AS cor0
----
-13570
-147016
-61824

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL - MAX( ALL - col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - MAX ( ALL - col0 ) AS col1 FROM tab0 cor0
----
15

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 74 + - 4 * + + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - ( + ( - 75 ) ) FROM tab1
----
75
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6213
SELECT + MIN( DISTINCT col0 ), + MAX( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1
----
51
-5

skipif mysql # not compatible
query II rowsort label-6213
SELECT + MIN ( DISTINCT col0 ), + MAX ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1
----
51
-5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL + col0 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL + col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT ALL 74 DIV - COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL 74 / - COUNT ( * ) FROM tab2
----
-24

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

query II rowsort
SELECT DISTINCT - 49, col1 FROM tab1 cor0
----
-49
14
-49
47
-49
5

query II rowsort
SELECT DISTINCT - - 54, 18 AS col1 FROM tab1 AS cor0
----
54
18

query I rowsort
SELECT + 30 + + - col1 AS col1 FROM tab0 AS cor0
----
-51
29
9

query I rowsort
SELECT - 34 + + ( - + col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
2567
4455
5895

query I rowsort
SELECT DISTINCT - - col0 * + col0 + - - 5 AS col2 FROM tab1 AS cor0
----
2606
7230
8286

query I rowsort
SELECT 88 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + + col2 - + + col0 FROM tab2 WHERE - ( - - ( + col0 ) ) >= + col1
----

query I rowsort
SELECT DISTINCT 6 - - 71 * col0 FROM tab1
----
3627
6041
6467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT + 66 - + ( - SUM( ALL + - 12 ) ) DIV + 21 col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6226
SELECT + 66 - + ( - SUM ( ALL + - 12 ) ) / + 21 col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - + 48 - COUNT( * ) + - MAX( ALL col2 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-6227
SELECT - + 48 - COUNT ( * ) + - MAX ( ALL col2 ) FROM tab1 AS cor0
----
-147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + 58 * - COUNT( DISTINCT + 51 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 58 * - COUNT ( DISTINCT + 51 ) FROM tab2
----
-58

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col2 * + + ( - + col2 ) BETWEEN + - 18 AND - 95 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1 AS col1, - col1 * + + 25 * + + col2 AS col0 FROM tab1 WHERE NULL < 76
----

query I rowsort
SELECT DISTINCT col2 * 19 FROM tab2
----
1102
437
760

query I rowsort
SELECT - - 99 * - 55 AS col1 FROM tab0 AS cor0
----
-5445
-5445
-5445

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

query I rowsort
SELECT - + col2 * + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT - 67 * + col0 * 96 AS col1 FROM tab2 AS cor0
----
-295872
-411648
-482400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - + ( + - col0 ) * + 3 + + - col1 col1 FROM tab2 AS cor0
----
-2949
-4109
-4792

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

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

query I rowsort
SELECT ALL + 52 + + col2 AS col1 FROM tab2
----
110
75
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT col1 DIV 40 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6243
SELECT col1 / 40 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6244
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) DIV - COUNT( DISTINCT + col2 ) + - + 31 + + 45 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) / - COUNT ( DISTINCT + col2 ) + - + 31 + + 45 FROM tab1
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-6245
SELECT + col1 DIV col1 * - col2 AS col2, ( - col2 ) FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

skipif mysql # not compatible
query II rowsort label-6245
SELECT + col1 / col1 * - col2 AS col2, ( - col2 ) FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT DISTINCT + 55 AS col1, - 49 FROM tab1
----
55
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT DISTINCT col0 * - CAST( - 91 AS SIGNED ) - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT col0 * - CAST ( - 91 AS INTEGER ) - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * - col0 col2 FROM tab2 WHERE NOT + - col2 - - 52 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT DISTINCT 15 AS col2 FROM tab1 AS cor0 WHERE NOT + 39 + CAST( NULL AS SIGNED ) NOT BETWEEN 41 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT 15 AS col2 FROM tab1 AS cor0 WHERE NOT + 39 + CAST ( NULL AS INTEGER ) NOT BETWEEN 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT DISTINCT - MIN( DISTINCT - col2 ), + 21 AS col0 FROM tab2 cor0
----
58
21

skipif mysql # not compatible
query II rowsort label-6252
SELECT DISTINCT - MIN ( DISTINCT - col2 ), + 21 AS col0 FROM tab2 cor0
----
58
21

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6254
SELECT - SUM ( ALL + - col1 ) col0 FROM tab1
----
66

query I rowsort
SELECT DISTINCT 8 * + - col1 FROM tab1
----
-112
-376
-40

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 93 AS col2 FROM tab1 AS cor0 WHERE 2 NOT BETWEEN NULL AND - CAST ( - 81 AS INTEGER ) + + col1 + - col2
----
93

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

query II rowsort
SELECT col0, - col1 * - col2 AS col2 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

query I rowsort
SELECT DISTINCT - col2 * - + ( + - 82 ) + + col2 + + col1 + col2 FROM tab2
----
-1789
-3123
-4573

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL col1 * + - 69 + + - col0 DIV - 96 + + - col2 AS col0 FROM tab1 AS cor0
----
-1062
-3311
-404

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL col1 * + - 69 + + - col0 / - 96 + + - col2 AS col0 FROM tab1 AS cor0
----
-1062
-3311
-404

query I rowsort
SELECT + col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 57
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT + 75 DIV + - 73 + 11 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-6268
SELECT + 75 / + - 73 + 11 FROM tab0 AS cor0
----
10
10
10

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

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

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

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

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

query I rowsort
SELECT ALL - - 44 AS col0 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT - 15 * + col2 AS col1 FROM tab1 AS cor0
----
-1020
-1440
-885

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

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

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 56
----

query I rowsort
SELECT 97 * - - col0 AS col1 FROM tab1 AS cor0
----
4947
8245
8827

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

skipif mysql # not compatible
query II rowsort label-6279
SELECT col2 / col2 / - col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
0
58

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

query II rowsort
SELECT + 30 AS col1, col2 FROM tab1
----
30
59
30
68
30
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6282
SELECT - - col1 + col2 AS col0, - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + ( + 75 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6282
SELECT - - col1 + col2 AS col0, - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + ( + 75 ) IS NOT NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 25 * + + col0 + + col0 = + + 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT ALL SUM ( - col0 ) col0 FROM tab1
----
-227

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE 77 * col0 < col2
----

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

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

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

query I rowsort
SELECT ALL 40 * + 48 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
1353600
1670400
18437760

query I rowsort
SELECT - 11 + - col0 - + + col0 AS col1 FROM tab1 AS cor0
----
-113
-181
-193

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

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

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

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

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

query I rowsort
SELECT - 90 + col1 AS col1 FROM tab0 WHERE - ( col1 ) IS NULL
----

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

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

query I rowsort
SELECT - 89 * - col1 AS col2 FROM tab2
----
4539
5963
6853

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6303
SELECT - col2 - - col2 DIV + 36 AS col2, - 52 FROM tab2 AS cor0
----
-23
-52
-39
-52
-57
-52

skipif mysql # not compatible
query II rowsort label-6303
SELECT - col2 - - col2 / + 36 AS col2, - 52 FROM tab2 AS cor0
----
-23
-52
-39
-52
-57
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * - 84 + 64 col2 FROM tab0 cor0
----
-5564
-5564
-5564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT ALL - COUNT( + - 68 ) DIV 20 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL - COUNT ( + - 68 ) / 20 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT 34 * + - CAST( NULL AS SIGNED ) + - 20 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT 34 * + - CAST ( NULL AS INTEGER ) + - 20 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * + col2 col1 FROM tab1
----
472
544
768

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT + col2 DIV 31 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6311
SELECT + col2 / 31 FROM tab1 AS cor0
----
1
2
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT DISTINCT 93 DIV - ( + 10 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT 93 / - ( + 10 ) FROM tab0
----
-9

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

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

query I rowsort
SELECT - 94 * - col0 AS col1 FROM tab1
----
4794
7990
8554

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - col2 ) col0 FROM tab2
----
1600
3364
529

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

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

query I rowsort
SELECT - 28 * - - 91 FROM tab1
----
-2548
-2548
-2548

query I rowsort
SELECT ALL + 22 AS col2 FROM tab0 cor0
----
22
22
22

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

query I rowsort
SELECT - + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + col1 * 19 + + + col2 + + + col0 FROM tab1 AS cor0
----
1052
239
413

query I rowsort
SELECT DISTINCT col0 + 12 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT + - COUNT( * ) AS col1, + 45 FROM tab0 AS cor0 WHERE - col0 + + - col0 = NULL
----
0
45

skipif mysql # not compatible
query II rowsort label-6326
SELECT + - COUNT ( * ) AS col1, + 45 FROM tab0 AS cor0 WHERE - col0 + + - col0 = NULL
----
0
45

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

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

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

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

query I rowsort
SELECT - 81 * - + 92 AS col0 FROM tab0 AS cor0
----
7452
7452
7452

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) * - col1 + + col1 + - 70 * - col0 AS col0 FROM tab2 AS cor0
----
-116375
-331358
-374899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col0 col2 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT + 93 * SUM( + col0 ) * + - 14 * + + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT + 93 * SUM ( + col0 ) * + - 14 * + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab1, tab2 cor0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) + + 17 FROM tab0
----
17

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

query III rowsort
SELECT * FROM tab0 WHERE col1 > + - 85 + - - 95 + - col1 * + col2 + - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT - CAST( + 79 AS SIGNED ) AS col2 FROM tab1 cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-6341
SELECT - CAST ( + 79 AS INTEGER ) AS col2 FROM tab1 cor0
----
-79
-79
-79

query I rowsort
SELECT ALL + col1 * + + col1 * - col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
-1
-194481
-43046721

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

query I rowsort
SELECT + 72 * + col2 AS col0 FROM tab1
----
4248
4896
6912

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 30 * - + col2 > NULL
----

query I rowsort
SELECT ALL ( col1 ) * + + 20 AS col0 FROM tab0
----
1620
20
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT ALL col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-6352
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

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

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE - 1 <> - 32
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + ( - - 35 ) - 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - MIN( DISTINCT - col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6356
SELECT ALL - MIN ( DISTINCT - col2 ) col1 FROM tab1
----
96

query I rowsort
SELECT + 17 + - - col2 * + 78 * 3 AS col0 FROM tab2
----
13589
5399
9377

query I rowsort
SELECT col2 + - - 16 FROM tab0
----
115
26
63

query I rowsort
SELECT + - col2 + + + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT 44 + 67 AS col0 FROM tab1 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL col2 + + CAST( - + 18 AS SIGNED ) FROM tab0 AS cor0
----
-8
29
81

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL col2 + + CAST ( - + 18 AS INTEGER ) FROM tab0 AS cor0
----
-8
29
81

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE col2 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE - + 57 + + + col0 <= - 15
----

query I rowsort
SELECT DISTINCT col2 - - - col1 * - 41 FROM tab0
----
140
3368
871

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

query I rowsort
SELECT 58 - + + 96 * + - col2 AS col2 FROM tab1
----
5722
6586
9274

query I rowsort
SELECT DISTINCT col2 * - col1 - col2 FROM tab2
----
-1196
-3120
-3944

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 14 ) - - 15 NOT BETWEEN 21 * 19 * - col0 + - col1 AND 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT DISTINCT 54 * col1 DIV col2 FROM tab2 AS cor0
----
103
119
62

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT 54 * col1 / col2 FROM tab2 AS cor0
----
103
119
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - - ( + ( - COUNT( * ) ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6373
SELECT - - ( + ( - COUNT ( * ) ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT - MAX( ALL + - col1 ) DIV - MAX( - 90 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT - MAX ( ALL + - col1 ) / - MAX ( - 90 ) FROM tab1
----
0

query I rowsort
SELECT 90 * - - 73 FROM tab0
----
6570
6570
6570

onlyif mysql # aggregate syntax: 
query II rowsort label-6376
SELECT SUM( ALL + ( - 56 ) ), 88 - + 38 + + - 40 AS col1 FROM tab0
----
-168
10

skipif mysql # not compatible
query II rowsort label-6376
SELECT SUM ( ALL + ( - 56 ) ), 88 - + 38 + + - 40 AS col1 FROM tab0
----
-168
10

query I rowsort
SELECT ALL col0 + - + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL 73 * + col0 FROM tab0
----
1095
6351
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL SUM( DISTINCT - col0 ) * - 69 AS col0 FROM tab0
----
13731

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL SUM ( DISTINCT - col0 ) * - 69 AS col0 FROM tab0
----
13731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 16 col1 FROM tab1
----
224
752
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6381
SELECT DISTINCT CAST( + 97 AS SIGNED ) DIV + col0 - col2 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT CAST ( + 97 AS INTEGER ) / + col0 - col2 FROM tab2
----
-21
-39
-57

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

query I rowsort
SELECT - - 79 - + col2 * - col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL + COUNT( + - col0 ) * - 11 + 73 * ( + MAX( + 98 ) ) FROM tab0 AS cor0
----
7121

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + COUNT ( + - col0 ) * - 11 + 73 * ( + MAX ( + 98 ) ) FROM tab0 AS cor0
----
7121

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT + 84 DIV + col0 + 70 FROM tab1 AS cor0
----
70
71

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + 84 / + col0 + 70 FROM tab1 AS cor0
----
70
71

onlyif mysql # DIV for integer division: 
query II rowsort label-6387
SELECT + - col2 + - 4 DIV + 16 AS col0, - col0 + + 57 * + col0 * + col2 FROM tab1 AS cor0
----
-59
285770
-68
352625
-96
279021

skipif mysql # not compatible
query II rowsort label-6387
SELECT + - col2 + - 4 / + 16 AS col0, - col0 + + 57 * + col0 * + col2 FROM tab1 AS cor0
----
-59
285770
-68
352625
-96
279021

query III rowsort
SELECT * FROM tab1 WHERE + 30 BETWEEN col2 + col0 / - 59 AND 56 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT COUNT( * ) + 70 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-6389
SELECT COUNT ( * ) + 70 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL MAX( DISTINCT - 54 ) FROM tab2 WHERE NOT col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL MAX ( DISTINCT - 54 ) FROM tab2 WHERE NOT col0 > NULL
----
NULL

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

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

query I rowsort
SELECT ALL - col0 * 91 AS col2 FROM tab0
----
-1365
-7917
-8827

query I rowsort
SELECT 3 + 59 * + col1 FROM tab2
----
3012
3956
4546

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT + 80 + - COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 80 + - COUNT ( * ) FROM tab0
----
77

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

query I rowsort
SELECT ALL - 44 + - 47 AS col2 FROM tab0 WHERE NULL < + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT - CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) FROM tab0 WHERE NULL <= - ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 WHERE NULL <= - ( col2 )
----
0

query I rowsort
SELECT ALL - 99 + + col2 FROM tab2
----
-41
-59
-76

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

query I rowsort
SELECT 80 * - col2 - - col2 * + col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN col1 * col2 AND - col2
----

query I rowsort
SELECT - col2 * + col0 + ( ( col1 ) ) FROM tab1
----
-4882
-5010
-6141

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 14 <= NULL
----

query I rowsort
SELECT 76 * + 7 FROM tab2
----
532
532
532

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL - col0 + - col1 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
1127
3016
3811

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - col0 + - col1 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 37 col2 FROM tab0
----
-27
10
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 BETWEEN ( + col2 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + 95 AS col0 FROM tab1
----
146
180
186

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 88 ) <= NULL
----

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

query I rowsort
SELECT - 78 * 26 FROM tab1 AS cor0
----
-2028
-2028
-2028

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT - CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT ( + 65 ) NOT BETWEEN col2 * + col2 AND - 24 + col2
----

skipif mysql # not compatible
query I rowsort label-6418
SELECT - CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT ( + 65 ) NOT BETWEEN col2 * + col2 AND - 24 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( col0 ) * ( 79 * - col2 + - col0 / col0 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT - ( - 14 ) * + COUNT( DISTINCT + col0 ) AS col2 FROM tab1 cor0 WHERE ( - col1 - 64 ) NOT IN ( ( 58 ) / + col0 )
----
42

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - ( - 14 ) * + COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 cor0 WHERE ( - col1 - 64 ) NOT IN ( ( 58 ) / + col0 )
----
42

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

query I rowsort
SELECT DISTINCT + + col1 + ( + col2 ) * - 93 AS col2 FROM tab1 AS cor0
----
-5482
-6277
-8914

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ( - 64 ) + + COUNT( * ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-6429
SELECT ( - 64 ) + + COUNT ( * ) FROM tab0
----
-61

query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab2 WHERE NOT - col1 IN ( col2 + 58 )
----
-51
-67
-77

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

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

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

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

query I rowsort
SELECT 63 FROM tab1 WHERE 30 NOT IN ( - col2 / col1 + - col1 )
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT ALL 70 + CAST( + col2 AS SIGNED ) FROM tab2
----
110
128
93

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL 70 + CAST ( + col2 AS INTEGER ) FROM tab2
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT COUNT( * ) + - - MAX( + 94 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6436
SELECT COUNT ( * ) + - - MAX ( + 94 ) AS col1 FROM tab1
----
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col0 FROM tab0
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT 18 * + ( 1 ) DIV 78 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT 18 * + ( 1 ) / 78 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6440
SELECT - MIN( DISTINCT - 52 ) DIV - SUM( - col0 + - CAST( - 13 AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6440
SELECT - MIN ( DISTINCT - 52 ) / - SUM ( - col0 + - CAST ( - 13 AS INTEGER ) ) FROM tab0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6443
SELECT + col0 / + + col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL + COUNT( + col1 ) FROM tab1 cor0 WHERE NOT - col2 BETWEEN ( col2 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + COUNT ( + col1 ) FROM tab1 cor0 WHERE NOT - col2 BETWEEN ( col2 ) AND NULL
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 20 <= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 90 * 31 - + 80 - - 67 * + 90 FROM tab1
----
8740
8740
8740

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

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

query I rowsort
SELECT ALL + ( 47 ) + 26 FROM tab0 WHERE + - 1 IN ( + 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT + 24 DIV col2 + - 95 AS col2 FROM tab2
----
-94
-95

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT + 24 / col2 + - 95 AS col2 FROM tab2
----
-94
-95

query I rowsort
SELECT - col1 * + col2 + - - 6 * + col2 AS col2 FROM tab2
----
-1035
-2840
-3538

query I rowsort
SELECT ALL 89 - col1 + ( col2 ) FROM tab0
----
187
55
78

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

query I rowsort
SELECT ALL 0 + col1 FROM tab0 AS cor0 WHERE - 77 NOT IN ( - 82 )
----
1
21
81

query I rowsort
SELECT ALL + - col1 * - + ( - col2 ) * 72 FROM tab2 AS cor0
----
-221760
-279792
-84456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT - CAST( - col2 AS SIGNED ) * + 67 + col1 AS col1 FROM tab1 AS cor0
----
3958
4603
6446

skipif mysql # not compatible
query I rowsort label-6458
SELECT - CAST ( - col2 AS INTEGER ) * + 67 + col1 AS col1 FROM tab1 AS cor0
----
3958
4603
6446

query I rowsort
SELECT 26 * + 54 + - col1 AS col0 FROM tab2 AS cor0
----
1327
1337
1353

query I rowsort
SELECT - 8 * + col2 AS col1 FROM tab1 cor0
----
-472
-544
-768

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 86 + - 44 ) BETWEEN 29 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - 31 + - 17 AS col1 FROM tab0 AS cor0
----
-135
-145
-63

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 69 AND - - col1
----

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

skipif mysql # not compatible
query II rowsort label-6471
SELECT ALL COUNT ( * ) * - + 22, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-66
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 22 <> - col0 / - col2
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 71 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 40 * + + col2 AS col1 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT + ( 88 ) * CAST( - ( + col1 ) AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-37400
-376376
-62832

skipif mysql # not compatible
query I rowsort label-6476
SELECT + ( 88 ) * CAST ( - ( + col1 ) AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-37400
-376376
-62832

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

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

query I rowsort
SELECT - col2 / col2 FROM tab2 WHERE NOT - - 10 NOT IN ( col2 )
----

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

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

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

query II rowsort
SELECT col0 AS col1, - 38 * col1 * + 12 * + col1 FROM tab2
----
46
-1186056
64
-2703624
75
-2046984

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - + 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT 89, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-6485
SELECT 89, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
89
3

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

query II rowsort
SELECT ALL col2, col2 * + + col0 FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT - col2 * - 52 * - - col2 AS col2 FROM tab0
----
114868
509652
5200

query I rowsort
SELECT 6 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 10 + col2 FROM tab2
----
13
30
48

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT + ( - MIN( ALL + col1 ) ) DIV - + ( + - 99 ) + 81 + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6492
SELECT + ( - MIN ( ALL + col1 ) ) / - + ( + - 99 ) + 81 + COUNT ( * ) FROM tab0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + - col1 * + 41 - + - col1 col2 FROM tab2
----
-2002
-2642
-3042

query II rowsort
SELECT 22 * - col2 + + + ( + + 93 ) AS col0, + col1 * + - col2 AS col1 FROM tab0
----
-127
-210
-2085
-99
-941
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT COUNT( * ) AS col2 FROM tab2 WHERE ( NOT ( - col1 ) BETWEEN ( + 39 + - col2 * 0 ) AND NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6495
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT ( - col1 ) BETWEEN ( + 39 + - col2 * 0 ) AND NULL )
----
3

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - 82 + + col1 * + col2 + + - ( + 80 ) col1 FROM tab1
----
-2918
-4346
-6755

query II rowsort
SELECT - col1 * + col1, + 33 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT DISTINCT 96 DIV + col1 FROM tab0 AS cor0
----
1
4
96

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT 96 / + col1 FROM tab0 AS cor0
----
1
4
96

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

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

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

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

query I rowsort
SELECT ALL - 14 * 43 FROM tab0 AS cor0
----
-602
-602
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT - 77 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6506
SELECT - 77 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL COUNT( * ) * - + 18 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL COUNT ( * ) * - + 18 FROM tab2 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT COUNT( * ) * 18 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6508
SELECT COUNT ( * ) * 18 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + 45 * 75 + - 62 FROM tab2 AS cor0
----
3313
3313
3313

query II rowsort
SELECT ALL 87 * - 5, 80 AS col0 FROM tab2 AS cor0
----
-435
80
-435
80
-435
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL - - 49 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - - 49 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-147

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) NOT BETWEEN 82 AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT SUM( + - col1 ) * - + 19 FROM tab0 AS cor0
----
1957

skipif mysql # not compatible
query I rowsort label-6513
SELECT SUM ( + - col1 ) * - + 19 FROM tab0 AS cor0
----
1957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6514
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - MIN( ALL col0 ) - - COUNT( * ) AS col2 FROM tab0 WHERE NOT - 44 - + + 51 / - CAST( NULL AS DECIMAL ) IN ( - ( - + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - MIN ( ALL col0 ) - - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 44 - + + 51 / - CAST ( NULL AS REAL ) IN ( - ( - + col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6515
SELECT DISTINCT - COUNT( * ), - 14 AS col0 FROM tab2
----
-3
-14

skipif mysql # not compatible
query II rowsort label-6515
SELECT DISTINCT - COUNT ( * ), - 14 AS col0 FROM tab2
----
-3
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT ALL col2 DIV 72 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL col2 / 72 FROM tab0
----
0
0
1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - ( 15 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 61
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6521
SELECT 35 AS col2, + col2 DIV 52 * + col2 * + + col2 col1 FROM tab2
----
35
0
35
0
35
3364

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6521
SELECT 35 AS col2, + col2 / 52 * + col2 * + + col2 col1 FROM tab2
----
35
0
35
0
35
3364

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + col1 + + 26 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT 25 / MIN( - 81 ) FROM tab0 cor0 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT 25 / MIN ( - 81 ) FROM tab0 cor0 WHERE ( NULL ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT + + 41 + SUM( - col1 ) FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-6528
SELECT + + 41 + SUM ( - col1 ) FROM tab2 AS cor0
----
-154

query I rowsort
SELECT + 76 + - + col0 * - - 25 AS col2 FROM tab2 AS cor0
----
-1074
-1524
-1799

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6532
SELECT ALL * FROM tab0 WHERE - - CAST( - col1 AS SIGNED ) + - col2 + - - 51 > NULL
----

skipif mysql # not compatible
query III rowsort label-6532
SELECT ALL * FROM tab0 WHERE - - CAST ( - col1 AS INTEGER ) + - col2 + - - 51 > NULL
----

query I rowsort
SELECT + col1 * - 37 AS col0 FROM tab1
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + MIN( + - 34 ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + MIN ( + - 34 ) FROM tab2
----
-34

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

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

query II rowsort
SELECT ALL col2, - col0 * + col0 FROM tab1
----
59
-7225
68
-8281
96
-2601

query III rowsort
SELECT * FROM tab1 WHERE + - col1 / 87 - + col2 + col0 BETWEEN NULL AND + 22 / + + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 79 / col1 - + - 84 = - + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 98 ) AS col1 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + 92 * + col2 AS col0 FROM tab0 cor0
----
4324
9108
920

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - col2 + col0 + col1 + + col0 + col2 FROM tab2
----
-1007
-2835
-3611

query I rowsort
SELECT ALL + 60 * - col0 + col1 FROM tab2
----
-2709
-3763
-4433

query I rowsort
SELECT DISTINCT col0 * - + 80 * - + col1 AS col1 FROM tab0
----
146160
7760
97200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + ( - 85 ) * col2, ( - ( - + col0 ) ) + + + col1 + - 67 * + - 63 + + col0 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT + col1 DIV col2 * + col1 AS col0 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-6551
SELECT + col1 / col2 * + col1 AS col0 FROM tab2
----
102
67
77

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

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

query I rowsort
SELECT DISTINCT 81 * + ( - - col0 ) FROM tab2
----
3726
5184
6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col1 col0, col1 FROM tab1
----
-196
14
-2209
47
-25
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6555
SELECT DISTINCT - COUNT( - + col1 ), + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6555
SELECT DISTINCT - COUNT ( - + col1 ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT 8 * - - col2 FROM tab2 AS cor0
----
184
320
464

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT ALL col0 DIV + + col0 + col2 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-10
-33
99

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL col0 / + + col0 + col2 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-10
-33
99

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

query I rowsort
SELECT DISTINCT + 95 * - col0 FROM tab2 cor0
----
-4370
-6080
-7125

query I rowsort
SELECT + 2 + - 64 FROM tab1
----
-62
-62
-62

query I rowsort
SELECT DISTINCT col2 * - + col0 * + col2 FROM tab1
----
-295885
-420784
-470016

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT DISTINCT + 73 DIV + 98 + + 52 * + - COUNT( * ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + 73 / + 98 + + 52 * + - COUNT ( * ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + + CAST( + 30 AS SIGNED ) * + + 73 * col2 / + 96 * - + 21 * + col0 * + col2 + col2 IS NOT NULL )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + + CAST ( + 30 AS INTEGER ) * + + 73 * col2 / + 96 * - + 21 * + col0 * + col2 + col2 IS NOT NULL )
----
10
47
99

query I rowsort
SELECT ALL - ( + + AVG ( ALL - col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL = - col2 * col1
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + 8 AS col2 FROM tab1 AS cor0
----
13
22
55

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 >= ( + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col2 AS col1, col2 * - col0 FROM tab0 AS cor0
----
-10
-870
-47
-705
-99
-9603

query II rowsort
SELECT DISTINCT col2 - col0 AS col1, + col2 FROM tab2
----
-17
58
-23
23
-24
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6571
SELECT - CAST( NULL AS SIGNED ) + SUM( - 82 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT - CAST ( NULL AS INTEGER ) + SUM ( - 82 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + - 80 AS col2 FROM tab1
----
-139
-148
-176

query I rowsort
SELECT ALL ( - 42 ) FROM tab0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL 75 - - SUM( ALL + col0 ) AS col2 FROM tab0
----
274

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL 75 - - SUM ( ALL + col0 ) AS col2 FROM tab0
----
274

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

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

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

query I rowsort
SELECT + + 5 * col1 AS col2 FROM tab0 AS cor0
----
105
405
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT DISTINCT - 40 + - col0 DIV 74 AS col0 FROM tab2 AS cor0
----
-40
-41

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - 40 + - col0 / 74 AS col0 FROM tab2 AS cor0
----
-40
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6579
SELECT MAX( + col1 ) DIV - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-6579
SELECT MAX ( + col1 ) / - COUNT ( * ) FROM tab0
----
-27

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

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

query II rowsort
SELECT + + 86, + 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 4bd9cef00d9da4e32d1c1450950b1d03

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 10 + + col2 - col0 * + + col0 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT - COUNT( * ) * - - 76 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - COUNT ( * ) * - - 76 FROM tab0 AS cor0
----
-228

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - SUM( - ( - 26 ) ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - SUM ( - ( - 26 ) ) FROM tab2 AS cor0
----
-78

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 91 <= + + 51
----

query II rowsort
SELECT col2 AS col2, 90 FROM tab2
----
23
90
40
90
58
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT ( + col1 ) DIV - + 23 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT ( + col1 ) / - + 23 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT - 36 + - + col2 AS col0 FROM tab0 AS cor0
----
-135
-46
-83

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

query I rowsort
SELECT ALL - col0 * + + 83 AS col0 FROM tab1
----
-4233
-7055
-7553

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

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

query I rowsort
SELECT ALL + 36 + + 89 FROM tab1 AS cor0
----
125
125
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6596
SELECT - - col0 + - - col0 AS col1, CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
102
51
170
85
182
91

skipif mysql # not compatible
query II rowsort label-6596
SELECT - - col0 + - - col0 AS col1, CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
102
51
170
85
182
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6597
SELECT - col2 + + - col1 AS col2, col2 DIV - 50 AS col0 FROM tab2 AS cor0
----
-117
0
-125
-1
-74
0

skipif mysql # not compatible
query II rowsort label-6597
SELECT - col2 + + - col1 AS col2, col2 / - 50 AS col0 FROM tab2 AS cor0
----
-117
0
-125
-1
-74
0

query I rowsort
SELECT - 22 + - ( + - col2 ) + - 3 AS col1 FROM tab2 AS cor0
----
-2
15
33

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL 99 + + 65 - col0 FROM tab1 AS cor0
----
113
73
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6601
SELECT ALL - col1 AS col1 FROM tab1 WHERE ( NOT + col0 * col1 / CAST( col0 AS DECIMAL ) <= NULL )
----

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - col1 AS col1 FROM tab1 WHERE ( NOT + col0 * col1 / CAST ( col0 AS REAL ) <= NULL )
----

query I rowsort
SELECT DISTINCT col2 + + + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL - col0 - - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab2, tab0 AS cor0
----
17

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT + COUNT( * ) - - - MAX( + col0 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-6607
SELECT + COUNT ( * ) - - - MAX ( + col0 ) FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab0
----
-48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT ALL MAX( DISTINCT 69 ) DIV + - 76 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL MAX ( DISTINCT 69 ) / + - 76 FROM tab1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6612
SELECT + CAST ( 52 AS INTEGER ) FROM tab0
----
52
52
52

query I rowsort
SELECT ALL + 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( - 14 > NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 >= + 52
----
64
77
40
75
67
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 * - col0 * - 38 - - col0 col2 FROM tab1 AS cor0
----
29121
48535
51961

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT 76 * + COUNT( * ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT 76 * + COUNT ( * ) FROM tab0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT col1 DIV 64 col1 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - 91 * + - 46 * - MIN( DISTINCT col1 ) FROM tab2
----
-213486

skipif mysql # not compatible
query I rowsort label-6620
SELECT - 91 * + - 46 * - MIN ( DISTINCT col1 ) FROM tab2
----
-213486

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT ALL - AVG ( + + 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-6622
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL COUNT( ALL - col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6623
SELECT ALL COUNT ( ALL - col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col0 + col1 * + 20 AS col2 FROM tab2 AS cor0
----
1066
1415
1604

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT 36 + COUNT( * ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6625
SELECT 36 + COUNT ( * ) AS col1 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + ( - COUNT( * ) ) + 74 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-6626
SELECT + ( - COUNT ( * ) ) + 74 FROM tab2
----
71

query I rowsort
SELECT - col0 * col1 + 40 FROM tab1
----
-385
-4237
-674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + + col2 col2 FROM tab0 AS cor0
----
272
7579
9508

query I rowsort
SELECT ALL 22 AS col0 FROM tab2 cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0, - COUNT( DISTINCT - 55 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND + + 79
----
0
0

skipif mysql # not compatible
query II rowsort label-6630
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0, - COUNT ( DISTINCT - 55 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND + + 79
----
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 * col0 col1 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT + ( - - col2 ) - - col1 + + col2 + - 37 * 1 * + + col2 AS col2 FROM tab2 cor0
----
-1323
-1963
-754

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

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

query I rowsort
SELECT + col1 + 35 AS col2 FROM tab0 cor0
----
116
36
56

query I rowsort
SELECT 0 * 48 AS col1 FROM tab1 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT COUNT( - - CAST( + ( - + 92 ) AS SIGNED ) ) FROM tab0 WHERE + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT COUNT ( - - CAST ( + ( - + 92 ) AS INTEGER ) ) FROM tab0 WHERE + - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab0 WHERE ( - 0 + + col1 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab0 WHERE ( - 0 + + col1 ) >= NULL
----

query II rowsort
SELECT ALL col2 - + col1 AS col0, - col0 AS col0 FROM tab2
----
-28
-46
-37
-64
-9
-75

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 * - 88 NOT BETWEEN + col1 AND - 48 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 6 AS col2, col2 * - ( - 51 ) FROM tab0 AS cor0
----
6
2397
6
5049
6
510

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

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

query I rowsort
SELECT + 0 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

query I rowsort
SELECT + - 73 * col0 FROM tab2 AS cor0
----
-3358
-4672
-5475

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL COUNT( * ) * - 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL COUNT ( * ) * - 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6653
SELECT DISTINCT - COUNT( * ) col1, SUM( ALL + col0 ) * 40 FROM tab0
----
-3
7960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6653
SELECT DISTINCT - COUNT ( * ) col1, SUM ( ALL + col0 ) * 40 FROM tab0
----
-3
7960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT SUM( ALL + col0 ) + - 78 AS col1 FROM tab0
----
121

skipif mysql # not compatible
query I rowsort label-6655
SELECT SUM ( ALL + col0 ) + - 78 AS col1 FROM tab0
----
121

query I rowsort
SELECT 88 + + 21 FROM tab0 AS cor0
----
109
109
109

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT ( + col1 ) DIV col2 + - 70 FROM tab0 AS cor0
----
-68
-69
-70

skipif mysql # not compatible
query I rowsort label-6659
SELECT ( + col1 ) / col2 + - 70 FROM tab0 AS cor0
----
-68
-69
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6660
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 53 * - col0, + 30 * - 63 - + 30 AS col2 FROM tab2 AS cor0
----
NULL
-1920

skipif mysql # not compatible
query II rowsort label-6660
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 53 * - col0, + 30 * - 63 - + 30 AS col2 FROM tab2 AS cor0
----
NULL
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT - 65 DIV + col2 + - - col0 FROM tab0 AS cor0
----
14
81
97

skipif mysql # not compatible
query I rowsort label-6661
SELECT - 65 / + col2 + - - col0 FROM tab0 AS cor0
----
14
81
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6662
SELECT ALL * FROM tab2 WHERE + 23 * - col2 = CAST( - col1 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-6662
SELECT ALL * FROM tab2 WHERE + 23 * - col2 = CAST ( - col1 AS INTEGER ) * - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT + COUNT( - 27 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6664
SELECT + COUNT ( - 27 ) FROM tab2
----
3

query I rowsort
SELECT ALL 92 * + 73 AS col0 FROM tab0
----
6716
6716
6716

query I rowsort
SELECT DISTINCT - 70 * 65 FROM tab0
----
-4550

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

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

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 AS col2 FROM tab0 AS cor0
----
3375
658503
912673

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

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

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

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - COUNT ( ALL - col0 ) FROM tab2 cor0
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6672
SELECT - 76 * - + 19 AS col2, + 11 * + ( - COUNT( * ) ) * CAST( NULL AS DECIMAL ) * - MAX( ALL + col1 ) / + + COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
1444
NULL

skipif mysql # not compatible
query II rowsort label-6672
SELECT - 76 * - + 19 AS col2, + 11 * + ( - COUNT ( * ) ) * CAST ( NULL AS REAL ) * - MAX ( ALL + col1 ) / + + COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
1444
NULL

query I rowsort
SELECT ALL - 95 + - col1 FROM tab1 AS cor0
----
-100
-109
-142

query I rowsort
SELECT col1 * + 69 * - ( + + col1 ) FROM tab1
----
-13524
-152421
-1725

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2 WHERE + + col1 + - - col2 IS NULL
----

query I rowsort
SELECT ( + 79 ) * 97 AS col2 FROM tab1
----
7663
7663
7663

query III rowsort
SELECT * FROM tab0 WHERE + - col2 >= ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6678
SELECT DISTINCT * FROM tab0 WHERE NOT 35 NOT IN ( - - col2, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6678
SELECT DISTINCT * FROM tab0 WHERE NOT 35 NOT IN ( - - col2, + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6679
SELECT - ( - 5 ) DIV + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6679
SELECT - ( - 5 ) / + + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT 96 * + 44 FROM tab1
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT MAX( ALL - 18 ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6681
SELECT MAX ( ALL - 18 ) AS col1 FROM tab1
----
-18

query I rowsort
SELECT col0 + - 76 + ( - 54 ) FROM tab0
----
-115
-33
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - SUM( + - 73 ) AS col1 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6684
SELECT - SUM ( + - 73 ) AS col1 FROM tab1 AS cor0
----
219

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

query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab1 WHERE - col1 - 55 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT - - col1 - + + col1 * + CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-1071
-2926
-3752

skipif mysql # not compatible
query I rowsort label-6687
SELECT - - col1 - + + col1 * + CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-1071
-2926
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - 26 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6688
SELECT - 26 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-78

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 56 * + + 71 / + - ( + 6 ) - 21 * + col1 + - + col0 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6691
SELECT col0 DIV + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6691
SELECT col0 / + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
0
0
8

onlyif mysql # DIV for integer division: 
query II rowsort label-6692
SELECT + col1 * col2 DIV - - col2 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-6692
SELECT + col1 * col2 / - - col2 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + + 22 * - 35 * ( col0 )
----

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

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL IN ( col1, col1, col2, 49 * + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT - CAST( 68 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-6698
SELECT - CAST ( 68 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT - - col0 * 73 FROM tab2 cor0
----
3358
4672
5475

query I rowsort
SELECT ALL - + ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

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

query II rowsort
SELECT 6 * + 79 AS col0, col1 AS col2 FROM tab0
----
474
1
474
21
474
81

query II rowsort
SELECT DISTINCT - - col0 + col2, col1 FROM tab0 AS cor0
----
196
1
62
81
97
21

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

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

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

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

query I rowsort
SELECT ALL 28 * - + col0 + - col2 + + - 71 * - col1 FROM tab1 cor0
----
-2084
-530
721

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

query I rowsort
SELECT DISTINCT + 24 + - col2 FROM tab1 AS cor0
----
-35
-44
-72

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6711
SELECT ALL - 4 DIV + COUNT( * ), COUNT( 78 ) * COUNT( * ) AS col0 FROM tab1
----
-1
9

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL - 4 / + COUNT ( * ), COUNT ( 78 ) * COUNT ( * ) AS col0 FROM tab1
----
-1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT MIN( - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6712
SELECT MIN ( - - col1 ) FROM tab1
----
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT ( + COUNT( * ) ) * 53 * - + 34 + - + 41, + 89 AS col0 FROM tab0
----
-5447
89

skipif mysql # not compatible
query II rowsort label-6714
SELECT ( + COUNT ( * ) ) * 53 * - + 34 + - + 41, + 89 AS col0 FROM tab0
----
-5447
89

query I rowsort
SELECT + col0 * col0 + - + col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - 68 - COUNT( * ) col2 FROM tab2 cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6716
SELECT - 68 - COUNT ( * ) col2 FROM tab2 cor0
----
-71

query I rowsort
SELECT - 83 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT 80 + - col0 + + - col0 * - - col1 * + + 30 FROM tab2
----
-147824
-150745
-70346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT - 99 AS col1 FROM tab2 WHERE NULL <= - ( CAST( NULL AS SIGNED ) ) * - 78
----

skipif mysql # not compatible
query I rowsort label-6719
SELECT - 99 AS col1 FROM tab2 WHERE NULL <= - ( CAST ( NULL AS INTEGER ) ) * - 78
----

query II rowsort
SELECT - + col1 AS col2, col0 * + - col1 * + col1 FROM tab2 AS cor0
----
-51
-119646
-67
-336675
-77
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL - - 91 - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - - 91 - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * + col2 = + col1
----

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

query I rowsort
SELECT - + ( + ( - 31 ) ) * col0 AS col1 FROM tab0 AS cor0
----
2697
3007
465

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

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

query I rowsort
SELECT - + 64 * col0 FROM tab1 cor0
----
-3264
-5440
-5824

query I rowsort
SELECT ALL + col2 + - + col1 FROM tab2 cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col0 col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT col1 + - 29 AS col1 FROM tab0
----
-28
-8
52

query I rowsort
SELECT - col0 * col1 * + + col0 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > col1 + - ( - 36 )
----
15
81
47

query I rowsort
SELECT ALL + + 88 * + - col2 + + col0 FROM tab1 AS cor0
----
-5107
-5893
-8397

query I rowsort
SELECT col2 * - + 39 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL + + COUNT( * ) + - 74 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL + + COUNT ( * ) + - 74 FROM tab2 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 25 + col2 col0 FROM tab0 AS cor0
----
124
35
72

query II rowsort
SELECT col2, 86 FROM tab0
----
10
86
47
86
99
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT + col0 - - + col0 DIV 73 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-6739
SELECT + col0 - - + col0 / 73 FROM tab1
----
51
86
92

query I rowsort
SELECT DISTINCT 90 + col2 * - col2 AS col1 FROM tab1
----
-3391
-4534
-9126

query I rowsort
SELECT + 69 + - + 4 AS col2 FROM tab2
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 - + ( col1 ) col1 FROM tab0
----
-4
-64
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6743
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - col1 + 30 col2 FROM tab0
----
NULL
-51
NULL
29
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6743
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - col1 + 30 col2 FROM tab0
----
NULL
-51
NULL
29
NULL
9

query III rowsort
SELECT ALL - 21 AS col1, col2 AS col2, + col2 FROM tab1
----
9 values hashing to 2dd7860696e51a26759e9ce98d3bbccb

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6746
SELECT ALL * FROM tab2 WHERE NOT - + 4 + 23 - col1 * - + 45 / - + CAST( NULL AS SIGNED ) * + + 31 IN ( - col2, + CAST( NULL AS SIGNED ), - ( + + 30 ) )
----

skipif mysql # not compatible
query III rowsort label-6746
SELECT ALL * FROM tab2 WHERE NOT - + 4 + 23 - col1 * - + 45 / - + CAST ( NULL AS INTEGER ) * + + 31 IN ( - col2, + CAST ( NULL AS INTEGER ), - ( + + 30 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6747
SELECT DISTINCT 35 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
35
NULL

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

query I rowsort
SELECT + col0 * - + col2 * + + 77 AS col0 FROM tab1 AS cor0
----
-376992
-386155
-476476

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6752
SELECT col1 * + col1 - - col1 - + + col0 + - 68 - - - CAST( + - col2 AS SIGNED ) + 33 + - - 42 DIV - col0 + - col1 AS col2 FROM tab2
----
2543
4437
5870

skipif mysql # not compatible
query I rowsort label-6752
SELECT col1 * + col1 - - col1 - + + col0 + - 68 - - - CAST ( + - col2 AS INTEGER ) + 33 + - - 42 / - col0 + - col1 AS col2 FROM tab2
----
2543
4437
5870

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT - MIN( DISTINCT + 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - MIN ( DISTINCT + 99 ) FROM tab1
----
-99

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

query I rowsort
SELECT + 15 * + 26 FROM tab2 AS cor0
----
390
390
390

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT + SUM( DISTINCT - col0 ) * + + 59 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-35223

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + SUM ( DISTINCT - col0 ) * + + 59 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-35223

onlyif mysql # DIV for integer division: 
query II rowsort label-6757
SELECT ALL - 12 DIV + col0, + col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-6757
SELECT ALL - 12 / + col0, + col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

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

query II rowsort
SELECT - + 78 * 44 AS col2, col1 AS col1 FROM tab2 cor0
----
-3432
51
-3432
67
-3432
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT DISTINCT 75 * - SUM( DISTINCT - 67 ) * + COUNT( * ) FROM tab2
----
15075

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT 75 * - SUM ( DISTINCT - 67 ) * + COUNT ( * ) FROM tab2
----
15075

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

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

query I rowsort
SELECT ALL + 20 FROM tab2 WHERE NOT ( col1 * - col1 / + + col2 + + col0 ) IN ( col2, + col2 )
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - 81 * - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 81 * - COUNT ( * ) FROM tab0
----
243

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT SUM( 25 ) AS col2 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6769
SELECT SUM ( 25 ) AS col2 FROM tab0 cor0
----
75

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

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

query I rowsort
SELECT col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

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

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

query I rowsort
SELECT - col0 + + col2 + 80 + + ( - col0 ) - - col2 FROM tab1 AS cor0
----
170
28
34

query I rowsort
SELECT ALL 22 * - + 24 + col1 * - 98 FROM tab0
----
-2586
-626
-8466

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - 15 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - 15 AND NULL
----
0

query II rowsort
SELECT - col0 - + ( + col1 ), col0 AS col2 FROM tab0
----
-108
87
-96
15
-98
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6778
SELECT DISTINCT + MAX( - col0 ) * + CAST( NULL AS SIGNED ) + - 7 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT + MAX ( - col0 ) * + CAST ( NULL AS INTEGER ) + - 7 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 99 * - + col0 + col2 FROM tab0 AS cor0
----
-1438
-8603
-9504

query I rowsort
SELECT - 49 FROM tab2 AS cor0 WHERE ( NULL > + - ( + col2 ) + + 81 )
----

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

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

query I rowsort
SELECT ALL - + ( ( - 33 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

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

query II rowsort
SELECT ALL - + col2, - col0 * - ( - col2 ) * + - ( 22 ) AS col0 FROM tab0 cor0
----
-10
19140
-47
15510
-99
211266

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

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

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

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

query I rowsort
SELECT ALL - col1 / - 4 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6790
SELECT 13, 16 DIV + - MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
13
0

skipif mysql # not compatible
query II rowsort label-6790
SELECT 13, 16 / + - MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
13
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 * + 0 col1, - col2 AS col2 FROM tab0
----
0
-10
0
-47
0
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT DISTINCT 92 DIV + ( - + col1 ) AS col1 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT 92 / + ( - + col1 ) AS col1 FROM tab1
----
-1
-18
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT - col1 DIV + - ( + col2 ) AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6794
SELECT - col1 / + - ( + col2 ) AS col1 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - MAX( + + ( + col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - MAX ( + + ( + col0 ) ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT col1 * + ( + col0 ) AS col2 FROM tab2 WHERE NOT ( NULL > col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 37 + + - 88 IS NULL
----

query I rowsort
SELECT + col0 + - 36 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - - 46, col2 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6802
SELECT DISTINCT - 94 AS col1, 90 - - + col0 DIV 29 + - 45 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-94
46
-94
47
-94
48

skipif mysql # not compatible
query II rowsort label-6802
SELECT DISTINCT - 94 AS col1, 90 - - + col0 / 29 + - 45 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-94
46
-94
47
-94
48

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

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

query I rowsort
SELECT + + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6805
SELECT CAST( NULL AS SIGNED ) - 72 * + COUNT( * ) AS col2, - 49 FROM tab2 AS cor0
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-6805
SELECT CAST ( NULL AS INTEGER ) - 72 * + COUNT ( * ) AS col2, - 49 FROM tab2 AS cor0
----
NULL
-49

query I rowsort
SELECT 55 - - col2 * + col0 AS col2 FROM tab2 AS cor0
----
1113
2615
4405

query I rowsort
SELECT DISTINCT col2 * + + col0 + + - 95 FROM tab1 AS cor0
----
4801
4920
6093

query I rowsort
SELECT ALL + + 3 * + + 67 FROM tab0 WHERE - + 29 + 12 * + 13 IS NULL
----

query I rowsort
SELECT + ( + 78 ) * + col1 + - col1 * - + 62 FROM tab2
----
10780
7140
9380

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT col1 + + + col1 + 5 DIV + + 73 AS col2 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-6810
SELECT col1 + + + col1 + 5 / + + 73 AS col2 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT 64 * col1 * - col1 FROM tab1
----
-12544
-141376
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL COUNT( - 59 ) * + + COUNT( * ) + + + MAX( ALL - col1 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL COUNT ( - 59 ) * + + COUNT ( * ) + + + MAX ( ALL - col1 ) FROM tab0
----
8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT DISTINCT COUNT( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
----
3
-2409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6814
SELECT DISTINCT COUNT ( DISTINCT - col0 ) col2, 73 * - 33 FROM tab0 AS cor0
----
3
-2409

query I rowsort
SELECT + - 38 * - col1 * 36 AS col2 FROM tab0 AS cor0
----
110808
1368
28728

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

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

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

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

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

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NOT - col1 BETWEEN col0 AND - - 38 + + + 61
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6821
SELECT - + COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

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

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

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

query I rowsort
SELECT 99 * col0 FROM tab1 AS cor0
----
5049
8415
9009

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 13 + + col1 IS NOT NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL 67 * + COUNT( * ) * + - MIN( 48 ) FROM tab2
----
-9648

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL 67 * + COUNT ( * ) * + - MIN ( 48 ) FROM tab2
----
-9648

query I rowsort
SELECT ALL + 33 * col2 FROM tab0
----
1551
3267
330

query I rowsort
SELECT 8 FROM tab1 WHERE NOT - col0 < + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT DISTINCT 55 DIV + COUNT( 6 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT 55 / + COUNT ( 6 ) AS col1 FROM tab0
----
18

query I rowsort
SELECT col1 * + + 80 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT + + 86 AS col0, + COUNT( * ) FROM tab0 cor0
----
86
3

skipif mysql # not compatible
query II rowsort label-6837
SELECT + + 86 AS col0, + COUNT ( * ) FROM tab0 cor0
----
86
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT col0 DIV - 86 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT col0 / - 86 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL 80 * - 41 * + COUNT( * ) FROM tab2 cor0 WHERE 32 - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL 80 * - 41 * + COUNT ( * ) FROM tab2 cor0 WHERE 32 - col1 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6841
SELECT * FROM tab2 AS cor0 WHERE CAST( + ( - col2 ) AS DECIMAL ) * CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6841
SELECT * FROM tab2 AS cor0 WHERE CAST ( + ( - col2 ) AS REAL ) * CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 4 * - + col1 + + + ( - col0 ) AS col2 FROM tab1
----
-105
-107
-279

query I rowsort
SELECT ALL col2 + + + 71 FROM tab0
----
118
170
81

query III rowsort
SELECT * FROM tab1 WHERE - - col1 > ( NULL )
----

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

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

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

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

query II rowsort
SELECT ALL - col1 + - + 66 + + - ( col1 ) * col2, col2 FROM tab2 AS cor0
----
-1290
23
-3223
40
-4019
58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT ALL - col0 - - 95 * + 15 FROM tab0
----
1328
1338
1410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT DISTINCT AVG ( 54 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT AVG ( 54 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 - - 81 * 71 FROM tab0
----
5761
5798
5850

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

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

query I rowsort
SELECT ALL col0 * + 27 * 13 FROM tab1
----
17901
29835
31941

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 62 * col2 + - 55 NOT BETWEEN ( NULL ) AND col2
----

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

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

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

query I rowsort
SELECT DISTINCT ( - 82 ) + + 71 AS col2 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE - 80 + - 22 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6864
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 WHERE - 80 + - 22 IS NULL
----
0

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

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

query I rowsort
SELECT + 50 + 89 FROM tab0
----
139
139
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + + col0 col1 FROM tab2
----
108
79
97

query I rowsort
SELECT - col2 + 3 AS col0 FROM tab1
----
-56
-65
-93

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

query I rowsort
SELECT - 41 FROM tab1 WHERE ( - col1 ) IN ( + col0 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT ALL + 74 + - col1 DIV 19 FROM tab2
----
70
71
72

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + 74 + - col1 / 19 FROM tab2
----
70
71
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 61 * col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 69 FROM tab0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6876
SELECT DISTINCT * FROM tab1 WHERE NOT ( 76 * col0 ) NOT BETWEEN + CAST( NULL AS SIGNED ) / - 28 AND ( 30 )
----

skipif mysql # not compatible
query III rowsort label-6876
SELECT DISTINCT * FROM tab1 WHERE NOT ( 76 * col0 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) / - 28 AND ( 30 )
----

query I rowsort
SELECT col1 + - 83 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + COUNT( * ) * - MIN( ALL - col2 ) + 0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-6879
SELECT + COUNT ( * ) * - MIN ( ALL - col2 ) + 0 FROM tab0
----
297

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 75 col0 FROM tab2
----
-17
-35
-52

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL <= ( 37 * 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE ( + ( col0 ) ) >= + col0 + - 33
----
3

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE ( + ( col0 ) ) >= + col0 + - 33
----
3

query I rowsort
SELECT - col0 - - 26 FROM tab1 WHERE ( col0 ) < col0
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = 19
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 30 + 57 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL + col0 * - col2 - - CAST( + 51 AS SIGNED ) FROM tab1 cor0
----
-4845
-4964
-6137

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + col0 * - col2 - - CAST ( + 51 AS INTEGER ) FROM tab1 cor0
----
-4845
-4964
-6137

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT 31 * - 51 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1584

skipif mysql # not compatible
query I rowsort label-6892
SELECT 31 * - 51 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1584

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

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

query I rowsort
SELECT ALL - 64 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 99
----

query I rowsort
SELECT - - 47 - col1 FROM tab0 AS cor0
----
-34
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + + 44 * - COUNT( DISTINCT col0 + col2 ) - + 67 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-6896
SELECT + + 44 * - COUNT ( DISTINCT col0 + col2 ) - + 67 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-333

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

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

query I rowsort
SELECT ALL + ( 12 ) + ( + 69 ) AS col2 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT 43 DIV + col0 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6899
SELECT 43 / + col0 + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 83 + + col2 FROM tab1
----
-15
-24
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT DISTINCT - col2 + + col0 + - col1 DIV col1 FROM tab0
----
-3
-33
76

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - col2 + + col0 + - col1 / col1 FROM tab0
----
-3
-33
76

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

skipif mysql # not compatible
query I rowsort label-6902
SELECT SUM ( ALL - - col2 ) FROM tab2
----
121

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT DISTINCT - 70 DIV col1 FROM tab0
----
-3
-70
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT - 70 / col1 FROM tab0
----
-3
-70
0

query I rowsort
SELECT + 75 * + + 32 FROM tab0 AS cor0
----
2400
2400
2400

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT 6 * 79 DIV - col0 AS col0 FROM tab0 AS cor0
----
-31
-4
-5

skipif mysql # not compatible
query I rowsort label-6906
SELECT 6 * 79 / - col0 AS col0 FROM tab0 AS cor0
----
-31
-4
-5

query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab0 WHERE NOT + 49 BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab2 WHERE NOT + ( col2 ) IS NULL
----
-117
-125
-74

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + 42 + + + 16 + col0 + - col0 FROM tab1 AS cor0
----
2158
3586
3838

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL + COUNT( * ) * + + 9 FROM tab2 cor0 WHERE NULL IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + COUNT ( * ) * + + 9 FROM tab2 cor0 WHERE NULL IS NULL
----
27

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

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

query I rowsort
SELECT ALL - 99 + - - col1 AS col2 FROM tab1 AS cor0
----
-52
-85
-94

query I rowsort
SELECT DISTINCT 34 * 24 + + - 38 AS col1 FROM tab0 AS cor0
----
778

query I rowsort
SELECT ALL col1 * - 62 FROM tab2 AS cor0
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col0, 53 AS col1 FROM tab0
----
6
53

skipif mysql # not compatible
query II rowsort label-6920
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col0, 53 AS col1 FROM tab0
----
6
53

query I rowsort
SELECT - 88 + + 68 AS col0 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT ALL col1 * - 80 + - - col1 FROM tab2
----
-4029
-5293
-6083

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

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL + - CAST ( + 82 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 29 * + - col2 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6925
SELECT DISTINCT + - 23 - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + - 23 - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT + col2 * + col2 - col2 * + 5 FROM tab0 WHERE ( - col2 * - col0 ) IS NOT NULL
----
1974
50
9306

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - 33, col2 col2 FROM tab0
----
-2871
10
-3201
99
-495
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT DISTINCT + COUNT( ALL - 29 ) AS col0, - 71 FROM tab2
----
3
-71

skipif mysql # not compatible
query II rowsort label-6930
SELECT DISTINCT + COUNT ( ALL - 29 ) AS col0, - 71 FROM tab2
----
3
-71

query I rowsort
SELECT + ( + 83 ) * - col0 * + 90 AS col1 FROM tab2
----
-343620
-478080
-560250

query III rowsort
SELECT * FROM tab2 WHERE ( + 48 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 40 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + 73 FROM tab2 cor0 WHERE ( NULL IS NULL )
----
3723
4891
5621

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT 85 - - 38 DIV + col1 + - ( + col2 ) - 94 AS col2 FROM tab0 AS cor0
----
-18
-56
-70

skipif mysql # not compatible
query I rowsort label-6935
SELECT 85 - - 38 / + col1 + - ( + col2 ) - 94 AS col2 FROM tab0 AS cor0
----
-18
-56
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - + - col2 >= col1 + - ( + 8 - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col0 + + 92 FROM tab1 WHERE NULL NOT BETWEEN col1 AND - - 77 * - col0 + - col2
----

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

query I rowsort
SELECT ALL - ( - col0 ) * + 86 + + + 13 + - + 28 FROM tab2
----
3941
5489
6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6940
SELECT ALL + CAST( - col0 AS SIGNED ) - col1 AS col2 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + CAST ( - col0 AS INTEGER ) - col1 AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL - + 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

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

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

query I rowsort
SELECT ALL - col1 * - - ( ( - col2 ) ) - + col0 * col1 FROM tab1 AS cor0
----
-1081
-130
630

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * + - 46 * + 38 col0 FROM tab0 AS cor0
----
-13984
-13984
-13984

query I rowsort
SELECT DISTINCT col2 * + + 43 - 15 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + ( 26 ) * - col1 FROM tab0 cor0
----
2106
26
546

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> + col1 + - + 33 * - 48
----

query I rowsort
SELECT ALL + ( - 17 ) AS col1 FROM tab0 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( 94 )
----

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

query I rowsort
SELECT 76 + 66 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c44598517721ad29c019d831d2e0959

query III rowsort
SELECT * FROM tab1 WHERE NOT 24 - 68 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6954
SELECT + col1 DIV + - col1 col1, + ( col0 ) FROM tab0
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6954
SELECT + col1 / + - col1 col1, + ( col0 ) FROM tab0
----
-1
15
-1
87
-1
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6955
SELECT + 54, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
54
NULL
54
NULL
54
NULL

skipif mysql # not compatible
query II rowsort label-6955
SELECT + 54, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
54
NULL
54
NULL
54
NULL

query I rowsort
SELECT ( 25 ) AS col1 FROM tab0
----
25
25
25

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6958
SELECT ALL - 22, MIN( ALL 82 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-22
82

skipif mysql # not compatible
query II rowsort label-6958
SELECT ALL - 22, MIN ( ALL 82 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-22
82

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

query I rowsort
SELECT ALL + - ( + - 92 ) FROM tab1 cor0
----
92
92
92

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

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

query I rowsort
SELECT ALL - col2 + + col1 + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-49
-68
26

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

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT COUNT ( - - col2 ) FROM tab1
----
3

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

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

query I rowsort
SELECT DISTINCT - 10 + - col0 FROM tab0
----
-107
-25
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT DISTINCT 33 + - ( + + col2 ) DIV 53 + + + col0 FROM tab2
----
107
79
97

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT 33 + - ( + + col2 ) / 53 + + + col0 FROM tab2
----
107
79
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT DISTINCT - col2 - 36 DIV + col2 * - 76 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - col2 - 36 / + col2 * - 76 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col0 + + + 92 FROM tab2 WHERE NOT - 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 36 * col2 FROM tab1 AS cor0 WHERE NOT 24 IS NULL
----
2124
2448
3456

query I rowsort
SELECT DISTINCT - 72 * - + col1 * col2 FROM tab1 AS cor0
----
21240
230112
96768

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

skipif mysql # not compatible
query III rowsort label-6972
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 18 * - 22 * - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 67 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-113
-131
-142

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

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

query I rowsort
SELECT DISTINCT + + ( col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
118
136
192

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

query I rowsort
SELECT DISTINCT + col1 + - - 49 FROM tab1
----
54
63
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT ALL ( - + CAST( 44 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL ( - + CAST ( 44 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

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

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

query I rowsort
SELECT + + 77 * 51 * - col2 FROM tab1 AS cor0
----
-231693
-267036
-376992

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

query I rowsort
SELECT - + 7 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-418
-523
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT 52 DIV - ( - + 50 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT 52 / - ( - + 50 ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT + col2 DIV - + col2 col1 FROM tab0 cor0
----
-1
-1
-1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6986
SELECT + col2 DIV - col0 + ( + col2 ), - col0 + - col0 AS col0 FROM tab1 AS cor0
----
59
-170
68
-182
95
-102

skipif mysql # not compatible
query II rowsort label-6986
SELECT + col2 / - col0 + ( + col2 ), - col0 + - col0 AS col0 FROM tab1 AS cor0
----
59
-170
68
-182
95
-102

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6988
SELECT - COUNT( * ) * + 12 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-36
-3

skipif mysql # not compatible
query II rowsort label-6988
SELECT - COUNT ( * ) * + 12 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-36
-3

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE NOT + 64 * col1 * - + col0 + + col1 * - - col0 IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL + col1, + ( - + col0 ) FROM tab1
----
14
-51
47
-91
5
-85

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6992
SELECT col0 col1, CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6992
SELECT col0 col1, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
46
-46
64
-64
75
-75

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6995
SELECT ALL col0 DIV + - ( - + 1 ) AS col0, 42 FROM tab2 AS cor0
----
46
42
64
42
75
42

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL col0 / + - ( - + 1 ) AS col0, 42 FROM tab2 AS cor0
----
46
42
64
42
75
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 98 NOT BETWEEN + 59 + - col0 AND ( + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6997
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 75 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 75 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - - 96 FROM tab1
----
4896
8160
8736

query I rowsort
SELECT ALL + ( 41 ) AS col2 FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + COUNT( * ) + + 76 col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7000
SELECT + COUNT ( * ) + + 76 col2 FROM tab1 AS cor0
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT - ( + col2 ) DIV - + col0 + 20 col0 FROM tab0
----
20
21
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT - ( + col2 ) / - + col0 + 20 col0 FROM tab0
----
20
21
23

query I rowsort
SELECT ALL col2 - + + 16 AS col1 FROM tab2
----
24
42
7

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

query I rowsort
SELECT DISTINCT + col0 * + - col2 * - 40 AS col2 FROM tab0
----
28200
34800
384120

query I rowsort
SELECT ( ( - - col1 ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT - 14 - - + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-719
-884
-9617

query I rowsort
SELECT col0 - - - 87 FROM tab0 cor0
----
-72
0
10

query I rowsort
SELECT - 87 + + - col0 AS col2 FROM tab0
----
-102
-174
-184

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

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

skipif mysql # not compatible
query I rowsort label-7011
SELECT - MIN ( + + 62 ) FROM tab0 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT MAX( + col2 ) * + + 3 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT MAX ( + col2 ) * + + 3 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT - 71 DIV + 40 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - 71 / + 40 FROM tab0 AS cor0
----
-1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 3 col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
153
255
273

query II rowsort
SELECT ALL - col1 * 83 AS col2, - col0 * + - 37 FROM tab2
----
-4233
1702
-5561
2775
-6391
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT + SUM( ( + - 21 ) ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-7020
SELECT + SUM ( ( + - 21 ) ) FROM tab0
----
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT 46 DIV - - 67 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7022
SELECT 46 / - - 67 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 96 col0 FROM tab1
----
-5664
-6528
-9216

query I rowsort
SELECT + + col0 - + col0 * col1 FROM tab1 WHERE NOT - + col1 / - col1 BETWEEN col1 AND - - col0 - - 97
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7025
SELECT ALL + 84 DIV + 92, - CAST( NULL AS SIGNED ) - 23 AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7025
SELECT ALL + 84 / + 92, - CAST ( NULL AS INTEGER ) - 23 AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7026
SELECT ALL + col2 DIV + col1 AS col2, + 46 AS col2 FROM tab0
----
0
46
0
46
99
46

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL + col2 / + col1 AS col2, + 46 AS col2 FROM tab0
----
0
46
0
46
99
46

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

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

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

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL - - 32 FROM tab0 cor0
----
32
32
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 15 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 30 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL - - CAST( col1 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - - CAST ( col1 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL + col0 + - + 18 FROM tab1 AS cor0
----
33
67
73

query I rowsort
SELECT DISTINCT - 3 + - 0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT SUM( - - col1 ) + - MAX( ALL 48 ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-7038
SELECT SUM ( - - col1 ) + - MAX ( ALL 48 ) FROM tab0
----
55

query I rowsort
SELECT col0 + + 40 + + + col0 AS col2 FROM tab2
----
132
168
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL COUNT( DISTINCT - col0 ) * - - MIN( ALL - col2 ) - - - 83 * + COUNT( ALL ( col2 ) ) FROM tab1
----
-537

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL COUNT ( DISTINCT - col0 ) * - - MIN ( ALL - col2 ) - - - 83 * + COUNT ( ALL ( col2 ) ) FROM tab1
----
-537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 40 - - col2 col0 FROM tab1
----
104
150
155

query I rowsort
SELECT ALL + col0 * + 44 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7043
SELECT * FROM tab1 WHERE NULL IN ( + 77 * + + CAST( NULL AS SIGNED ), + 93 / - col2 + - col0 + col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-7043
SELECT * FROM tab1 WHERE NULL IN ( + 77 * + + CAST ( NULL AS INTEGER ), + 93 / - col2 + - col0 + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT DISTINCT SUM( ALL - 0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT SUM ( ALL - 0 ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - AVG ( - 66 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( - col0 * - + ( + + 31 ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col1 / - + 41 + + col2 * - col0 * + 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 94 + + 26 col2 FROM tab1 AS cor0
----
4820
8016
8580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + - - col0 col2 FROM tab1 AS cor0 WHERE NOT + col0 + - - col1 > - 63
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN NULL AND + col0 * + 74 * 29
----

query II rowsort
SELECT + col2 * + - col2 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-3481
59
-4624
68
-9216
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT MIN( DISTINCT - 9 ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7053
SELECT DISTINCT MIN ( DISTINCT - 9 ) col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT - 50 + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 29 + - col2 = + col1
----
-53

skipif mysql # not compatible
query I rowsort label-7054
SELECT - 50 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 29 + - col2 = + col1
----
-53

query I rowsort
SELECT col2 * col1 * + + 62 AS col0 FROM tab0
----
13020
236034
6138

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 71 >= NULL
----

query II rowsort
SELECT + col0, - 40 * - 68 AS col1 FROM tab0
----
15
2720
87
2720
97
2720

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

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

query II rowsort
SELECT ALL + col0 * + + ( - + 75 ), + col1 AS col2 FROM tab1
----
-3825
14
-6375
5
-6825
47

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

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

query I rowsort
SELECT ALL + col1 + + - 14 AS col2 FROM tab2 AS cor0
----
37
53
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL MAX( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

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

query I rowsort
SELECT DISTINCT 72 + col1 + - - ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
4396
502
800

query I rowsort
SELECT ALL + col1 + 82 + - col1 * + + col2 FROM tab0 AS cor0
----
-107
-16
-3644

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 3 + col2 BETWEEN - col1 AND 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 < - 28 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 AND - + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7073
SELECT 5 + 67 + + col2 + + + col2 * + col1 + - CAST( + 30 AS SIGNED ), col1 AS col2 FROM tab0
----
240
1
262
21
3896
81

skipif mysql # not compatible
query II rowsort label-7073
SELECT 5 + 67 + + col2 + + + col2 * + col1 + - CAST ( + 30 AS INTEGER ), col1 AS col2 FROM tab0
----
240
1
262
21
3896
81

query I rowsort
SELECT 99 * 36 + col2 * + 22 * + - 15 AS col2 FROM tab2 AS cor0
----
-15576
-4026
-9636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT ALL MIN( + ( - 67 ) ) DIV - 98 + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL MIN ( + ( - 67 ) ) / - 98 + + COUNT ( * ) FROM tab2 AS cor0
----
3

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

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

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

query I rowsort
SELECT ALL - ( + col0 ) + + col1 + - 22 AS col0 FROM tab1 cor0
----
-102
-59
-66

query I rowsort
SELECT DISTINCT + ( + - col1 ) * col1 + + col0 AS col0 FROM tab2 cor0
----
-2555
-4414
-5865

query I rowsort
SELECT ALL 76 + + 68 FROM tab1
----
144
144
144

query I rowsort
SELECT DISTINCT - 85 + + 1 AS col1 FROM tab0 WHERE - ( 95 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE col2 <= - col0 * - col0
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT + 23 - - 84 - - COUNT( * ) AS col1 FROM tab0
----
110

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 23 - - 84 - - COUNT ( * ) AS col1 FROM tab0
----
110

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

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

query I rowsort
SELECT DISTINCT - col0 - + + 41 AS col0 FROM tab1
----
-126
-132
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - 89 - COUNT( * ) * + - 36 AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 89 - COUNT ( * ) * + - 36 AS col2 FROM tab0
----
19

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT ( NULL ) < NULL OR col0 < NULL
----

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

query I rowsort
SELECT + 2 * + 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 * - 91 + col1 IS NOT NULL
----

query II rowsort
SELECT ALL 95 * + - 91 * + col0 AS col0, + col1 AS col1 FROM tab2
----
-397670
51
-553280
77
-648375
67

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2, col0 * - col1 )
----

query II rowsort
SELECT col1 * - + col1, - 64 AS col1 FROM tab0
----
-1
-64
-441
-64
-6561
-64

query II rowsort
SELECT ALL ( col2 ), 57 AS col1 FROM tab0
----
10
57
47
57
99
57

query I rowsort
SELECT DISTINCT ( + 90 ) FROM tab2
----
90

query I rowsort
SELECT ALL 68 * + 60 * + + ( + + col2 ) AS col2 FROM tab0
----
191760
403920
40800

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7102
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL > - col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL - 39 / + CAST( - - col2 AS SIGNED ) * col0 * 4 * col2 + + col0 * + col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - 39 / + CAST ( - - col2 AS INTEGER ) * col0 * 4 * col2 + + col0 * + col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT 36, col2 AS col1 FROM tab1
----
36
59
36
68
36
96

query I rowsort
SELECT DISTINCT + 0 + + + col2 AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + COUNT( * ) * 34 AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-7107
SELECT + COUNT ( * ) * 34 AS col0 FROM tab0
----
102

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( - - 13 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 35 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 97 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - col2 * + - 74 AS col2 FROM tab1 AS cor0
----
4366
5032
7104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7114
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + 28 AS col1 FROM tab1 AS cor0
----
-31
-40
-68

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

query I rowsort
SELECT DISTINCT 86 - - 49 FROM tab1
----
135

query I rowsort
SELECT + col2 - - col2 FROM tab1 WHERE 27 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + ( - - 18 ) ) + + + 36 AS col2 FROM tab0
----
18

query I rowsort
SELECT + col0 * - col1 + 48 AS col1 FROM tab1
----
-377
-4229
-666

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

query I rowsort
SELECT DISTINCT + 56 * - col1 * + col1 FROM tab1
----
-10976
-123704
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + - MIN( ALL - + col0 ) * 27 FROM tab1 cor0
----
2457

skipif mysql # not compatible
query I rowsort label-7123
SELECT + - MIN ( ALL - + col0 ) * 27 FROM tab1 cor0
----
2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col1 * - 82 col0 FROM tab1 AS cor0
----
-16072
-181138
-2050

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

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

query I rowsort
SELECT DISTINCT 67 * - 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-335

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

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

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

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

query II rowsort
SELECT + 58 AS col1, 16 AS col1 FROM tab0 AS cor0
----
58
16
58
16
58
16

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

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col1 + + 60 * - 77 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT CAST( + 19 AS SIGNED ) + + MAX( ALL 64 ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7133
SELECT CAST ( + 19 AS INTEGER ) + + MAX ( ALL 64 ) AS col1 FROM tab1 AS cor0
----
83

query I rowsort
SELECT + 67 + + col2 AS col0 FROM tab0 AS cor0
----
114
166
77

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

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

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

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NOT + 85 <= col1 / col2 - - 93 * + col0
----

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

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

query I rowsort
SELECT DISTINCT + + 27 * col1 + + col2 FROM tab1 WHERE NOT + col2 * 2 * 66 > - 37
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7140
SELECT CAST( NULL AS DECIMAL ), + 71 - + 45 * + col2 + + 33 * + 57 FROM tab2 WHERE + + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7140
SELECT CAST ( NULL AS REAL ), + 71 - + 45 * + col2 + + 33 * + 57 FROM tab2 WHERE + + col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT - CAST ( 53 AS INTEGER ) AS col0 FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT 18 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT 18 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT + 23 * + COUNT( * ) + + 78 * - 33 FROM tab0 AS cor0
----
-2505

skipif mysql # not compatible
query I rowsort label-7143
SELECT + 23 * + COUNT ( * ) + + 78 * - 33 FROM tab0 AS cor0
----
-2505

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

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

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

query I rowsort
SELECT ALL + - col0 + + + 32 AS col2 FROM tab2 cor0
----
-14
-32
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7148
SELECT + + 44 + + CAST( - - col1 AS SIGNED ), + col2 DIV - + col1 col0 FROM tab2 cor0
----
111
0
121
0
95
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7148
SELECT + + 44 + + CAST ( - - col1 AS INTEGER ), + col2 / - + col1 col0 FROM tab2 cor0
----
111
0
121
0
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - 65 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7149
SELECT - 65 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + + MIN( col2 ) FROM tab2 AS cor0 WHERE - 29 * - col1 / + - col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT + + MIN ( col2 ) FROM tab2 AS cor0 WHERE - 29 * - col1 / + - col2 >= NULL
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 27 IS NULL
----

query I rowsort
SELECT ALL 17 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE ( - col2 + + col0 ) BETWEEN NULL AND ( - + col1 )
----

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

query I rowsort
SELECT DISTINCT 68 * + 30 FROM tab2
----
2040

query III rowsort
SELECT ALL * FROM tab0 WHERE + 29 = + col1 / + col2 + - 87 + + col1 + + 32
----

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

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

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

query I rowsort
SELECT - 82 * + 32 FROM tab1
----
-2624
-2624
-2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7162
SELECT ( - + COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7162
SELECT ( - + COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab0
----
-1

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

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

query I rowsort
SELECT + 52 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query II rowsort
SELECT - - ( 25 ) * + col1 - - col1, + col0 * + + 97 * col0 AS col2 FROM tab2 AS cor0
----
1326
205252
1742
545625
2002
397312

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

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

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

query I rowsort
SELECT DISTINCT + col2 + ( - 99 ) + + col1 - - - col2 * + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-676
-938
-9602

query I rowsort
SELECT - 41 FROM tab1 AS cor0 WHERE - col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT ALL MAX( + - col0 ) + 45 + - 13 / - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL MAX ( + - col0 ) + 45 + - 13 / - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 32 * - + col0 FROM tab2 AS cor0
----
1472
2048
2400

query I rowsort
SELECT DISTINCT - 22 * + 68 AS col2 FROM tab1
----
-1496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT + col0 FROM tab0 WHERE col1 * col0 - col0 + + - CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7173
SELECT + col0 FROM tab0 WHERE col1 * col0 - col0 + + - CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

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

query I rowsort
SELECT col0 * + 25 AS col2 FROM tab1 WHERE NULL < 52
----

query I rowsort
SELECT + 40 * + col0 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT + 54 + + col1 FROM tab1
----
101
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT col1 + + CAST( - 15 AS SIGNED ) col2 FROM tab2
----
36
52
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7178
SELECT col1 + + CAST ( - 15 AS INTEGER ) col2 FROM tab2
----
36
52
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( + - ( 96 ) ) / 74 * - + col2 * + 45 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( + - ( 96 ) ) / 74 * - + col2 * + 45 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 73 + 5 AS col1 FROM tab2 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 + + + col2 col1 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7183
SELECT + CAST( + col1 AS SIGNED ) AS col1, col0 col1 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7183
SELECT + CAST ( + col1 AS INTEGER ) AS col1, col0 col1 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab2 WHERE NULL = col1 * col0 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - - 29 + - COUNT( * ) * + + 84 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7185
SELECT - - 29 + - COUNT ( * ) * + + 84 FROM tab1 AS cor0
----
-223

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT - 60 col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

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

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

query II rowsort
SELECT 91 * + col1 AS col0, col1 AS col2 FROM tab1 AS cor0
----
1274
14
4277
47
455
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT + - 44 DIV - 78 + + - col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7191
SELECT + - 44 / - 78 + + - col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( + col0 ) col0 FROM tab1 cor0 WHERE NOT 59 * col1 + + col1 IS NULL
----
4896
5015
6188

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7194
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT ( CAST( ( + col0 ) AS SIGNED ) ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7195
SELECT ( CAST ( ( + col0 ) AS INTEGER ) ) AS col1 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL col0 * - col1 AS col0, - col0 FROM tab2
----
-2346
-46
-4928
-64
-5025
-75

query I rowsort
SELECT ALL col2 * 8 FROM tab2
----
184
320
464

query I rowsort
SELECT col1 * - 76 FROM tab2
----
-3876
-5092
-5852

query II rowsort
SELECT ALL + col1 * + col0 AS col2, + col0 AS col1 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT DISTINCT + - ( col2 ) * + 4 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT 67 * MIN( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
3953

skipif mysql # not compatible
query I rowsort label-7201
SELECT 67 * MIN ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
3953

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 3 BETWEEN NULL AND + + 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col2 col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ( - - 86 ) FROM tab2
----
86
86
86

query I rowsort
SELECT + - col0 + + + col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + - col0 + - 65 + + 21 * + + col0 FROM tab0 AS cor0
----
1675
1875
235

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 + + col2 IN ( + - col0 + - - col2, - 33, + col1 * + ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + col1 - + col0 * - col1 * + col1 col1 FROM tab1 AS cor0
----
10046
201102
2166

query I rowsort
SELECT DISTINCT 14 * + + col2 AS col0 FROM tab0 AS cor0
----
1386
140
658

query I rowsort
SELECT DISTINCT - col0 + + col0 * + col2 + - + col1 FROM tab2 AS cor0
----
2419
4208
961

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

query I rowsort
SELECT - + 66 * - - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1564
-2704
-3903

query I rowsort
SELECT ALL + 35 + + - col1 FROM tab2
----
-16
-32
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7216
SELECT DISTINCT - 66 - + ( - 84 ) * + - CAST( - - 58 AS SIGNED ), - col1 AS col1 FROM tab1
----
-4938
-14
-4938
-47
-4938
-5

skipif mysql # not compatible
query II rowsort label-7216
SELECT DISTINCT - 66 - + ( - 84 ) * + - CAST ( - - 58 AS INTEGER ), - col1 AS col1 FROM tab1
----
-4938
-14
-4938
-47
-4938
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - MIN( - col0 ) FROM tab0 WHERE NOT col2 < + col0 - - - 29
----
97

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - MIN ( - col0 ) FROM tab0 WHERE NOT col2 < + col0 - - - 29
----
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT 70 DIV + 3 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT 70 / + 3 FROM tab2
----
23

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * col0 col0 FROM tab2 AS cor0
----
107916
315392
376875

query I rowsort
SELECT 92 - - - col1 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7223
SELECT COUNT( * ) AS col1, - 58 AS col1 FROM tab2 AS cor0 WHERE + col1 + 12 = NULL
----
0
-58

skipif mysql # not compatible
query II rowsort label-7223
SELECT COUNT ( * ) AS col1, - 58 AS col1 FROM tab2 AS cor0 WHERE + col1 + 12 = NULL
----
0
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 34 + + - 5 col0 FROM tab2 cor0
----
1729
2273
2613

query II rowsort
SELECT ALL - ( - - col2 ) - + - 45, + col1 FROM tab0
----
-2
81
-54
1
35
21

query I rowsort
SELECT ALL + 89 + - - 33 + 61 * + col1 FROM tab0
----
1403
183
5063

query I rowsort
SELECT - col2 * col0 + - + col2 FROM tab1
----
-4992
-5074
-6256

query I rowsort
SELECT - col2 + + - col2 AS col0 FROM tab2
----
-116
-46
-80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
71

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT SUM( ALL col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT SUM ( ALL col2 ) AS col0 FROM tab2
----
121

query II rowsort
SELECT col1 AS col1, 59 * 46 AS col0 FROM tab1
----
14
2714
47
2714
5
2714

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 + + + 68 AS col1, - 73 FROM tab0
----
-19
-73
-29
-73
53
-73

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - ( COUNT ( * ) ) FROM tab1 cor0
----
-3

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

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

query II rowsort
SELECT + ( 79 ) AS col0, + col0 + - - col2 + + 45 AS col2 FROM tab0 AS cor0
----
79
107
79
142
79
241

query I rowsort
SELECT 95 + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
320
7664
9504

query I rowsort
SELECT ALL col0 + col0 * + - 26 - - col1 FROM tab1
----
-1261
-2120
-2228

onlyif mysql # DIV for integer division: 
query II rowsort label-7248
SELECT ALL + col1 - - col0 DIV + 57, - col1 AS col0 FROM tab0
----
2
-1
22
-21
81
-81

skipif mysql # not compatible
query II rowsort label-7248
SELECT ALL + col1 - - col0 / + 57, - col1 AS col0 FROM tab0
----
2
-1
22
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL - COUNT( * ) + - 59 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - COUNT ( * ) + - 59 FROM tab1
----
-62

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( + 45 ) NOT BETWEEN + col1 AND NULL
----
68

query I rowsort
SELECT ALL 79 * - ( - + col0 ) * - + 57 AS col0 FROM tab0
----
-391761
-436791
-67545

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

query I rowsort
SELECT - col0 * - + col1 * + 77 FROM tab0 AS cor0
----
140679
7469
93555

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL + 29 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
38

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + 29 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
38

query I rowsort
SELECT DISTINCT - - 98 AS col1 FROM tab1 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT + ( + 90 ) DIV col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
153
154
67

skipif mysql # not compatible
query I rowsort label-7256
SELECT + ( + 90 ) / col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
153
154
67

query I rowsort
SELECT - 80 * - 79 * + - ( - col2 ) - - col1 FROM tab0 AS cor0
----
297121
625681
63221

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL - MIN( - + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - MIN ( - + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT MAX( 88 ) * + 26 FROM tab1
----
2288

skipif mysql # not compatible
query I rowsort label-7261
SELECT MAX ( 88 ) * + 26 FROM tab1
----
2288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT - COUNT( - - col1 ) col0 FROM tab1
----
-3

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

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

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

query I rowsort
SELECT 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

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

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

query I rowsort
SELECT ALL col2 * + + col1 * 38 + + + col1 AS col0 FROM tab0 AS cor0
----
144747
3763
8001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT ALL - CAST( - 16 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL - CAST ( - 16 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
16
16
16

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

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

query I rowsort
SELECT ALL 50 AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - + 36 + + COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7272
SELECT - + 36 + + COUNT ( * ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT + 42 - - - col1 FROM tab2 AS cor0
----
-25
-35
-9

query I rowsort
SELECT ALL + col2 * - + 39 AS col1 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT col2 DIV + 51 - + 1 + col2 * + col2 FROM tab2
----
1599
3364
528

skipif mysql # not compatible
query I rowsort label-7275
SELECT col2 / + 51 - + 1 + col2 * + col2 FROM tab2
----
1599
3364
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT ALL + COUNT( * ) DIV - COUNT( * ) - + 59 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + COUNT ( * ) / - COUNT ( * ) - + 59 FROM tab2
----
-60

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT - + COUNT( * ) + + ( + - ( 52 ) ) AS col0 FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7279
SELECT - + COUNT ( * ) + + ( + - ( 52 ) ) AS col0 FROM tab1 cor0
----
-55

query I rowsort
SELECT ALL col1 * - 35 * col1 AS col2 FROM tab2 AS cor0
----
-157115
-207515
-91035

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - SUM( + + 29 ) AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7281
SELECT - SUM ( + + 29 ) AS col1 FROM tab2 AS cor0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT DISTINCT - 58, - col2 * col2 AS col2 FROM tab0 AS cor0
----
-58
-100
-58
-2209
-58
-9801

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

skipif mysql # not compatible
query I rowsort label-7284
SELECT - - COUNT ( * ) / 51 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - - col2 / - col0 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7287
SELECT + 30 * + COUNT( * ) AS col1, - 90 + 18 + + + 46 DIV + 6 + - + SUM( ALL + - ( + 77 ) ) FROM tab0
----
90
166

skipif mysql # not compatible
query II rowsort label-7287
SELECT + 30 * + COUNT ( * ) AS col1, - 90 + 18 + + + 46 / + 6 + - + SUM ( ALL + - ( + 77 ) ) FROM tab0
----
90
166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7288
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( + 79, - col1 * + 97, + 9, col1, + CAST( NULL AS SIGNED ) + - - 25 + col1 )
----

skipif mysql # not compatible
query III rowsort label-7288
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( + 79, - col1 * + 97, + 9, col1, + CAST ( NULL AS INTEGER ) + - - 25 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7289
SELECT ALL * FROM tab1 WHERE NOT - + col2 / - col1 * + CAST( NULL AS SIGNED ) + + 54 <> col1
----

skipif mysql # not compatible
query III rowsort label-7289
SELECT ALL * FROM tab1 WHERE NOT - + col2 / - col1 * + CAST ( NULL AS INTEGER ) + + 54 <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) + - + col2 + - col0 col1 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - 84 + col1 FROM tab0 AS cor0
----
-3
-63
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT ALL COUNT( * ) + + - MIN( - 74 ) AS col0, 45 AS col1 FROM tab2
----
77
45

skipif mysql # not compatible
query II rowsort label-7292
SELECT ALL COUNT ( * ) + + - MIN ( - 74 ) AS col0, 45 AS col1 FROM tab2
----
77
45

query II rowsort
SELECT - 20 AS col1, 64 * + ( 27 ) FROM tab0
----
-20
1728
-20
1728
-20
1728

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

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - MIN ( ALL + - col1 ) FROM tab2
----
77

query I rowsort
SELECT + + col2 - - 98 AS col1 FROM tab1 AS cor0
----
157
166
194

query II rowsort
SELECT DISTINCT + 25 * + 37 + + 65, ( + 91 ) AS col2 FROM tab2 AS cor0
----
990
91

query I rowsort
SELECT - 53 - - + col1 AS col1 FROM tab0 AS cor0
----
-32
-52
28

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT 32 + + - 97 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT col2 * - col1 + - col2 + - - col1 + col1 AS col2 FROM tab1
----
-1412
-3170
-344

onlyif mysql # DIV for integer division: 
query II rowsort label-7301
SELECT ALL + col1 - - col2 col1, + 47 DIV - col0 AS col0 FROM tab2
----
117
0
125
0
74
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7301
SELECT ALL + col1 - - col2 col1, + 47 / - col0 AS col0 FROM tab2
----
117
0
125
0
74
-1

query I rowsort
SELECT DISTINCT 65 * - col1 + - col2 FROM tab0
----
-1375
-164
-5312

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

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

query I rowsort
SELECT ALL 56 - 87 FROM tab1
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT COUNT( * ) - - 19 * + + 38 AS col0 FROM tab1
----
725

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT COUNT ( * ) - - 19 * + + 38 AS col0 FROM tab1
----
725

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT DISTINCT - ( col1 ) DIV + + col2 + - + col2 - - - 55 AS col2 FROM tab0
----
-103
-154
-67

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - ( col1 ) / + + col2 + - + col2 - - - 55 AS col2 FROM tab0
----
-103
-154
-67

query II rowsort
SELECT - 24 AS col1, 81 + + col2 FROM tab0 AS cor0
----
-24
128
-24
180
-24
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT DISTINCT + col2 * + + CAST( col0 AS SIGNED ) * + col0 + + + col0 FROM tab1 AS cor0
----
249747
426360
563199

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + col2 * + + CAST ( col0 AS INTEGER ) * + col0 + + + col0 FROM tab1 AS cor0
----
249747
426360
563199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT 20 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
1020
1700
1820

skipif mysql # not compatible
query I rowsort label-7309
SELECT 20 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
1020
1700
1820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col0 FROM tab0
----
94
94
94

query I rowsort
SELECT ALL - 59 * - 94 FROM tab0 cor0
----
5546
5546
5546

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT ALL - COUNT( * ) * + - MIN( 8 ) DIV 2 AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL - COUNT ( * ) * + - MIN ( 8 ) / 2 AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT - 5 * + - 76 + + 5 AS col1 FROM tab2 AS cor0
----
385
385
385

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT + COUNT( * ) + - + 35 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT + COUNT ( * ) + - + 35 FROM tab0
----
-32

query I rowsort
SELECT DISTINCT ( + 78 ) FROM tab0
----
78

query I rowsort
SELECT ALL - - 14 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + 89 * + + col2 AS col1 FROM tab2
----
2047
3560
5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * - col0 col0 FROM tab2
----
-4278
-5952
-6975

query I rowsort
SELECT + 33 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + - + col1 AND col2
----

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

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

query I rowsort
SELECT ALL 84 + + col2 * - - col1 * + 13 * - + 33 + + col1 * - 47 FROM tab1 AS cor0
----
-126706
-1373209
-577150

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT MAX( col1 ) + 16 col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7323
SELECT DISTINCT MAX ( col1 ) + 16 col2 FROM tab0
----
97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT COUNT( * ) * - 53 AS col0 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-7327
SELECT COUNT ( * ) * - 53 AS col0 FROM tab1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL + COUNT( * ) * COUNT( DISTINCT col2 * + col0 ) col1 FROM tab2
----
9

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

query I rowsort
SELECT ALL + col2 * 46 + + 23 FROM tab1
----
2737
3151
4439

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

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

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

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

query I rowsort
SELECT - 53 * 74 + col0 AS col1 FROM tab1
----
-3831
-3837
-3871

query I rowsort
SELECT - 10 * - ( + col0 ) + col0 * col1 AS col2 FROM tab0
----
1067
1365
2697

query I rowsort
SELECT ALL col2 * 77 AS col2 FROM tab1
----
4543
5236
7392

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

query I rowsort
SELECT + col2 * - 17 + + col2 AS col1 FROM tab2
----
-368
-640
-928

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col2 ) + + col2 ) < - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT + ( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE NULL = ( col1 * 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT + ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE NULL = ( col1 * 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - MIN( DISTINCT 67 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-7340
SELECT - MIN ( DISTINCT 67 ) FROM tab2
----
-67

query I rowsort
SELECT DISTINCT - 74 * col2 FROM tab2
----
-1702
-2960
-4292

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col2 IN ( 66 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL + COUNT( * ) * 73 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL + COUNT ( * ) * 73 FROM tab2
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT - col1 DIV 16 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - col1 / 16 FROM tab0
----
-1
-5
0

query I rowsort
SELECT 54 - col1 * + col1 AS col0 FROM tab2
----
-2547
-4435
-5875

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT + SUM( ALL 34 ) FROM tab2 WHERE col1 * + col0 IS NOT NULL
----
102

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT + SUM ( ALL 34 ) FROM tab2 WHERE col1 * + col0 IS NOT NULL
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT COUNT( * ) * 38 AS col2 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT COUNT ( * ) * 38 AS col2 FROM tab0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 col0 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT col1 - - 59 AS col2 FROM tab1
----
106
64
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( col1 + 47 / + 73 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7354
SELECT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7354
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT 41 * col0 AS col1 FROM tab1 AS cor0
----
2091
3485
3731

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 > + col0 * + col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - col0 NOT IN ( col0 )
----

query I rowsort
SELECT ( + 80 ) - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 65 IS NULL
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT MAX( col1 ) * - 93 FROM tab1 AS cor0
----
-4371

skipif mysql # not compatible
query I rowsort label-7359
SELECT MAX ( col1 ) * - 93 FROM tab1 AS cor0
----
-4371

query I rowsort
SELECT DISTINCT 28 + + col1 * - 13 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col1 + - col0 AND col0 * + col0 - - 17
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT DISTINCT 3 DIV col2 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7363
SELECT DISTINCT 3 / col2 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT + 63 / 12 FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7364
SELECT + 63 / 12 FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 50 col0 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT ALL col2 + col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT ALL 27 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL 27 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 58 FROM tab1 WHERE NOT ( - 58 + col0 ) NOT BETWEEN 72 AND NULL
----

query I rowsort
SELECT - col2 * + 85 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT CAST( + col1 AS SIGNED ) * col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7371
SELECT CAST ( + col1 AS INTEGER ) * col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL + col2 * - + CAST( + col1 AS SIGNED ) + + col1 AS col0 FROM tab1
----
-1330
-290
-3149

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + col2 * - + CAST ( + col1 AS INTEGER ) + + col1 AS col0 FROM tab1
----
-1330
-290
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT - 55 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 55 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT ALL - AVG ( ALL + col0 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - AVG ( ALL + col0 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT + col1 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT + col1 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col1 FROM tab1 WHERE NOT + 87 IN ( + col2 )
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL MIN( 78 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL MIN ( 78 ) FROM tab2
----
78

query I rowsort
SELECT ALL + 61 * + 8 AS col0 FROM tab2
----
488
488
488

query I rowsort
SELECT ALL 30 AS col2 FROM tab1 WHERE NOT col0 NOT BETWEEN ( + col1 / - col1 + 18 ) AND + col2
----
30

query I rowsort
SELECT col1 + + 24 FROM tab1
----
29
38
71

query I rowsort
SELECT DISTINCT 57 * + col0 AS col2 FROM tab1
----
2907
4845
5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT CAST( NULL AS SIGNED ) + - + 22 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT CAST ( NULL AS INTEGER ) + - + 22 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * - col0 ) IS NULL
----

query I rowsort
SELECT ALL 75 * + + col1 FROM tab0
----
1575
6075
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT ALL - 79 DIV + ( - col0 ) FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - 79 / + ( - col0 ) FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT COUNT( * ) * - 77 - 47 * 93 AS col1 FROM tab2 WHERE col1 NOT IN ( col0 )
----
-4602

skipif mysql # not compatible
query I rowsort label-7386
SELECT COUNT ( * ) * - 77 - 47 * 93 AS col1 FROM tab2 WHERE col1 NOT IN ( col0 )
----
-4602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7387
SELECT ALL - COUNT( * ) DIV + 75 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - COUNT ( * ) / + 75 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT DISTINCT col2 * - - 87 + CAST( 53 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
13860
1400
6580

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT col2 * - - 87 + CAST ( 53 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
13860
1400
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT 94 * MAX( - 27 ) + - 42 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT 94 * MAX ( - 27 ) + - 42 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> ( col1 ) * + ( ( - col1 ) )
----

query I rowsort
SELECT ALL + col1 - + col1 + col0 * col0 AS col1 FROM tab2
----
2116
4096
5625

query II rowsort
SELECT ALL - 5 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-5
-15
-5
-87
-5
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7393
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) * col0 >= CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7393
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) * col0 >= CAST ( - col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT col1 + - col2 DIV - col2 AS col1 FROM tab0 AS cor0 WHERE - 56 IS NOT NULL
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7394
SELECT col1 + - col2 / - col2 AS col1 FROM tab0 AS cor0 WHERE - 56 IS NOT NULL
----
2
22
82

query I rowsort
SELECT - - 39 + col1 + + col2 * + 34 FROM tab0 AS cor0
----
1718
3406
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( col1 ) + - col2 + col1 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 * - col1 * - col0 ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT + + 66 + + ( + 99 ) * col2 AS col1 FROM tab1 AS cor0
----
5907
6798
9570

query I rowsort
SELECT DISTINCT ( 97 ) + col0 FROM tab0 AS cor0
----
112
184
194

query I rowsort
SELECT - col0 + - - col0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 + col2 + col2 AS col2 FROM tab0 AS cor0
----
-10
107
-47
109
-99
295

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + + MAX( - col2 ) * SUM( DISTINCT 36 ) - SUM( 52 + + 31 / 28 ) AS col2 FROM tab2 WHERE NOT NULL >= - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT + + MAX ( - col2 ) * SUM ( DISTINCT 36 ) - SUM ( 52 + + 31 / 28 ) AS col2 FROM tab2 WHERE NOT NULL >= - + 63
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 <= + col1 / + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL - MAX( col0 ) col1 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7405
SELECT ALL - MAX ( col0 ) col1 FROM tab1
----
-91

query I rowsort
SELECT ALL - ( + - 78 ) AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT col0 - - col0 FROM tab1 WHERE NOT 23 + + col1 IS NULL
----
102
170
182

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( col1 - + col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7409
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7409
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7410
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 - col2 <= col0
----

skipif mysql # not compatible
query III rowsort label-7410
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 - col2 <= col0
----

query I rowsort
SELECT col1 * + - col0 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL col2 - col0 AS col2 FROM tab2 AS cor0 WHERE col0 >= ( 65 * + ( - col2 ) * col2 - - col0 )
----
-17
-23
-24

query I rowsort
SELECT ALL - 70 * - + 86 AS col0 FROM tab0 AS cor0
----
6020
6020
6020

query I rowsort
SELECT - 3 + - col0 FROM tab2 AS cor0
----
-49
-67
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - col0 * - 22 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7416
SELECT + col0 * - 24 + - CAST( NULL AS DECIMAL ) - + + col0 + 97 / 92 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT + col0 * - 24 + - CAST ( NULL AS REAL ) - + + col0 + 97 / 92 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - 65 ) + - - ( - 40 ) FROM tab2 AS cor0
----
25
25
25

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col0 ) <= ( NULL ) )
----

query I rowsort
SELECT DISTINCT - col1 + col0 AS col1 FROM tab1 WHERE NOT + + col1 * 52 + col1 + 51 + - col0 IN ( - col2 / + 1 )
----
37
44
80

query I rowsort
SELECT ALL 12 * 46 FROM tab0
----
552
552
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT CAST( NULL AS SIGNED ) * + MIN( + 50 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT CAST ( NULL AS INTEGER ) * + MIN ( + 50 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT MAX( + - col0 ) * CAST( - + 80 AS SIGNED ) AS col0 FROM tab0
----
1200

skipif mysql # not compatible
query I rowsort label-7423
SELECT MAX ( + - col0 ) * CAST ( - + 80 AS INTEGER ) AS col0 FROM tab0
----
1200

query II rowsort
SELECT ALL col2 AS col0, - col2 AS col2 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT col0 * + - 94 * - col1 AS col2 FROM tab2
----
220524
463232
472350

query III rowsort
SELECT * FROM tab0 WHERE + 43 + + col2 * + col1 * + col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7427
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) + + - col0 * - col0, - col2 * col0 AS col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
query II rowsort label-7427
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) + + - col0 * - col0, - col2 * col0 AS col0 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

query I rowsort
SELECT DISTINCT col1 * 17 AS col1 FROM tab0 cor0 WHERE NOT - 43 + 28 IS NOT NULL
----

query II rowsort
SELECT col2 - col0 AS col1, - ( - - col2 ) * - + col1 * - 97 FROM tab0 AS cor0
----
-77
-20370
2
-9603
32
-369279

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL SUM( + - col2 ) FROM tab0 WHERE 34 < NULL AND NOT ( col1 + - 99 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL SUM ( + - col2 ) FROM tab0 WHERE 34 < NULL AND NOT ( col1 + - 99 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 81 + col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7433
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7433
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - - 66 <> 37 * 95 + + + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) + - - col2 + col2 NOT BETWEEN - col2 AND col0
----
1

skipif mysql # not compatible
query I rowsort label-7435
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) + - - col2 + col2 NOT BETWEEN - col2 AND col0
----
1

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL AVG ( ALL - col1 ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT - ( + col1 ) / - col2 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL AVG ( ALL - col1 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - ( + col1 ) / - col2 > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col0 + 12 ) NOT IN ( - col0, + col2 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 + 12 ) NOT IN ( - col0, + col2 + - col0 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 * + col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7440
SELECT DISTINCT COUNT( * ) DIV + 77 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT COUNT ( * ) / + 77 FROM tab0
----
0

query I rowsort
SELECT ALL ( + 71 ) AS col1 FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7442
SELECT DISTINCT MIN( ALL + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 * 48 FROM tab0
----
1008
3888
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7444
SELECT - COUNT( * ) AS col0, - 7 - - 79 DIV MAX( + + col0 ) AS col2 FROM tab2
----
-3
-6

skipif mysql # not compatible
query II rowsort label-7444
SELECT - COUNT ( * ) AS col0, - 7 - - 79 / MAX ( + + col0 ) AS col2 FROM tab2
----
-3
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + - COUNT( DISTINCT - + 92 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7445
SELECT + - COUNT ( DISTINCT - + 92 ) AS col2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL + + 22 AS col1, ( - col2 ) AS col2 FROM tab2 AS cor0
----
22
-23
22
-40
22
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL SUM( DISTINCT - 63 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL SUM ( DISTINCT - 63 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7448
SELECT - AVG ( DISTINCT ( - - CAST( NULL AS DECIMAL ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT - AVG ( DISTINCT ( - - CAST ( NULL AS REAL ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( DISTINCT + col2 ) AS col2 FROM tab0 cor0 WHERE NOT ( col0 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 cor0 WHERE NOT ( col0 ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT ALL - - CAST( - 12 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - - CAST ( - 12 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - - 5 + + - 74 > + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT COUNT( DISTINCT + 48 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7452
SELECT COUNT ( DISTINCT + 48 ) FROM tab0 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( - - col2 )
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / - + 5 - + col2 / + col1 / + ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7456
SELECT - CAST( - 40 AS SIGNED ) AS col0, + 3 AS col1 FROM tab2 AS cor0
----
40
3
40
3
40
3

skipif mysql # not compatible
query II rowsort label-7456
SELECT - CAST ( - 40 AS INTEGER ) AS col0, + 3 AS col1 FROM tab2 AS cor0
----
40
3
40
3
40
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( + 68 * col2, 66 * 32, + col0 + + - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col2 BETWEEN NULL AND + ( - - 60 ) / - col0 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT DISTINCT - + col2 + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT - + col2 + col2 / + col1 AS col0 FROM tab1 AS cor0
----
-48
-67
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT col1 * + 76 + - col0 + - - col1 * + + col0 AS col2 FROM tab0
----
3336
7356
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL - COUNT( * ) * + 98 + 44 AS col0 FROM tab2
----
-250

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - COUNT ( * ) * + 98 + 44 AS col0 FROM tab2
----
-250

query I rowsort
SELECT DISTINCT - col1 * - 40 + - col0 - 62 FROM tab1
----
1727
447
53

onlyif mysql # DIV for integer division: 
query II rowsort label-7464
SELECT + 76 + + 95 DIV + - col0 AS col0, 81 AS col0 FROM tab0
----
70
81
75
81
76
81

skipif mysql # not compatible
query II rowsort label-7464
SELECT + 76 + + 95 / + - col0 AS col0, 81 AS col0 FROM tab0
----
70
81
75
81
76
81

query I rowsort
SELECT - 98 * 24 + + col0 AS col1 FROM tab1
----
-2261
-2267
-2301

query II rowsort
SELECT DISTINCT - 28 AS col2, - col1 FROM tab0 WHERE + ( + col1 ) <> col1
----

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NULL <> col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7468
SELECT DISTINCT * FROM tab1 WHERE + + col2 / + ( 0 ) * - CAST( NULL AS DECIMAL ) * - 76 <> NULL
----

skipif mysql # not compatible
query III rowsort label-7468
SELECT DISTINCT * FROM tab1 WHERE + + col2 / + ( 0 ) * - CAST ( NULL AS REAL ) * - 76 <> NULL
----

query II rowsort
SELECT ALL - col1 * - col0 AS col2, col2 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

query I rowsort
SELECT DISTINCT - - 22 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 49 * - - col1 FROM tab0 AS cor0
----
1029
3969
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT CAST( - 67 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-7472
SELECT CAST ( - 67 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT col1 * + - ( 51 ) FROM tab0 AS cor0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT + 26 * col0 AS col0 FROM tab0 AS cor0
----
2262
2522
390

query II rowsort
SELECT col1, 56 FROM tab0 AS cor0
----
1
56
21
56
81
56

query II rowsort
SELECT + 57 AS col2, 27 AS col1 FROM tab2 AS cor0
----
57
27
57
27
57
27

query II rowsort
SELECT ALL - ( col0 ), 71 AS col1 FROM tab1
----
-51
71
-85
71
-91
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT DISTINCT 82 DIV - + col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 82 / - + col1 FROM tab2
----
-1

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT 95 DIV - 99 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT 95 / - 99 - + col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( + 70 ) FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + COUNT( - - ( - + col0 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7482
SELECT + COUNT ( - - ( - + col0 ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN col1 AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( + ( - col1 ) ), + 97 + - 25 AS col0 FROM tab2 AS cor0
----
-51
72
-67
72
-77
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col0 col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + - 85 + col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 55 * + col1 AND 96 + col2
----

query II rowsort
SELECT ALL - - col2 AS col0, - col1 * + col1 * + - 4 FROM tab1 AS cor0
----
59
100
68
8836
96
784

query I rowsort
SELECT col1 + 27 AS col1 FROM tab2 AS cor0
----
104
78
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 / - col0 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT col1 * + col1 * - col0 + - CAST( NULL AS SIGNED ) + 12 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT col1 * + col1 * - col0 + - CAST ( NULL AS INTEGER ) + 12 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + 92 FROM tab1 AS cor0
----
151
160
188

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + + ( - COUNT( * ) ) + + - ( + + SUM( col2 ) ) + + 49 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7492
SELECT + + ( - COUNT ( * ) ) + + - ( + + SUM ( col2 ) ) + + 49 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - 53 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - 53 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT ALL col1 + 47 AS col1 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - COUNT( * ) * + 50 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-7496
SELECT - COUNT ( * ) * + 50 FROM tab2
----
-150

query I rowsort
SELECT ALL + + col1 + 91 FROM tab1 WHERE NOT + col0 / + - ( 16 ) + - 83 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 76 * col0 AS col0 FROM tab1
----
-3876
-6460
-6916

query II rowsort
SELECT - col1 - - - col0 + + + col2 * - - col2 AS col0, - col1 + col0 FROM tab0
----
-8
66
2113
-66
9703
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT DISTINCT 89 + + + SUM( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT 89 + + + SUM ( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - - ( col1 ) - - col2 + + 6 AS col2 FROM tab2 AS cor0
----
123
131
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL - + SUM( ALL - 50 ) col1 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7502
SELECT ALL - + SUM ( ALL - 50 ) col1 FROM tab2 AS cor0
----
150

query I rowsort
SELECT + - 62 - 42 AS col2 FROM tab2 AS cor0
----
-104
-104
-104

query I rowsort
SELECT - - 2 * - - 99 + + col0 FROM tab1 AS cor0
----
249
283
289

query I rowsort
SELECT DISTINCT col0 * - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT ALL + 53 + + - ( - col2 ) FROM tab2
----
111
76
93

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT DISTINCT + 53 * + + col1 * - + ( + - 61 ) / - CAST( NULL AS SIGNED ) + - col0 + CAST( NULL AS SIGNED ) * col1 + 52 + - - col2 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + 53 * + + col1 * - + ( + - 61 ) / - CAST ( NULL AS INTEGER ) + - col0 + CAST ( NULL AS INTEGER ) * col1 + 52 + - - col2 * col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + col1 + - col0 FROM tab1 AS cor0
----
-185
-79
-95

query I rowsort
SELECT DISTINCT 25 * + 12 + + - col1 + - col1 AS col0 FROM tab2 AS cor0
----
146
166
198

query I rowsort
SELECT DISTINCT + ( 95 ) AS col2 FROM tab1 cor0
----
95

query I rowsort
SELECT - + 93 AS col0 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT ALL COUNT( * ) col1, - 15 + + 82 AS col0 FROM tab0
----
3
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7513
SELECT ALL COUNT ( * ) col1, - 15 + + 82 AS col0 FROM tab0
----
3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL + MAX( - 88 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + MAX ( - 88 ) FROM tab0
----
-88

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT DISTINCT 10 * + col2 AS col2 FROM tab1
----
590
680
960

query II rowsort
SELECT + - col2 AS col1, + col2 * + - col1 * - + col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT 56 * - - COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-7518
SELECT 56 * - - COUNT ( * ) FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT 65 * - COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT 65 * - COUNT ( * ) FROM tab0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT + + 80 - + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( 87 AS SIGNED ) + + - col2 * + 56 / + col1 AND col0
----

skipif mysql # not compatible
query I rowsort label-7520
SELECT + + 80 - + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( 87 AS INTEGER ) + + - col2 * + 56 / + col1 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT DISTINCT + col1 DIV + - col2 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT DISTINCT + col1 / + - col2 col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7522
SELECT * FROM tab1 WHERE ( CAST( col0 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7522
SELECT * FROM tab1 WHERE ( CAST ( col0 AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 * - ( + + col2 ) AS col1, ( - col2 ) + - + col2 AS col0 FROM tab0
----
-100
-20
-2209
-94
-9801
-198

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL IS NULL OR 26 IS NOT NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab2
----
-50

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - col0 * 74 * - ( + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 10 NOT IN ( - 17 + - col0 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 32 AS col0 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT + ( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT 43 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( col0, 10 + + col2 * col2, - col2 * - col2 + - 49 )
----

query I rowsort
SELECT 17 + col1 AS col0 FROM tab1 AS cor0
----
22
31
64

query I rowsort
SELECT 66 * - col0 + + ( - + 52 ) AS col0 FROM tab1 AS cor0
----
-3418
-5662
-6058

query I rowsort
SELECT + 24 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - col1 ) + 67 + - - col0 / + col2 + - 44 / + col0 * col2 FROM tab1 WHERE NOT ( - 65 + + 67 NOT BETWEEN + - col1 AND NULL )
----

query I rowsort
SELECT ALL 56 - - 35 FROM tab2
----
91
91
91

query I rowsort
SELECT ALL + ( 91 ) FROM tab1 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL COUNT( DISTINCT - 56 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL COUNT ( DISTINCT - 56 ) AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT 69 AS col0, + col1 * - 85 FROM tab0 AS cor0
----
69
-1785
69
-6885
69
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7541
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-7541
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT ALL AVG ( 50 ) / + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT ALL AVG ( 50 ) / + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( + - col1 ) col2, col0 * + col1 * + 19 AS col2 FROM tab1 AS cor0
----
-14
13566
-47
81263
-5
8075

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT - col2 * - 47 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT - col2 * - 47 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7547
SELECT ALL - - MIN( DISTINCT col0 ) col0, + MAX( - 50 ) DIV - + 4 FROM tab2 AS cor0
----
46
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7547
SELECT ALL - - MIN ( DISTINCT col0 ) col0, + MAX ( - 50 ) / - + 4 FROM tab2 AS cor0
----
46
12

query I rowsort
SELECT DISTINCT + - 91 * - 76 + + - col0 FROM tab1 AS cor0
----
6825
6831
6865

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 / col2 * + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7550
SELECT ALL 77, col2 DIV ( + + 66 ) AS col0 FROM tab1
----
77
0
77
1
77
1

skipif mysql # not compatible
query II rowsort label-7550
SELECT ALL 77, col2 / ( + + 66 ) AS col0 FROM tab1
----
77
0
77
1
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT ALL col0 * - ( CAST( col0 AS SIGNED ) ) AS col1 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL col0 * - ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT - 25 NOT BETWEEN NULL AND + col1 + + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 + - + col0 + 91 * col2
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7556
SELECT ALL - + col2 DIV + - 14 AS col1 FROM tab0 AS cor0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - + col2 / + - 14 AS col1 FROM tab0 AS cor0
----
0
3
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7557
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT 29 + + + 73 + - col0 AS col0 FROM tab0
----
15
5
87

query II rowsort
SELECT ALL + 71 AS col0, col0 FROM tab1 AS cor0
----
71
51
71
85
71
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( + - col1 ) * - ( + + col1 ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT - - col1 DIV - ( - - 41 ) AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - - col1 / - ( - - 41 ) AS col1 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) * col0 / + col2 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 44 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
44
-59
44
-68
44
-96

query I rowsort
SELECT 8 + + 21 AS col1 FROM tab2 cor0
----
29
29
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / + col1 * 28 * - col2 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT DISTINCT 66 + - COUNT( * ) AS col0, 23 FROM tab0
----
63
23

skipif mysql # not compatible
query II rowsort label-7566
SELECT DISTINCT 66 + - COUNT ( * ) AS col0, 23 FROM tab0
----
63
23

query I rowsort
SELECT 98 - col0 AS col0 FROM tab2
----
23
34
52

query II rowsort
SELECT DISTINCT - 80 - - - col2 AS col0, - 74 FROM tab0
----
-127
-74
-179
-74
-90
-74

query I rowsort
SELECT + col1 - + - col2 FROM tab2
----
117
125
74

query I rowsort
SELECT - 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + ( + 91 ) AS col0 FROM tab2
----
91
91
91

query I rowsort
SELECT ALL - col1 * - 71 AS col2 FROM tab2
----
3621
4757
5467

query II rowsort
SELECT DISTINCT col1, 73 AS col0 FROM tab0
----
1
73
21
73
81
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, 42 col2 FROM tab0 cor0
----
1
42
21
42
81
42

query I rowsort
SELECT + + 29 * + col1 * - ( + 46 ) AS col2 FROM tab2 AS cor0
----
-102718
-68034
-89378

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL COUNT( + - ( 19 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL COUNT ( + - ( 19 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - ( - col0 ) + col1 AND + 97
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 65 < 1 * - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 9 col2 FROM tab0
----
106
24
96

query I rowsort
SELECT + col1 * 63 AS col1 FROM tab2
----
3213
4221
4851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + - 68 * - + col0 col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT col2 DIV col2 * + col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7583
SELECT col2 / col2 * + col1 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7585
SELECT col2 * col2 + - col1 + + + col2 DIV col1 DIV CAST( + col1 AS SIGNED ) AS col1, col2 AS col0 FROM tab1
----
3478
59
4577
68
9202
96

skipif mysql # not compatible
query II rowsort label-7585
SELECT col2 * col2 + - col1 + + + col2 / col1 / CAST ( + col1 AS INTEGER ) AS col1, col2 AS col0 FROM tab1
----
3478
59
4577
68
9202
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT COUNT( * ) + 68 + - + 88 + 55 AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7587
SELECT COUNT ( * ) + 68 + - + 88 + 55 AS col1 FROM tab0 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 70 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT 78 + + col1 + - - 53 - - - col0 FROM tab2
----
123
136
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - 49 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT - 83 * + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <= col1 + ( + + 55 ) * - + col0
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 83 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <= col1 + ( + + 55 ) * - + col0
----
0

query I rowsort
SELECT DISTINCT - ( + col2 ) - + 78 * col2 FROM tab0 cor0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT - MAX( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - MAX ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 77 * col1 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT col0 - - col0 AS col2 FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7598
SELECT + COUNT( * ) + ( - CAST( + + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT + COUNT ( * ) + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 + - - 89 FROM tab2 AS cor0
----
135
153
164

query I rowsort
SELECT + + col2 + + col0 + - 75 * - col2 AS col0 FROM tab1 cor0
----
4569
5259
7347

query I rowsort
SELECT - 64 + + - col2 * + 32 + col2 FROM tab1 AS cor0
----
-1893
-2172
-3040

query I rowsort
SELECT + + 62 + - - col2 AS col0 FROM tab2 AS cor0
----
102
120
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT - 79 + - SUM( DISTINCT - 74 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - 79 + - SUM ( DISTINCT - 74 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL + col1 + 82 FROM tab1
----
129
87
96

query I rowsort
SELECT col1 * - col2 + + 85 FROM tab0
----
-125
-14
-3722

query I rowsort
SELECT + 2 * + 60 + + 86 FROM tab1
----
206
206
206

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT DISTINCT + 53 DIV 27 * + - 82 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + 53 / 27 * + - 82 FROM tab0
----
-82

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( col2 ) + - 45 + - 54 / col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7610
SELECT DISTINCT COUNT( DISTINCT + + 41 ) AS col0, + 61 FROM tab2
----
1
61

skipif mysql # not compatible
query II rowsort label-7610
SELECT DISTINCT COUNT ( DISTINCT + + 41 ) AS col0, + 61 FROM tab2
----
1
61

query II rowsort
SELECT ALL + 48, + 77 - + col2 - col1 * + - 75 AS col0 FROM tab1 cor0
----
48
1031
48
3534
48
393

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT - + COUNT( * ) * - 39 col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7612
SELECT DISTINCT - + COUNT ( * ) * - 39 col2 FROM tab1 AS cor0
----
117

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - + col2 >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT DISTINCT - ( - col0 ) DIV 28 AS col2 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - ( - col0 ) / 28 AS col2 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT DISTINCT + - 9 AS col2 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT ALL - col2 AS col0, + 35 AS col0 FROM tab2 AS cor0
----
-23
35
-40
35
-58
35

query I rowsort
SELECT - col2 + - 72 FROM tab2 AS cor0
----
-112
-130
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT - col1 + col2 + + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-34
-7
195

skipif mysql # not compatible
query I rowsort label-7618
SELECT - col1 + col2 + + col0 / col1 AS col2 FROM tab0 AS cor0
----
-34
-7
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + - + 2 AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7619
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + - + 2 AS col2 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT DISTINCT col0 + col2 * - 84 + - col1 FROM tab0
----
-4014
-774
-8220

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 AS col2, + 78 AS col1 FROM tab0
----
-1
78
-21
78
-81
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT + col2 * col1 * CAST( + 7 AS SIGNED ) * 98 FROM tab2 cor0
----
2112880
2665796
804678

skipif mysql # not compatible
query I rowsort label-7623
SELECT + col2 * col1 * CAST ( + 7 AS INTEGER ) * 98 FROM tab2 cor0
----
2112880
2665796
804678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 78 col0, + col1 + + + 74 FROM tab1 AS cor0
----
78
121
78
79
78
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT DISTINCT + 13 col2, + COUNT( * ) FROM tab1 AS cor0
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7625
SELECT DISTINCT + 13 col2, + COUNT ( * ) FROM tab1 AS cor0
----
13
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7626
SELECT + - col0 - col0 + - col1 - - col2 - + ( - - CAST( - + col2 AS SIGNED ) ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-105
-14
-160

skipif mysql # not compatible
query I rowsort label-7626
SELECT + - col0 - col0 + - col1 - - col2 - + ( - - CAST ( - + col2 AS INTEGER ) ) / + col1 AS col1 FROM tab1 AS cor0
----
-105
-14
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT 38 * - 37 + - COUNT( * ) FROM tab2
----
-1409

skipif mysql # not compatible
query I rowsort label-7628
SELECT 38 * - 37 + - COUNT ( * ) FROM tab2
----
-1409

query III rowsort
SELECT * FROM tab2 WHERE - col1 / + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col2 * + 46 FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT + COUNT( * ) DIV 59 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7632
SELECT + COUNT ( * ) / 59 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 38 FROM tab0 AS cor0 WHERE col1 / + col2 NOT BETWEEN + col1 AND - col2
----
-38
-38
-38

query I rowsort
SELECT + col2 * - col1 * + - 68 - col2 FROM tab1 AS cor0
----
20001
217260
91296

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT ALL 51 DIV ( - col1 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL 51 / ( - col1 ) FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT ALL col1 * + ( col0 ) + - 98 + - col2 DIV + - col2 + - col2 FROM tab1 AS cor0
----
269
4112
521

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL col1 * + ( col0 ) + - 98 + - col2 / + - col2 + - col2 FROM tab1 AS cor0
----
269
4112
521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 47 ) col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT - CAST( col1 AS SIGNED ) + col0 FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-7638
SELECT - CAST ( col1 AS INTEGER ) + col0 FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 0 NOT BETWEEN col2 AND + 49
----

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + 37 * + COUNT( * ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7641
SELECT + 37 * + COUNT ( * ) FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT DISTINCT - COUNT( * ), COUNT( * ) + + COUNT( * ) col0 FROM tab0
----
-3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7642
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) + + COUNT ( * ) col0 FROM tab0
----
-3
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT + - COUNT( * ) FROM tab0 WHERE NOT ( - + 25 ) <> CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7643
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT ( - + 25 ) <> CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT MIN( DISTINCT + 77 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7644
SELECT MIN ( DISTINCT + 77 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT DISTINCT 58 * + SUM( ALL + - col1 ) FROM tab1
----
-3828

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT 58 * + SUM ( ALL + - col1 ) FROM tab1
----
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT + + col0 * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 6, + 41 )
----

skipif mysql # not compatible
query I rowsort label-7646
SELECT + + col0 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 6, + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7647
SELECT * FROM tab2 AS cor0 WHERE NOT - 66 + + + 6 + + - CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7647
SELECT * FROM tab2 AS cor0 WHERE NOT - 66 + + + 6 + + - CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL - + MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - + MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 8 * 79 AS col1 FROM tab1
----
-632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT DISTINCT - col1 * + + 4 AS col2 FROM tab0 WHERE col2 + + col1 * + CAST( NULL AS SIGNED ) <= - + col0 + col1 * + + CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - col1 * + + 4 AS col2 FROM tab0 WHERE col2 + + col1 * + CAST ( NULL AS INTEGER ) <= - + col0 + col1 * + + CAST ( - - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 6 * - col2 FROM tab1
----
-354
-408
-576

query II rowsort
SELECT ALL + - col0, 55 AS col0 FROM tab2 cor0
----
-46
55
-64
55
-75
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT - - ( + + SUM( ALL + col0 ) ) FROM tab2 AS cor0 WHERE 67 + + ( col0 ) - - - 35 + + 30 + col1 * col0 <> + col1
----
185

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT - - ( + + SUM ( ALL + col0 ) ) FROM tab2 AS cor0 WHERE 67 + + ( col0 ) - - - 35 + + 30 + col1 * col0 <> + col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT MIN( 25 ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT MIN ( 25 ) AS col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT + 48 * - 19 AS col2 FROM tab0 cor0
----
-912
-912
-912

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT - 35 DIV col1 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT - 35 / col1 FROM tab1 AS cor0
----
-2
-7
0

query I rowsort
SELECT ALL + + col0 + - col0 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
-10560
-75603
-931394

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT DISTINCT + + 69 * 59 + 24 + col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
4096
4097

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + + 69 * 59 + 24 + col0 / + col2 AS col2 FROM tab2 AS cor0
----
4096
4097

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT COUNT( * ) * 75 AS col2, MIN( - 5 ) AS col0 FROM tab0
----
225
-5

skipif mysql # not compatible
query II rowsort label-7659
SELECT COUNT ( * ) * 75 AS col2, MIN ( - 5 ) AS col0 FROM tab0
----
225
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT DISTINCT - 59 + 67 AS col2, + 6 + + COUNT( * ) * + - 84 * COUNT( * ) FROM tab1
----
8
-750

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT - 59 + 67 AS col2, + 6 + + COUNT ( * ) * + - 84 * COUNT ( * ) FROM tab1
----
8
-750

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT 97 + - + 12, + COUNT( * ) AS col2 FROM tab2
----
85
3

skipif mysql # not compatible
query II rowsort label-7661
SELECT 97 + - + 12, + COUNT ( * ) AS col2 FROM tab2
----
85
3

query I rowsort
SELECT 32 * + - 66 FROM tab0 AS cor0
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT - ( + + 93 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

query II rowsort
SELECT + 48, col2 FROM tab0
----
48
10
48
47
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT 52 * - COUNT( * ) AS col1 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT 52 * - COUNT ( * ) AS col1 FROM tab1
----
-156

query I rowsort
SELECT + 30 - + + 7 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + 95 * + col0 AS col0 FROM tab1 cor0
----
4845
8075
8645

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7668
SELECT * FROM tab2 AS cor0 WHERE col0 * + CAST( - col1 AS SIGNED ) * + 95 + + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7668
SELECT * FROM tab2 AS cor0 WHERE col0 * + CAST ( - col1 AS INTEGER ) * + 95 + + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 76 * ( - 93 ) AS col0, col1 AS col0 FROM tab2 AS cor0
----
7068
51
7068
67
7068
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - - 22 * - - COUNT( * ) * + 66 col1 FROM tab0 AS cor0
----
4356

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7670
SELECT - - 22 * - - COUNT ( * ) * + 66 col1 FROM tab0 AS cor0
----
4356

query I rowsort
SELECT ALL - ( - - ( + + ( + - col2 ) ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7672
SELECT + SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * col1 AS col2, - col1 * - col1 AS col0 FROM tab0
----
210
441
3807
6561
99
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + col2 <> + 22 * + 6 * - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7676
SELECT DISTINCT * FROM tab2 WHERE NULL <= + + 13 * col2 + - - col1 - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7676
SELECT DISTINCT * FROM tab2 WHERE NULL <= + + 13 * col2 + - - col1 - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT ALL + + COUNT( * ) AS col2, - 59 AS col0 FROM tab2 WHERE - - 14 IS NULL
----
0
-59

skipif mysql # not compatible
query II rowsort label-7677
SELECT ALL + + COUNT ( * ) AS col2, - 59 AS col0 FROM tab2 WHERE - - 14 IS NULL
----
0
-59

query I rowsort
SELECT ALL + 43 * + col1 AS col0 FROM tab2
----
2193
2881
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - MAX( DISTINCT ( - col0 ) ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7679
SELECT - MAX ( DISTINCT ( - col0 ) ) AS col0 FROM tab1 cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * 96 * ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 60 - + + 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT ALL + 15 DIV - MIN( DISTINCT - ( + col1 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + 15 / - MIN ( DISTINCT - ( + col1 ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + + 79 * + COUNT( * ) + - 82 FROM tab1 cor0
----
155

skipif mysql # not compatible
query I rowsort label-7683
SELECT + + 79 * + COUNT ( * ) + - 82 FROM tab1 cor0
----
155

query I rowsort
SELECT DISTINCT - 37 + - col1 AS col1 FROM tab0 AS cor0
----
-118
-38
-58

query II rowsort
SELECT ALL + + col0 + + 65 * - col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-2944
46
-4096
64
-4800
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 32 + + col0, + col0, + + col1 + + 75, - col2 + + col0 * - col1, + 31, + + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + COUNT( * ) + 76 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + COUNT ( * ) + 76 FROM tab2 AS cor0
----
79

query I rowsort
SELECT col2 * - 88 + + + col2 AS col0 FROM tab1 AS cor0
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - MIN( - + 3 ) + + 25 - + + 64 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7689
SELECT - MIN ( - + 3 ) + + 25 - + + 64 FROM tab0 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT ALL 24 DIV - - 76 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL 24 / - - 76 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - - col1 + + ( + + 66 ) AS col1, - col2 FROM tab1 AS cor0
----
113
-68
71
-59
80
-96

query I rowsort
SELECT - + col0 * col0 - + - 42 + 88 FROM tab0 AS cor0
----
-7439
-9279
-95

query I rowsort
SELECT ALL - col0 + + + col0 * - - col0 FROM tab0 AS cor0 WHERE + 66 IS NULL
----

query I rowsort
SELECT ALL - 93 + 83 AS col0 FROM tab0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 24 + + col0 AS col2 FROM tab1
----
109
115
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7697
SELECT 79, 71 DIV + COUNT( * ) AS col0 FROM tab0
----
79
23

skipif mysql # not compatible
query II rowsort label-7697
SELECT 79, 71 / + COUNT ( * ) AS col0 FROM tab0
----
79
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT - CAST( - 98 AS SIGNED ) AS col1 FROM tab2
----
98
98
98

skipif mysql # not compatible
query I rowsort label-7698
SELECT - CAST ( - 98 AS INTEGER ) AS col1 FROM tab2
----
98
98
98

query I rowsort
SELECT ALL + col2 * col2 / col1 / + 53 AS col1 FROM tab2 WHERE NOT NULL <= + + col1
----

query I rowsort
SELECT col1 * - 7 * - col0 * - col0 AS col2 FROM tab0
----
-1112643
-127575
-65863

query II rowsort
SELECT DISTINCT - 98 - + col1 AS col0, col1 AS col2 FROM tab0
----
-119
21
-179
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT DISTINCT + - CAST( + 58 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR col2 <> + col1
----
-58

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + - CAST ( + 58 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR col2 <> + col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7703
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 + - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7703
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 + - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7704
SELECT - + COUNT( * ) + + MIN( ALL - CAST( NULL AS SIGNED ) ) + + 77 / - 50 * - 64 * 21 * - 1 + 25 * 47 + - + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7704
SELECT - + COUNT ( * ) + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + 77 / - 50 * - 64 * 21 * - 1 + 25 * 47 + - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL + col0 + + col1 + + col0 AS col2 FROM tab2
----
143
205
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT + col0 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + col0 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 52 BETWEEN ( col2 ) * - col0 * + + ( + - col1 ) * + 16 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT - MIN( DISTINCT 43 ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7708
SELECT - MIN ( DISTINCT 43 ) AS col2 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT - + 45 * col1 AS col0 FROM tab0 AS cor0
----
-3645
-45
-945

query III rowsort
SELECT * FROM tab0 WHERE NOT + 77 * - - col2 <= ( + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * col0 * col0 * ( + + col0 ) FROM tab1
----
52200625
6765201
68574961

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT + 0 DIV - 29 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7712
SELECT + 0 / - 29 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col0 col1 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT col2 DIV col2 * + 79 FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7714
SELECT col2 / col2 * + 79 FROM tab1
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, col1 col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT + - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT + - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7717
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <> NULL
----
0

query I rowsort
SELECT + 80 * + - col2 AS col2 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT + 93 + + col0 FROM tab0 AS cor0
----
108
180
190

query II rowsort
SELECT + col0 * col0 + - - 62, col2 AS col0 FROM tab0
----
287
47
7631
10
9471
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7721
SELECT + CAST( NULL AS DECIMAL ) + 40 * 16 / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT + CAST ( NULL AS REAL ) + 40 * 16 / - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + + col0 * - - col1 + + - 22 FROM tab2
----
2347
4946
5061

query I rowsort
SELECT 64 * - col1 * 27 + + 12 * + col2 AS col0 FROM tab1
----
-23040
-7932
-80400

query I rowsort
SELECT ALL 17 - + + 93 FROM tab2
----
-76
-76
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - - col1 - + - 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + MIN( ALL 55 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + MIN ( ALL 55 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
55

query I rowsort
SELECT col1 * - 55 + + col1 AS col2 FROM tab0 cor0
----
-1134
-4374
-54

query I rowsort
SELECT ALL 38 + + col2 AS col0 FROM tab0 AS cor0
----
137
48
85

query I rowsort
SELECT - 9 * + + col2 FROM tab0 AS cor0
----
-423
-891
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + - 88 - + SUM( col2 ) AS col1 FROM tab1 AS cor0
----
-311

skipif mysql # not compatible
query I rowsort label-7732
SELECT + - 88 - + SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
-311

query II rowsort
SELECT DISTINCT + 96 AS col1, col0 * + - col2 FROM tab2
----
96
-1058
96
-2560
96
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT DISTINCT + CAST( - CAST( 6 AS SIGNED ) AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 47 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7734
SELECT DISTINCT + CAST ( - CAST ( 6 AS INTEGER ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 47 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, col0 )
----

query I rowsort
SELECT + - ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + MAX( DISTINCT - ( + 15 ) ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MAX ( DISTINCT - ( + 15 ) ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT - 50 * CAST( NULL AS SIGNED ) + 25 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT - 50 * CAST ( NULL AS INTEGER ) + 25 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7740
SELECT DISTINCT + CAST( NULL AS DECIMAL ), + COUNT( * ) * 92 AS col1 FROM tab2 AS cor0
----
NULL
276

skipif mysql # not compatible
query II rowsort label-7740
SELECT DISTINCT + CAST ( NULL AS REAL ), + COUNT ( * ) * 92 AS col1 FROM tab2 AS cor0
----
NULL
276

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - 88 * + COUNT( * ) - - - 17 * - 87 col1 FROM tab2 AS cor0
----
1215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7741
SELECT - 88 * + COUNT ( * ) - - - 17 * - 87 col1 FROM tab2 AS cor0
----
1215

query II rowsort
SELECT - 5 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
-5
15
-5
87
-5
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7743
SELECT ALL - col0 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7743
SELECT ALL - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT DISTINCT COUNT( * ) AS col0, - 95 * - - 59 FROM tab1 AS cor0
----
3
-5605

skipif mysql # not compatible
query II rowsort label-7744
SELECT DISTINCT COUNT ( * ) AS col0, - 95 * - - 59 FROM tab1 AS cor0
----
3
-5605

onlyif mysql # DIV for integer division: 
query II rowsort label-7745
SELECT col1 AS col1, col1 + 5 DIV - - 47 + + col0 AS col0 FROM tab2 AS cor0
----
51
97
67
142
77
141

skipif mysql # not compatible
query II rowsort label-7745
SELECT col1 AS col1, col1 + 5 / - - 47 + + col0 AS col0 FROM tab2 AS cor0
----
51
97
67
142
77
141

query I rowsort
SELECT - ( - 89 ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - 37 * col2 col2, + 94 FROM tab1
----
-181152
94
-185555
94
-228956
94

query I rowsort
SELECT col2 * + - col0 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT + 43 * + - 60 * + col0 * - col0 * - - 82 + + 66 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 42 * col1 AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 16 + + + col1 AS col1 FROM tab1
----
21
30
63

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 WHERE NOT col2 = - 38
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT + 25 * - MAX( - col0 ) AS col2 FROM tab1
----
1275

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + 25 * - MAX ( - col0 ) AS col2 FROM tab1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL - SUM( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - SUM ( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + + 82 + - COUNT( * ) AS col2 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-7759
SELECT + + 82 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
79

query I rowsort
SELECT + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - - col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN 89 * 93 * + - col2 AND ( - - col1 / + col0 + - col1 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT - - COUNT( ALL + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7763
SELECT - - COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7764
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) col2 FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + col1 <= col2
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - ( + 32 ) * 36 + col2 * col2 * + ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT DISTINCT + - 42 + + COUNT( * ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT + - 42 + + COUNT ( * ) FROM tab2 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 60 col1 FROM tab1 WHERE NULL IS NULL
----
119
128
156

query II rowsort
SELECT ALL - col0 * + col1 AS col1, + 24 AS col0 FROM tab1
----
-425
24
-4277
24
-714
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT 29 * + - COUNT( * ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT 29 * + - COUNT ( * ) FROM tab1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT - 24 + + - 77 + + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) / + MAX( DISTINCT - 71 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT - 24 + + - 77 + + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / + MAX ( DISTINCT - 71 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + col1 + - 67 - - col2 FROM tab0 AS cor0
----
-20
-57
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT + COUNT( ALL + 78 ) * + 11 * + SUM( - CAST( 75 AS SIGNED ) ) FROM tab1 cor0
----
-7425

skipif mysql # not compatible
query I rowsort label-7773
SELECT + COUNT ( ALL + 78 ) * + 11 * + SUM ( - CAST ( 75 AS INTEGER ) ) FROM tab1 cor0
----
-7425

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT DISTINCT 3 DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT 3 / + col0 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - + col0 / + + col2 + + 31 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - + col0 / + + col2 + + 31 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7776
SELECT + - 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-7776
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL COUNT( * ) * + COUNT( * ) - + ( + 94 ) AS col2 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + ( + 94 ) AS col2 FROM tab0 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT 31 / - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT 31 / - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 36 AS col1 FROM tab1 cor0
----
36
36
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT SUM( ALL + - CAST( - - CAST( + ( - ( + col0 ) ) AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7780
SELECT SUM ( ALL + - CAST ( - - CAST ( + ( - ( + col0 ) ) AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - ( 21 ) AS col0 FROM tab1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT col1 * + - ( + 34 ) / 78 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT col1 * + - ( + 34 ) / 78 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7783
SELECT DISTINCT - col1 AS col2, col0 DIV + col1 FROM tab2
----
-51
0
-67
1
-77
0

skipif mysql # not compatible
query II rowsort label-7783
SELECT DISTINCT - col1 AS col2, col0 / + col1 FROM tab2
----
-51
0
-67
1
-77
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + + ( col0 ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT COUNT( * ) * 45 AS col0 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-7785
SELECT COUNT ( * ) * 45 AS col0 FROM tab1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT - col1 DIV - - 74 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT - col1 / - - 74 FROM tab0
----
-1
0
0

query I rowsort
SELECT 0 FROM tab2 WHERE NOT NULL <> + col2 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( + - col0 ) - - 17 + + - SUM( - col0 ) + COUNT( * ) * 30 * MAX( ALL + 56 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( + - col0 ) - - 17 + + - SUM ( - col0 ) + COUNT ( * ) * 30 * MAX ( ALL + 56 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + + 47 + - COUNT( * ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7789
SELECT + + 47 + - COUNT ( * ) FROM tab2 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT SUM( 35 ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7790
SELECT SUM ( 35 ) FROM tab2 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + - 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT - col2 DIV - 15 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-7792
SELECT - col2 / - 15 FROM tab1
----
3
4
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + 0 ) / - col1 + + - 90 + - 70 * + 51 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT + MAX( DISTINCT + + ( + - 5 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT + MAX ( DISTINCT + + ( + - 5 ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT ALL - col2 * + col1 DIV - col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - col2 * + col1 / - col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + 56 + - col1 + + + 16 AS col0 FROM tab2 AS cor0
----
-5
21
5

query II rowsort
SELECT 61 + - - col2, + col0 FROM tab2 AS cor0
----
101
64
119
75
84
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + 23 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7798
SELECT + 23 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT - ( SUM( - - col2 ) ) col0, SUM( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7799
SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - col2 - + 20 AS col1 FROM tab1
----
-1364
-315
-3216

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT DISTINCT + col0 DIV + ( + col2 ) + + ( ( - col0 ) ) + col2 * - + col2 * + col2 * 52 FROM tab2
----
-10145898
-3328063
-632728

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT + col0 / + ( + col2 ) + + ( ( - col0 ) ) + col2 * - + col2 * + col2 * 52 FROM tab2
----
-10145898
-3328063
-632728

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT DISTINCT - - COUNT( - - 19 ) * SUM( ALL - + 3 ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT - - COUNT ( - - 19 ) * SUM ( ALL - + 3 ) AS col1 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7803
SELECT - + CAST( NULL AS DECIMAL ) * + + col2 + - + ( - col2 ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7803
SELECT - + CAST ( NULL AS REAL ) * + + col2 + - + ( - col2 ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT DISTINCT + COUNT( * ) AS col1, 21 FROM tab2 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-7804
SELECT DISTINCT + COUNT ( * ) AS col1, 21 FROM tab2 AS cor0
----
3
21

onlyif mysql # DIV for integer division: 
query II rowsort label-7805
SELECT - 54 * col1 DIV + - col0, col0 FROM tab0 AS cor0
----
0
97
13
87
291
15

skipif mysql # not compatible
query II rowsort label-7805
SELECT - 54 * col1 / + - col0, col0 FROM tab0 AS cor0
----
0
97
13
87
291
15

query I rowsort
SELECT ALL 72 + - col2 AS col1 FROM tab0 WHERE - ( col2 ) IS NOT NULL
----
-27
25
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( + col0 )
----

query I rowsort
SELECT 32 + col0 AS col2 FROM tab2
----
107
78
96

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT + CAST( + ( - 28 ) AS SIGNED ) AS col0 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + CAST ( + ( - 28 ) AS INTEGER ) AS col0 FROM tab0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7811
SELECT COUNT( col2 ) + - 12 DIV + MAX( DISTINCT col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( col2 ) + - 12 / + MAX ( DISTINCT col2 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT 11 + MAX( ALL - col0 ) * - COUNT( * ) AS col0 FROM tab2
----
149

skipif mysql # not compatible
query I rowsort label-7813
SELECT 11 + MAX ( ALL - col0 ) * - COUNT ( * ) AS col0 FROM tab2
----
149

query I rowsort
SELECT col0 + 14 AS col2 FROM tab2
----
60
78
89

query I rowsort
SELECT col1 + col1 FROM tab0 WHERE NOT + ( - col2 ) IS NULL
----
162
2
42

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( + 55 * - 25 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT col2 FROM tab2 WHERE ( - 38 ) IN ( - col1 )
----

query I rowsort
SELECT - 48 * col1 AS col2 FROM tab0
----
-1008
-3888
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + MAX( + col0 ) - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-7819
SELECT + MAX ( + col0 ) - COUNT ( * ) FROM tab1
----
88

query III rowsort
SELECT * FROM tab0 WHERE NOT - 52 * - col1 NOT IN ( col0 + col0 )
----

query I rowsort
SELECT - ( 94 ) - col1 AS col2 FROM tab1
----
-108
-141
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 + col1
----

query I rowsort
SELECT DISTINCT - 34 - - col1 AS col2 FROM tab1
----
-20
-29
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + - 45 col1 FROM tab2 WHERE col0 IS NOT NULL
----
7

query I rowsort
SELECT + col0 * - ( - col0 ) + + col2 AS col2 FROM tab2
----
2139
4136
5683

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = ( col1 )
----

query I rowsort
SELECT ALL 10 * - col0 + col0 * 65 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT 52 + COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7828
SELECT 52 + COUNT ( * ) FROM tab2
----
55

query I rowsort
SELECT col2 + + col2 AS col1 FROM tab1 WHERE NOT ( col0 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col0 BETWEEN col0 + 87 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT col2 DIV + 10 AS col2 FROM tab1 AS cor0
----
5
6
9

skipif mysql # not compatible
query I rowsort label-7831
SELECT col2 / + 10 AS col2 FROM tab1 AS cor0
----
5
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 80 col1 FROM tab2 AS cor0
----
-22
-40
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT + 25 + col2 FROM tab1 cor0
----
121
84
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - col1 * + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 99 IS NULL
----

query I rowsort
SELECT DISTINCT col2 - + 32 * - col0 AS col2 FROM tab2
----
1495
2088
2458

query I rowsort
SELECT + col2 + - col1 * col0 FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1 + + 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL + 73 + + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
56
70
72

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + 73 + + col0 / - col1 AS col2 FROM tab1 AS cor0
----
56
70
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 * 11 )
----

query I rowsort
SELECT + col1 * - 18 AS col1 FROM tab0 AS cor0
----
-1458
-18
-378

query I rowsort
SELECT 66 * - col2 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT - ( 14 ) + ( col2 ) FROM tab2 AS cor0 WHERE 26 IN ( 88 * + col2 )
----

query I rowsort
SELECT 1 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL - MIN( col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 65 + - col0 FROM tab2 AS cor0
----
-111
-129
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT COUNT( * ) FROM tab0 cor0 WHERE + CAST( 9 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT COUNT ( * ) FROM tab0 cor0 WHERE + CAST ( 9 AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT - 91 * + 12 AS col1 FROM tab2 AS cor0
----
-1092
-1092
-1092

query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE ( - col0 * ( 13 * col0 ) ) <= + 76 * + 34
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - 4 * - + col1 + + 46 AS col1 FROM tab1
----
102
234
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 19 AND ( ( ( + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL MAX( - + ( - col0 ) ) - - COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL MAX ( - + ( - col0 ) ) - - COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT DISTINCT col2 * - + col1 + + 68 AS col1 FROM tab1
----
-1276
-227
-3128

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * col1 BETWEEN ( 65 * 61 ) AND ( + col2 + + ( col2 + - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT MIN( + 33 ) AS col1 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7857
SELECT MIN ( + 33 ) AS col1 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL - COUNT( ALL - ( col2 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - COUNT ( ALL - ( col2 ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT ( + 44 ) * - CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL <> ( - 89 )
----

skipif mysql # not compatible
query I rowsort label-7859
SELECT ( + 44 ) * - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL <> ( - 89 )
----

query I rowsort
SELECT DISTINCT 21 * + col1 AS col0 FROM tab0
----
1701
21
441

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7861
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + col0 * 24 FROM tab2 AS cor0
----
104400
25392
61440

query I rowsort
SELECT DISTINCT - - 38 FROM tab1 cor0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7864
SELECT - + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7865
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + 36 AS col0, - col1 AS col1 FROM tab0
----
36
-1
36
-21
36
-81

query II rowsort
SELECT 34 AS col1, 13 AS col0 FROM tab1 AS cor0
----
34
13
34
13
34
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - COUNT( * ) + - 85 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-7868
SELECT - COUNT ( * ) + - 85 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( 63 * + + 10 ) >= 33
----
3

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( 63 * + + 10 ) >= 33
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7870
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7870
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( col2 )
----

query I rowsort
SELECT ALL - col0 * 2 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7873
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7873
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL + COUNT( * ) - 25 FROM tab1 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + COUNT ( * ) - 25 FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----
-25

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE 74 NOT IN ( + col2 * col2 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT DISTINCT - + col1 + - + col0 + col2 + - CAST( + col1 AS SIGNED ) * 5 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - + col1 + - + col0 + col2 + - CAST ( + col1 AS INTEGER ) * 5 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + 16 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) + - - col2 + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + 61 * - COUNT( * ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-7879
SELECT + 61 * - COUNT ( * ) FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT - 19 * COUNT( * ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - 19 * COUNT ( * ) AS col1 FROM tab2
----
-57

query I rowsort
SELECT + 46 + + - 29 AS col2 FROM tab1
----
17
17
17

onlyif mysql # DIV for integer division: 
query II rowsort label-7882
SELECT DISTINCT col2 DIV - col0 AS col0, col2 DIV - col1 * + col1 + - 82 * 16 AS col0 FROM tab0
----
-1
-1411
-3
-1312
0
-1312

skipif mysql # not compatible
query II rowsort label-7882
SELECT DISTINCT col2 / - col0 AS col0, col2 / - col1 * + col1 + - 82 * 16 AS col0 FROM tab0
----
-1
-1411
-3
-1312
0
-1312

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT - col0 + 62 DIV + + col2 AS col1 FROM tab0
----
-14
-81
-97

skipif mysql # not compatible
query I rowsort label-7883
SELECT - col0 + 62 / + + col2 AS col1 FROM tab0
----
-14
-81
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col0 - - col0 NOT BETWEEN - col0 AND ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + 41 * 59 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
2422

skipif mysql # not compatible
query I rowsort label-7885
SELECT + 41 * 59 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2422

query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - 81 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 65 + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - - col2 + - col1 / col1 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT - 9 * - - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT - 9 * - - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col2 FROM tab2 cor0
----
1600
3364
529

query II rowsort
SELECT col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - ( MAX( col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7895
SELECT - ( MAX ( col0 ) ) FROM tab2
----
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 76 IN ( - col2 + col1 + - col2 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1, + 22 + - col1 FROM tab1
----
14
8
47
-25
5
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT COUNT( * ) AS col1, 91 AS col2 FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-7898
SELECT COUNT ( * ) AS col1, 91 AS col2 FROM tab1
----
3
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7899
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-7899
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + col1 ) + + 79 >= ( col0 ) )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT ( - - ( col0 ) ) AS col2 FROM tab0
----
15
87
97

query II rowsort
SELECT ALL + col1 AS col0, - col2 FROM tab0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT 89 + - col1 IS NOT NULL
----

query I rowsort
SELECT 3 AS col2 FROM tab2 WHERE NOT ( - ( ( + col0 ) ) ) NOT IN ( + 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - + COUNT( - col1 ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7905
SELECT - + COUNT ( - col1 ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT + col1 * - + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT CAST( NULL AS SIGNED ) * + + 40 * + 20 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT CAST ( NULL AS INTEGER ) * + + 40 * + 20 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + + + col1 * - + 7 FROM tab2 AS cor0
----
-334
-411
-499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT col2 FROM tab2 cor0 WHERE NOT col0 * 7 * + - 30 + - col2 + CAST( - + ( ( + 95 ) ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7909
SELECT col2 FROM tab2 cor0 WHERE NOT col0 * 7 * + - 30 + - col2 + CAST ( - + ( ( + 95 ) ) AS INTEGER ) < NULL
----

query II rowsort
SELECT DISTINCT ( + col2 ) AS col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 69 ) NOT IN ( 4 * + col1 * col1, 53 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT - - COUNT( * ) * + 71 + - COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT - - COUNT ( * ) * + 71 + - COUNT ( * ) FROM tab0 AS cor0
----
210

query I rowsort
SELECT - + 69 + col2 FROM tab0 AS cor0
----
-22
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - + 55 * - + MAX( DISTINCT 65 ) + - + COUNT( * ) FROM tab2 AS cor0
----
3572

skipif mysql # not compatible
query I rowsort label-7914
SELECT - + 55 * - + MAX ( DISTINCT 65 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
3572

onlyif mysql # DIV for integer division: 
query II rowsort label-7915
SELECT 45 col2, - ( - col0 ) DIV 43 DIV col0 + - 49 AS col0 FROM tab2
----
45
-49
45
-49
45
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7915
SELECT 45 col2, - ( - col0 ) / 43 / col0 + - 49 AS col0 FROM tab2
----
45
-49
45
-49
45
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT + MAX( col2 ) AS col1 FROM tab2 WHERE NOT ( + col1 + ( 41 ) ) IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + MAX ( col2 ) AS col1 FROM tab2 WHERE NOT ( + col1 + ( 41 ) ) IS NULL
----
58

query I rowsort
SELECT 6 * + 88 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - + col0 NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, + 44 FROM tab1
----
59
44
68
44
96
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT 91 DIV + ( - - 39 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT 91 / + ( - - 39 ) FROM tab1
----
2

query I rowsort
SELECT DISTINCT ( + col1 ) AS col0 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT COUNT( col0 ) * + + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7922
SELECT COUNT ( col0 ) * + + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT - col0 * - col0 + + + CAST( NULL AS SIGNED ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT - col0 * - col0 + + + CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + - 16 AS col2 FROM tab0 AS cor0
----
-15
5
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL CAST( NULL AS SIGNED ) - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL CAST ( NULL AS INTEGER ) - - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT AVG ( + col1 ) AS col1 FROM tab2 WHERE + - col2 IN ( - col0, col0 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT AVG ( + col1 ) AS col1 FROM tab2 WHERE + - col2 IN ( - col0, col0 * CAST ( NULL AS INTEGER ) )
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query II rowsort label-7929
SELECT - col0 * col0 AS col0, col1 DIV col1 FROM tab0
----
-225
1
-7569
1
-9409
1

skipif mysql # not compatible
query II rowsort label-7929
SELECT - col0 * col0 AS col0, col1 / col1 FROM tab0
----
-225
1
-7569
1
-9409
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7930
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - 75 * + - COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7931
SELECT - 75 * + - COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7932
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * - - ( - col2 ) * 30 * 17 + - - col1 ) <= CAST( NULL AS SIGNED ) * - 35 / ( - 66 * 38 )
----

skipif mysql # not compatible
query III rowsort label-7932
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * - - ( - col2 ) * 30 * 17 + - - col1 ) <= CAST ( NULL AS INTEGER ) * - 35 / ( - 66 * 38 )
----

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 AS col0 FROM tab2 WHERE + 51 IS NOT NULL
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL + COUNT( * ) FROM tab2 WHERE - 90 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - 90 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - MAX( col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - MAX ( col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7937
SELECT - 69, + MAX( DISTINCT - - ( - ( col0 ) ) ) + + + 73 AS col2 FROM tab2
----
-69
27

skipif mysql # not compatible
query II rowsort label-7937
SELECT - 69, + MAX ( DISTINCT - - ( - ( col0 ) ) ) + + + 73 AS col2 FROM tab2
----
-69
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL MAX( - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL MAX ( - + col0 ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( 59 ) AS col0 FROM tab0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 52 * - ( + col2 ) - - 88 NOT BETWEEN NULL AND - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ( + 1 ) * - SUM( + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7942
SELECT ( + 1 ) * - SUM ( + col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT - COUNT( ALL 64 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7943
SELECT - COUNT ( ALL 64 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * 16 BETWEEN 18 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 * col1 col0 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 NOT BETWEEN - col2 + + 43 AND NULL
----

query II rowsort
SELECT - col2 AS col1, - 12 FROM tab1 AS cor0
----
-59
-12
-68
-12
-96
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + + col2, col1 * 99 col0 FROM tab1 AS cor0
----
118
495
136
4653
192
1386

query I rowsort
SELECT col1 * - col0 + - col2 FROM tab1
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT - 82 + - - MAX( - col0 ) FROM tab2
----
-128

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - 82 + - - MAX ( - col0 ) FROM tab2
----
-128

onlyif mysql # DIV for integer division: 
query II rowsort label-7951
SELECT ALL 30 DIV - + col2 * + - col1 - col2 + 50 AS col1, col1 AS col1 FROM tab1
----
-18
47
-46
14
-9
5

skipif mysql # not compatible
query II rowsort label-7951
SELECT ALL 30 / - + col2 * + - col1 - col2 + 50 AS col1, col1 AS col1 FROM tab1
----
-18
47
-46
14
-9
5

query I rowsort
SELECT 54 + - - col1 + + - col2 FROM tab1
----
-28
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT COUNT( ALL + + 71 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT COUNT ( ALL + + 71 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 - + ( col0 ) FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7955
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AND + 6
----

skipif mysql # not compatible
query IIIIII rowsort label-7955
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AND + 6
----

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT - + col1 DIV - ( 33 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7957
SELECT - + col1 / - ( 33 ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + 19 * + col2 - col1 FROM tab0 cor0
----
-1882
-211
-974

query I rowsort
SELECT + col1 - 97 * + + 81 AS col0 FROM tab2
----
-7780
-7790
-7806

query I rowsort
SELECT ALL - col1 + - 54 AS col2 FROM tab0
----
-135
-55
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL ( + SUM( - + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL ( + SUM ( - + col1 ) ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT + SUM( - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + SUM ( - - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT - col1 * col2 * col2 AS col0 FROM tab1 cor0
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT - col0 * col1 + - ( - 56 ) * + + col0 FROM tab1 cor0
----
2142
4335
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT + - 88 * + col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 43 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT - - COUNT( * ) AS col1, - 49 FROM tab2 AS cor0 WHERE NOT ( NOT - - 43 >= + + 76 )
----
0
-49

skipif mysql # not compatible
query II rowsort label-7969
SELECT - - COUNT ( * ) AS col1, - 49 FROM tab2 AS cor0 WHERE NOT ( NOT - - 43 >= + + 76 )
----
0
-49

query I rowsort
SELECT ALL col0 * + 56 * - col1 AS col0 FROM tab0 AS cor0
----
-102312
-5432
-68040

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT - MAX( + col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7971
SELECT - MAX ( + col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT + col1 DIV - 33 col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7972
SELECT + col1 / - 33 col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT DISTINCT + col2 DIV 57 * col1 AS col0 FROM tab2 AS cor0
----
0
67

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + col2 / 57 * col1 AS col0 FROM tab2 AS cor0
----
0
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7974
SELECT - - 19 * 90 / + - COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT - - 19 * 90 / + - COUNT ( * ) + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT - col0 DIV 36 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - col0 / 36 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT + + COUNT( * ) + - + 86 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
-86

skipif mysql # not compatible
query I rowsort label-7977
SELECT + + COUNT ( * ) + - + 86 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT ALL + col0 DIV + col2 + col2 + - col2 col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT ALL + col0 / + col2 + col2 + - col2 col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + - col1 * - + ( 53 ) * - col2 * + 34 + - col1 FROM tab1 AS cor0
----
-2421902
-531595
-5759239

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT ( + col0 ) BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7981
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7981
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 33 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7984
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - - 16 * 95 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - - 16 * 95 >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL - - CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 77 + - 0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + 45 + + + 37 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT - 49 + 5 FROM tab1 AS cor0
----
-44
-44
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 56 ) FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ALL - ( + ( + + col2 ) ) * col1 + + 98 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1080
-2995
-3780

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * col0 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL 84 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL 84 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL SUM( ALL - + 84 ) AS col1 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL SUM ( ALL - + 84 ) AS col1 FROM tab2
----
-252

query I rowsort
SELECT 95 + + - 62 - + 32 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - col0 col1, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT ALL + - 58 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL - - 26 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - ( - 32 ) ) col2 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT - 85 * - - 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-8330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * + col0 * col0 col1 FROM tab1
----
-202878
-563550
-645918

query III rowsort
SELECT * FROM tab2 WHERE NOT 49 <= + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT + 60 * col2 DIV - col2 - + col1 FROM tab2 AS cor0
----
-111
-127
-137

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + 60 * col2 / - col2 - + col1 FROM tab2 AS cor0
----
-111
-127
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8005
SELECT - col2 * col2 col1, ( - CAST( + - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8005
SELECT - col2 * col2 col1, ( - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT + MAX( DISTINCT 58 ) * - COUNT( col1 ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT + MAX ( DISTINCT 58 ) * - COUNT ( col1 ) FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT - 97 AS col0, + 78 * + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-97
0

skipif mysql # not compatible
query II rowsort label-8007
SELECT - 97 AS col0, + 78 * + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-97
0

query I rowsort
SELECT ALL + ( - + col2 ) * + 29 FROM tab2 AS cor0
----
-1160
-1682
-667

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8009
SELECT ALL - CAST( + col2 AS SIGNED ) AS col1, col2 AS col0 FROM tab0 cor0
----
-10
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-8009
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col1, col2 AS col0 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - col1 * - col2 + - + 73 + + + col2 + + + ( col1 ) * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-26
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - + MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8011
SELECT - + MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8012
SELECT col1 * - - CAST( NULL AS SIGNED ) * - col2 AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8012
SELECT col1 * - - CAST ( NULL AS INTEGER ) * - col2 AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8013
SELECT ALL + AVG ( col0 ) * CAST( MIN( + + col2 ) AS SIGNED ) - + COUNT( * ) / 73 AS col1, + 99 * - 56 AS col1 FROM tab2 WHERE NOT NULL > NULL
----
NULL
-5544

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL + AVG ( col0 ) * CAST ( MIN ( + + col2 ) AS INTEGER ) - + COUNT ( * ) / 73 AS col1, + 99 * - 56 AS col1 FROM tab2 WHERE NOT NULL > NULL
----
NULL
-5544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, col2 * - col1 col0 FROM tab1
----
-14
-1344
-47
-3196
-5
-295

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 + + 69 NOT IN ( col0 + + 52 )
----

query II rowsort
SELECT col2 AS col0, - col2 AS col0 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL <> 99
----
0

skipif mysql # not compatible
query I rowsort label-8017
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL <> 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - MIN( DISTINCT - + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - MIN ( DISTINCT - + col1 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT ALL - 32 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - 32 / col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 75 * col2 AS col1 FROM tab0
----
3525
7425
750

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 27 < NULL )
----

query I rowsort
SELECT - 82 + col0 FROM tab0 AS cor0
----
-67
15
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) + - - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 * - + col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col0 * + + 93 AS col0 FROM tab0
----
1395
8091
9021

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 85 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + 84 + + - 27 AS col0 FROM tab0 AS cor0
----
-42
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + + 89 + + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + + 89 + + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT col0 * + 81 + col1 FROM tab2 AS cor0
----
3777
5261
6142

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 80 + + col1 FROM tab1
----
-33
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT 13 + + 84 FROM tab2
----
97
97
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8035
SELECT ALL + col1 DIV + col0 - + 20 col0, - col0 + col0 FROM tab0
----
-15
0
-20
0
-20
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8035
SELECT ALL + col1 / + col0 - + 20 col0, - col0 + col0 FROM tab0
----
-15
0
-20
0
-20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL MIN( DISTINCT + ( + col2 ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL MIN ( DISTINCT + ( + col2 ) ) AS col0 FROM tab2
----
23

query I rowsort
SELECT + 74 + + - ( col0 ) * - 43 AS col2 FROM tab2
----
2052
2826
3299

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT + ( - 38 ) - + COUNT( * ) + + 28 + - 54 + - + 66 AS col1 FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT + ( - 38 ) - + COUNT ( * ) + + 28 + - 54 + - + 66 AS col1 FROM tab1
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8039
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - ( - - col1 ) + + - col0 NOT IN ( - col0, col2 )
----

skipif mysql # not compatible
query III rowsort label-8039
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - ( - - col1 ) + + - col0 NOT IN ( - col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8040
SELECT CAST( NULL AS SIGNED ) AS col0, 33 FROM tab0 WHERE NULL IS NULL
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
query II rowsort label-8040
SELECT CAST ( NULL AS INTEGER ) AS col0, 33 FROM tab0 WHERE NULL IS NULL
----
NULL
33
NULL
33
NULL
33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT - AVG ( + 89 ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col0 + - 20, 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - AVG ( + 89 ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0 + - 20, 59 )
----
NULL

query I rowsort
SELECT ALL 38 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
38
38
38

query I rowsort
SELECT - col0 * 15 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - SUM( + + 62 ) AS col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8045
SELECT - SUM ( + + 62 ) AS col2 FROM tab2 AS cor0
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT - col2 + + - CAST( col2 AS SIGNED ) + + 85 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT - col2 + + - CAST ( col2 AS INTEGER ) + + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT ALL + COUNT( * ), 32 + 89 * MAX( - + col1 ) AS col1 FROM tab2
----
3
-4507

skipif mysql # not compatible
query II rowsort label-8047
SELECT ALL + COUNT ( * ), 32 + 89 * MAX ( - + col1 ) AS col1 FROM tab2
----
3
-4507

query I rowsort
SELECT + - 87 FROM tab1 WHERE NOT + col1 >= col2
----
-87
-87
-87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT ( NULL IS NOT NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, 31 AS col1 FROM tab2
----
51
31
67
31
77
31

query I rowsort
SELECT DISTINCT + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8052
SELECT ALL - 90 AS col1, COUNT( * ) DIV + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-90
-2

skipif mysql # not compatible
query II rowsort label-8052
SELECT ALL - 90 AS col1, COUNT ( * ) / + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-90
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT + COUNT( DISTINCT + - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + 13 * col2, + 1, + - 67 + + col1 + col0 * 22 * + col1, + 86, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + 13 * col2, + 1, + - 67 + + col1 + col0 * 22 * + col1, + 86, col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT + COUNT( + 82 ), 97 AS col1 FROM tab0 cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-8054
SELECT + COUNT ( + 82 ), 97 AS col1 FROM tab0 cor0
----
3
97

query I rowsort
SELECT - ( - 22 ) AS col2 FROM tab2 cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT - col1 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT - col1 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 52 * - col0, col0 + + col2 AS col0 FROM tab0 AS cor0
----
4524
97
5044
196
780
62

query I rowsort
SELECT + 95 * + 50 FROM tab1 AS cor0
----
4750
4750
4750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 40 - - 54 + 14 col1 FROM tab1 cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-8061
SELECT ALL - 78 DIV 45, col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL - 78 / 45, col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8062
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / + + col0 + col0 <> - - 79
----

skipif mysql # not compatible
query III rowsort label-8062
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + + col0 + col0 <> - - 79
----

query I rowsort
SELECT - 33 + 65 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8064
SELECT - + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8065
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> + + CAST( - col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8065
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> + + CAST ( - col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8066
SELECT * FROM tab1 AS cor0 WHERE NULL < - CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8066
SELECT * FROM tab1 AS cor0 WHERE NULL < - CAST ( - + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8067
SELECT 50, col0 FROM tab2 WHERE NULL NOT IN ( - - CAST( NULL AS DECIMAL ) / col2 * - 42 * + 46 + + col2 + - ( col1 ), col0 )
----

skipif mysql # not compatible
query II rowsort label-8067
SELECT 50, col0 FROM tab2 WHERE NULL NOT IN ( - - CAST ( NULL AS REAL ) / col2 * - 42 * + 46 + + col2 + - ( col1 ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT ( + col1 ) * - col0 + - + CAST( - col1 AS SIGNED ) FROM tab2
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-8068
SELECT ( + col1 ) * - col0 + - + CAST ( - col1 AS INTEGER ) FROM tab2
----
-2295
-4851
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + - + 88 col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT - COUNT( 27 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8070
SELECT - COUNT ( 27 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 * - - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - + MIN( ALL - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8072
SELECT - + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT ALL CAST( - + AVG ( - 54 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL CAST ( - + AVG ( - 54 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
54

query I rowsort
SELECT DISTINCT - - col0 + 3 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL - + 17 + + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - + 17 + + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 69 + col2, - 99, + - 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT + col2 / + - 97 + col2 + - CAST( NULL AS SIGNED ) + + 37 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT + col2 / + - 97 + col2 + - CAST ( NULL AS INTEGER ) + + 37 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - 46
----

query I rowsort
SELECT ALL col2 + col1 * + col0 + + 87 * + col1 FROM tab0 AS cor0
----
283
3664
8309

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - col1 BETWEEN - + col1 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8081
SELECT * FROM tab2 WHERE + - 83 * - 56 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8081
SELECT * FROM tab2 WHERE + - 83 * - 56 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT DISTINCT - + col1 DIV + 47 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - + col1 / + 47 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8083
SELECT * FROM tab1 WHERE NOT + col1 + 21 >= - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8083
SELECT * FROM tab1 WHERE NOT + col1 + 21 >= - CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 74 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( - + 7 ) * + col1 AS col0 FROM tab0
----
-147
-567
-7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 75 <= - col0
----
3

skipif mysql # not compatible
query I rowsort label-8089
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 75 <= - col0
----
3

query I rowsort
SELECT DISTINCT + 97 * + 2 * + col0 * + + col2 FROM tab0 cor0
----
136770
168780
1862982

query I rowsort
SELECT DISTINCT 35 + 85 FROM tab2 AS cor0
----
120

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8092
SELECT 2 AS col0, - CAST( NULL AS DECIMAL ) * 77 FROM tab0
----
2
NULL
2
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-8092
SELECT 2 AS col0, - CAST ( NULL AS REAL ) * 77 FROM tab0
----
2
NULL
2
NULL
2
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 52 AS col2 FROM tab1
----
14
52
47
52
5
52

query I rowsort
SELECT ALL - 44 + col1 AS col1 FROM tab1
----
-30
-39
3

query I rowsort
SELECT ALL col0 * - 22 AS col0 FROM tab0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8096
SELECT col1 * - + CAST( NULL AS SIGNED ) AS col1, col2 * 17 FROM tab0
----
NULL
1683
NULL
170
NULL
799

skipif mysql # not compatible
query II rowsort label-8096
SELECT col1 * - + CAST ( NULL AS INTEGER ) AS col1, col2 * 17 FROM tab0
----
NULL
1683
NULL
170
NULL
799

query I rowsort
SELECT DISTINCT + 11 * + col0 FROM tab1
----
1001
561
935

query I rowsort
SELECT - col1 * col1 + + col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT ALL ( + + col2 ) * - col0 + + 89 FROM tab0
----
-616
-781
-9514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - + + col1 > - col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL = NULL )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 73 * col2
----

query I rowsort
SELECT 3 * - col0 + - 68 * + col1 FROM tab2 AS cor0
----
-3606
-4781
-5428

query I rowsort
SELECT 55 + + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-26
34
54

query I rowsort
SELECT + col2 + - + 32 * - col0 FROM tab0 AS cor0
----
2794
3203
527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col0 col0 FROM tab2
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 53 > - col0
----
87
21
10
97
1
99

query II rowsort
SELECT col2, 96 AS col0 FROM tab1
----
59
96
68
96
96
96

query II rowsort
SELECT - - col2 AS col2, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8115
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 >= - CAST( NULL AS SIGNED ) - + - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-8115
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 >= - CAST ( NULL AS INTEGER ) - + - ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ( + col1 ) DIV - + col2 * + + col1 + - - col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8116
SELECT ( + col1 ) / - + col2 * + + col1 + - - col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL + ( - - COUNT( 6 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8117
SELECT ALL + ( - - COUNT ( 6 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT + ( - 37 ) DIV 55 DIV - - col2 + + - col2 col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8118
SELECT + ( - 37 ) / 55 / - - col2 + + - col2 col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - + 47 AS col0 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - ( + col2 ) + - + col1 * + - col0 AS col1 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL + MAX( ALL + col1 ) * ( - - 9 ) + + COUNT( * ) * - - COUNT( * ) col2 FROM tab2 AS cor0
----
702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8121
SELECT ALL + MAX ( ALL + col1 ) * ( - - 9 ) + + COUNT ( * ) * - - COUNT ( * ) col2 FROM tab2 AS cor0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - COUNT( * ) + + ( + 53 ) AS col2 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8122
SELECT - COUNT ( * ) + + ( + 53 ) AS col2 FROM tab0 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8123
SELECT * FROM tab0 WHERE ( NOT NULL BETWEEN - col2 * CAST( NULL AS SIGNED ) + - col0 AND + + col2 + - 86 )
----

skipif mysql # not compatible
query III rowsort label-8123
SELECT * FROM tab0 WHERE ( NOT NULL BETWEEN - col2 * CAST ( NULL AS INTEGER ) + - col0 AND + + col2 + - 86 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8124
SELECT - SUM( ALL + col1 ) DIV - SUM( - - col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8124
SELECT - SUM ( ALL + col1 ) / - SUM ( - - col1 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col1 + + 41 FROM tab0 AS cor0
----
-40
20
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 38 + col1 + - + col1 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT - - 25 DIV + - col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8128
SELECT - - 25 / + - col1 col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( + col0 + - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 72 / + ( - col0 ) + col0 BETWEEN NULL AND - + 87
----

query I rowsort
SELECT ALL col0 * col1 + - 91 AS col2 FROM tab0 AS cor0
----
1124
1736
6

query I rowsort
SELECT - + 6 - 29 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 <> NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - - col0 - - 31 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8134
SELECT DISTINCT 64 DIV col0 AS col0, col0 * + col0 FROM tab2
----
0
5625
1
2116
1
4096

skipif mysql # not compatible
query II rowsort label-8134
SELECT DISTINCT 64 / col0 AS col0, col0 * + col0 FROM tab2
----
0
5625
1
2116
1
4096

query I rowsort
SELECT - 83 * - + col2 AS col0 FROM tab0
----
3901
8217
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 82 ) col2 FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT + MAX( ALL - 33 ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT + MAX ( ALL - 33 ) FROM tab0 cor0
----
-33

query I rowsort
SELECT - col2 * + 99 * 38 AS col0 FROM tab1
----
-221958
-255816
-361152

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT SUM( - - 85 ) col2 FROM tab0
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT SUM ( - - 85 ) col2 FROM tab0
----
255

query I rowsort
SELECT - - 52 * + ( + - col2 ) + - + col2 * - - 79 + 87 * col0 FROM tab2 AS cor0
----
-1073
328
989

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - - col1 * + + 20 * - - col1 * col1 AND - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT - 8 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT - 8 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + + ( col0 ) * 74 * + col0 / - - ( + 39 ) * + col0 + - + col2 AS col1 FROM tab2 AS cor0 WHERE - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT COUNT( DISTINCT 30 ) AS col1 FROM tab1 WHERE 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT COUNT ( DISTINCT 30 ) AS col1 FROM tab1 WHERE 87 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 + + col0 col2 FROM tab0
----
109
119
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL - 15 + COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - 15 + COUNT ( * ) FROM tab0
----
-12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 NOT IN ( - col1, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8148
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - CAST( + col1 AS DECIMAL ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8148
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - CAST ( + col1 AS REAL ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 93 AS col1 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT DISTINCT + + col2 + + col2 * col0 * 41 FROM tab1 AS cor0
----
200832
205674
253776

query I rowsort
SELECT DISTINCT + - col1 + - col2 + + 15 AS col2 FROM tab0 AS cor0
----
-113
-16
-85

query II rowsort
SELECT + 80, col2 - + + col2 + ( col0 ) * - 42 AS col0 FROM tab0
----
80
-3654
80
-4074
80
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col1 FROM tab1
----
110
115
64

query I rowsort
SELECT - ( + + 55 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT DISTINCT COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) - + + 14 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) - + + 14 AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT + 10 DIV + ( col0 ) * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8157
SELECT + 10 / + ( col0 ) * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL - - ( COUNT( * ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT - CAST( NULL AS SIGNED ) * ( - SUM( ALL col0 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT - CAST ( NULL AS INTEGER ) * ( - SUM ( ALL col0 ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8160
SELECT DISTINCT - CAST( NULL AS SIGNED ), 3 AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8160
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 3 AS col1 FROM tab1 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + + col0 ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT - + 25 DIV - col2 + - 50 * - 61 AS col1 FROM tab0 cor0
----
3050
3050
3052

skipif mysql # not compatible
query I rowsort label-8162
SELECT - + 25 / - col2 + - 50 * - 61 AS col1 FROM tab0 cor0
----
3050
3050
3052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 67 AS col0 FROM tab2
----
-46
67
-64
67
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + ( - AVG ( ALL + col0 ) ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT + ( - AVG ( ALL + col0 ) ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 36 * - col0 AS col2 FROM tab0
----
-3132
-3492
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 83 * + + 70 FROM tab2
----
-23
5810
-40
5810
-58
5810

query I rowsort
SELECT DISTINCT col0 * + + 97 * col2 AS col1 FROM tab0
----
68385
84390
931491

query I rowsort
SELECT DISTINCT 80 * col2 FROM tab0
----
3760
7920
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * - col0 col2 FROM tab0
----
-4089
-4559
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT + 94 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + 94 / - col2 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - 46 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8171
SELECT - 46 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-138

query I rowsort
SELECT ALL col2 * col0 * - + col0 AS col2 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 74 > - 3
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT + COUNT( DISTINCT + col0 ) DIV 91 * + 99 - - 38 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) / 91 * + 99 - - 38 FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT COUNT( * ) + + - COUNT( DISTINCT + ( + - col2 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT COUNT ( * ) + + - COUNT ( DISTINCT + ( + - col2 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 * - col2 + + col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8177
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) / + 14 - - col2 IN ( - col2, + 69 * + col2, + + CAST( + 69 AS SIGNED ) + ( + + 54 ) )
----

skipif mysql # not compatible
query III rowsort label-8177
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS REAL ) / + 14 - - col2 IN ( - col2, + 69 * + col2, + + CAST ( + 69 AS INTEGER ) + ( + + 54 ) )
----

query I rowsort
SELECT DISTINCT - + col0 + 77 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
4458
5145
7341

query II rowsort
SELECT + col0, col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL - AVG ( - 0 ) + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - AVG ( - 0 ) + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 29 AS col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + - ( + col2 ) + + col1 * + - col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + - ( + col2 ) + + col1 * + - col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 * - 86 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col0 + 61 + + ( - + 20 ) AS col2 FROM tab2 AS cor0
----
-23
-34
-5

query I rowsort
SELECT DISTINCT 99 + - col1 + + - col2 FROM tab2
----
-18
-26
25

query II rowsort
SELECT DISTINCT ( - col2 ) * 8 * - 64, - col0 AS col0 FROM tab1
----
30208
-85
34816
-91
49152
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL - ( - ( - + 49 ) ) * col1 DIV + col0 + 33 + col0 DIV - 87 FROM tab2
----
-10
-21
-25

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - ( - ( - + 49 ) ) * col1 / + col0 + 33 + col0 / - 87 FROM tab2
----
-10
-21
-25

query I rowsort
SELECT DISTINCT - 49 + + + col1 FROM tab1
----
-2
-35
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ALL + 56 - + col2 DIV + col1 - + - col0 FROM tab0
----
143
54
71

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + 56 - + col2 / + col1 - + - col0 FROM tab0
----
143
54
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT + - COUNT( DISTINCT + col0 ) FROM tab1 WHERE NOT ( + + 75 / + - col1 ) IN ( - col1, col2, 1, + ( - - col1 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT + - COUNT ( DISTINCT + col0 ) FROM tab1 WHERE NOT ( + + 75 / + - col1 ) IN ( - col1, col2, 1, + ( - - col1 ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT col2 - - col0 + + 63 DIV + col1 + + col2 FROM tab0
----
109
110
358

skipif mysql # not compatible
query I rowsort label-8191
SELECT col2 - - col0 + + 63 / + col1 + + col2 FROM tab0
----
109
110
358

query I rowsort
SELECT - 51 - 26 AS col2 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT col1 + + - 64 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col2 + + - col0 FROM tab1 AS cor0 WHERE 54 IS NOT NULL
----
-144
-147
-159

query I rowsort
SELECT - + 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + ( + 95 ) AS col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - 69 * - - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL + CAST( + ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + CAST ( + ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - 48 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - ( + - 23 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT + CAST( - col0 AS SIGNED ) / + + 7 AS col2 FROM tab0 WHERE NOT col0 <> + + 34 * + col0
----

skipif mysql # not compatible
query I rowsort label-8203
SELECT + CAST ( - col0 AS INTEGER ) / + + 7 AS col2 FROM tab0 WHERE NOT col0 <> + + 34 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT col2 DIV + + col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8204
SELECT col2 / + + col2 FROM tab2
----
1
1
1

query II rowsort
SELECT col0 * 67 * - 22 AS col1, - col0 * - 1 AS col2 FROM tab0
----
-128238
87
-142978
97
-22110
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 WHERE NOT + ( - - col2 ) IS NULL
----
15
87
97

query II rowsort
SELECT 87 AS col2, - col2 * + 49 + col0 * col1 FROM tab2
----
87
1219
87
2183
87
2968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8208
SELECT - 21 * + + COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 + 8 IN ( + CAST( NULL AS SIGNED ), + 51 / col0, + col2 * - + CAST( NULL AS DECIMAL ) + + col0, col2, + + ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8208
SELECT - 21 * + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 + 8 IN ( + CAST ( NULL AS INTEGER ), + 51 / col0, + col2 * - + CAST ( NULL AS REAL ) + + col0, col2, + + ( + col0 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8210
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 61 col0 FROM tab1
----
3111
5185
5551

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 + + col1, + col1, + + col1 * + col1 + - 27, + + col1 * + - 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT - + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + + 27 * col2 AS col2 FROM tab2 AS cor0
----
1080
1566
621

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT DISTINCT - ( + 69 ) DIV + col1 - + 17 AS col0 FROM tab2 cor0
----
-17
-18

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT - ( + 69 ) / + col1 - + 17 AS col0 FROM tab2 cor0
----
-17
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT + COUNT( * ) * + 79 DIV - + 1 AS col2 FROM tab2 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( * ) * + 79 / - + 1 AS col2 FROM tab2 cor0
----
-237

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT ALL + SUM( ALL - col1 ) + 43 + - - 67 AS col2, + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8217
SELECT ALL + SUM ( ALL - col1 ) + 43 + - - 67 AS col2, + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL
0

query I rowsort
SELECT DISTINCT - + col0 + 98 AS col1 FROM tab0 AS cor0
----
1
11
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT 96 + - col2 DIV + - col1 FROM tab0
----
195
96
96

skipif mysql # not compatible
query I rowsort label-8219
SELECT 96 + - col2 / + - col1 FROM tab0
----
195
96
96

query I rowsort
SELECT - 0 + + col1 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 1 + + - col0 FROM tab0 AS cor0
----
-14
-86
-96

query II rowsort
SELECT col1, - 94 FROM tab2
----
51
-94
67
-94
77
-94

query II rowsort
SELECT DISTINCT col2 AS col2, 16 * + col2 FROM tab0
----
10
160
47
752
99
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT MIN( + + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT MIN ( + + col0 ) AS col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, + col1 * - + 95 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-95
-21
-1995
-81
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT - + ( COUNT( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8226
SELECT DISTINCT - + ( COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 77 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + ( + - 96 ) * + - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + ( + - 96 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
288

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - col1 NOT BETWEEN NULL AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab0 AS cor0
----
-93
-93
-93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= + 55
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= 23 + 3 / + + col2
----
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT + AVG ( CAST( NULL AS SIGNED ) ) * + MAX( - - 0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) * + MAX ( - - 0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT - + COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 NOT IN ( + col2 * + 89 + - 40, col2, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 NOT IN ( + col2 * + 89 + - 40, col2, col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8235
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1, - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
9
-3

skipif mysql # not compatible
query II rowsort label-8235
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1, - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
9
-3

query II rowsort
SELECT DISTINCT ( col1 ) AS col1, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT ALL 69 * + - 10 AS col0, - COUNT( * ) AS col2 FROM tab0
----
-690
-3

skipif mysql # not compatible
query II rowsort label-8238
SELECT ALL 69 * + - 10 AS col0, - COUNT ( * ) AS col2 FROM tab0
----
-690
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 - + col0 * 10 * + col2 = NULL OR NOT + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 56 + + col2 FROM tab1 AS cor0
----
115
124
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL - CAST( + - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - CAST ( + - col0 AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - - COUNT( * ) col0 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-8242
SELECT - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196
62
97

query I rowsort
SELECT + - 35 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
-1554
-439
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT col1 DIV 15 + - 55 - 21 AS col2 FROM tab1 AS cor0
----
-73
-76
-76

skipif mysql # not compatible
query I rowsort label-8245
SELECT col1 / 15 + - 55 - 21 AS col2 FROM tab1 AS cor0
----
-73
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + 46 * + COUNT( * ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8246
SELECT + 46 * + COUNT ( * ) FROM tab0 AS cor0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT - COUNT( * ) + + CAST( - - COUNT( * ) AS SIGNED ) + - - ( - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - COUNT ( * ) + + CAST ( - - COUNT ( * ) AS INTEGER ) + - - ( - 45 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL + + col1 * + 6 * + 39 * - 55 + col0 FROM tab2 AS cor0
----
-656324
-862215
-990926

query I rowsort
SELECT - col1 - 77 FROM tab2
----
-128
-144
-154

query III rowsort
SELECT * FROM tab1 WHERE - col2 + ( - col0 ) + 59 - + - col0 IS NULL
----

query I rowsort
SELECT ALL + col2 - - - 37 * + 0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col2 col2 FROM tab1
----
118
136
192

query I rowsort
SELECT col1 * - col2 - + 85 AS col0 FROM tab2
----
-1258
-3165
-3971

query I rowsort
SELECT DISTINCT - col0 * - 89 FROM tab0
----
1335
7743
8633

query I rowsort
SELECT + + 76 + - 90 AS col2 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT - col0 * col2 FROM tab2 AS cor0 WHERE NULL <= + ( + col2 )
----

query I rowsort
SELECT - col0 * + 26 AS col0 FROM tab2 AS cor0
----
-1196
-1664
-1950

query I rowsort
SELECT ALL + + 2 AS col0 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT 90 * - 90 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-8103

skipif mysql # not compatible
query I rowsort label-8260
SELECT 90 * - 90 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-8103

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL - - ( MIN( + 19 ) ) col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8261
SELECT ALL - - ( MIN ( + 19 ) ) col0 FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT ALL 46 DIV + SUM( + + col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL 46 / + SUM ( + + col0 ) AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8263
SELECT DISTINCT + col2 DIV + col1 AS col0, col2 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
20
0
94
99
198

skipif mysql # not compatible
query II rowsort label-8263
SELECT DISTINCT + col2 / + col1 AS col0, col2 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
20
0
94
99
198

query I rowsort
SELECT - 98 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL MAX( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 col1, - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - COUNT ( DISTINCT col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 79 + col0 AS col1 FROM tab1
----
130
164
170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8269
SELECT ALL col0 AS col1, + CAST( + col2 AS SIGNED ) FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-8269
SELECT ALL col0 AS col1, + CAST ( + col2 AS INTEGER ) FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ( col0 ) * - - col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - MIN( ALL - + col0 ) * - - 93 AS col0 FROM tab0
----
9021

skipif mysql # not compatible
query I rowsort label-8272
SELECT - MIN ( ALL - + col0 ) * - - 93 AS col0 FROM tab0
----
9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 46 + - 49 + 73 col0 FROM tab2 AS cor0
----
-2092
-2920
-3426

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - - COUNT( * ) + + 72 - - 1 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - - COUNT ( * ) + + 72 - - 1 FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL col0 + + - 72 - - col1 AS col2 FROM tab2 AS cor0
----
25
69
70

query III rowsort
SELECT * FROM tab2 WHERE 62 IS NULL
----

query I rowsort
SELECT ALL ( 45 ) * 86 FROM tab1
----
3870
3870
3870

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT ALL 14 DIV - col1 AS col2 FROM tab0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL 14 / - col1 AS col2 FROM tab0
----
-14
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT - CAST( CAST( - MAX( DISTINCT col2 ) AS SIGNED ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8279
SELECT - CAST ( CAST ( - MAX ( DISTINCT col2 ) AS INTEGER ) AS INTEGER ) FROM tab1
----
96

query I rowsort
SELECT 3 * + col2 AS col0 FROM tab1 WHERE - 41 + col0 NOT IN ( - col2 + + 25 )
----
177
204
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8281
SELECT ALL + 9 DIV - COUNT( - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + 9 / - COUNT ( - col2 ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + col0 * + col2 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + MAX( ALL 8 ) + - 96 col2 FROM tab1
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT + MAX ( ALL 8 ) + - 96 col2 FROM tab1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT + 3 * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT + 3 * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8285
SELECT * FROM tab0 WHERE NOT ( CAST( - 50 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8285
SELECT * FROM tab0 WHERE NOT ( CAST ( - 50 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + 69 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT 60 * SUM( + 81 ) col0 FROM tab2
----
14580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8287
SELECT 60 * SUM ( + 81 ) col0 FROM tab2
----
14580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT 98 * + COUNT( * ) AS col1 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-8289
SELECT 98 * + COUNT ( * ) AS col1 FROM tab0
----
294

query I rowsort
SELECT DISTINCT col1 * - col1 + 11 AS col1 FROM tab2
----
-2590
-4478
-5918

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL - 37 + + COUNT( DISTINCT col1 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - 37 + + COUNT ( DISTINCT col1 ) FROM tab1
----
-34

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 17 col0 FROM tab0
----
1683
170
799

query III rowsort
SELECT * FROM tab0 WHERE col2 / + 67 >= 66 + - col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL - 29 * + COUNT( * ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - 29 * + COUNT ( * ) FROM tab0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT ALL + MAX( DISTINCT - col1 ) DIV 36 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + MAX ( DISTINCT - col1 ) / 36 AS col1 FROM tab2
----
-1

query I rowsort
SELECT + col2 + 78 FROM tab2
----
101
118
136

query I rowsort
SELECT + 25 + col1 FROM tab0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + MAX( - col0 ) + MAX( ALL col2 ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8299
SELECT + MAX ( - col0 ) + MAX ( ALL col2 ) AS col0 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - 14 + - MIN( ALL - col1 ) col0 FROM tab0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8300
SELECT - 14 + - MIN ( ALL - col1 ) col0 FROM tab0
----
67

query I rowsort
SELECT DISTINCT col2 + + 88 FROM tab0 WHERE NOT ( col1 ) > col0 + + col0 * - 0
----
187
98

query I rowsort
SELECT ALL col2 + + 30 * col1 AS col1 FROM tab0 WHERE NOT - col1 * 49 IS NULL
----
129
2477
640

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 6 + col0 ) < ( 27 + col2 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 36 ) AS col2 FROM tab2 AS cor0 WHERE ( col0 ) > ( - 47 )
----
36

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 - 2 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8306
SELECT - CAST( col1 AS SIGNED ) DIV 52 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT - CAST ( col1 AS INTEGER ) / 52 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8307
SELECT + COUNT( * ) DIV + COUNT( * ) col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8307
SELECT + COUNT ( * ) / + COUNT ( * ) col1 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT + 22 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
22

query I rowsort
SELECT ALL + col2 * - 26 FROM tab0 cor0
----
-1222
-2574
-260

query I rowsort
SELECT 39 * 6 FROM tab0 AS cor0 WHERE NOT ( + col1 ) > - col0 * + col1
----

query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col0 + - ( col1 ) ) AND + col2 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT - col1 DIV - 74 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - col1 / - 74 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 * + 25 + + 32 * + col2 col2 FROM tab1 AS cor0
----
2163
2451
3347

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE + col0 IN ( + 98 / + col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + + SUM( ALL col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + + SUM ( ALL col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8317
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + + COUNT( col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8318
SELECT + + COUNT ( col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT + - COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8319
SELECT + - COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 NOT IN ( - 94 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT col1 * - - ( col2 ) * col2 AS col0 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col0 = + col2 * col2
----

query I rowsort
SELECT ALL + 19 AS col0 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - MAX( 51 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND 16 * ( 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT - MAX ( 51 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND 16 * ( 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL COUNT( * ) * 3 FROM tab0 WHERE + 59 * - 54 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL COUNT ( * ) * 3 FROM tab0 WHERE + 59 * - 54 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 78 ) <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8329
SELECT + - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + - 41 * - - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-8330
SELECT + - 41 * - - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-369

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT MIN( - + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8332
SELECT MIN ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 * col1 + 3 / col1 < ( + ( + col0 ) )
----

query I rowsort
SELECT - - col1 * - - 92 + 22 AS col1 FROM tab2 AS cor0
----
4714
6186
7106

query I rowsort
SELECT DISTINCT - ( + 94 ) AS col0 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - SUM( - 1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8336
SELECT - SUM ( - 1 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + - col2 * + 35 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT DISTINCT + 27 * + col1 FROM tab0 AS cor0
----
2187
27
567

query I rowsort
SELECT 48 * + col0 FROM tab1 AS cor0 WHERE - 13 * + ( - 9 ) IS NOT NULL
----
2448
4080
4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT + col1 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT + col1 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 + + + 37 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT - - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 BETWEEN NULL AND ( 81 + + col0 )
----

query I rowsort
SELECT DISTINCT + - col0 + - ( - + col2 ) + col0 * 93 * + 46 AS col2 FROM tab1 AS cor0
----
218223
363604
389275

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT MAX( ALL + - col0 ) - + + COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT MAX ( ALL + - col0 ) - + + COUNT ( * ) FROM tab0
----
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IS NOT NULL AND NOT NULL BETWEEN + ( - ( ( col0 ) ) ) AND - 36 / 50
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 + - - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT COUNT( * ) FROM tab1 WHERE NOT + ( + - CAST( + 0 AS SIGNED ) ) * + 54 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT COUNT ( * ) FROM tab1 WHERE NOT + ( + - CAST ( + 0 AS INTEGER ) ) * + 54 <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - - col2 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + 12 * - col0 FROM tab1 WHERE NOT - col1 = + 88 * - 32
----
-1024
-516
-961

query I rowsort
SELECT DISTINCT 79 * 44 AS col2 FROM tab0
----
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT - ( + COUNT( + + col0 ) ) * + - MIN( col2 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8352
SELECT - ( + COUNT ( + + col0 ) ) * + - MIN ( col2 ) AS col2 FROM tab2
----
69

query I rowsort
SELECT ALL col2 * + 95 FROM tab0
----
4465
9405
950

query I rowsort
SELECT - - 87 AS col1 FROM tab0 AS cor0 WHERE NOT - 32 * - + 68 IS NULL
----
87
87
87

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - ( + col1 ) * 28 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 43 + + col1 / - 23 + - 57 ) <= ( - col1 + col0 * - col1 )
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + - MIN( - 18 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8357
SELECT + - MIN ( - 18 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT - 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT - - 0 * - - 85 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT - 47 * + 6 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - + col0 * - ( + ( - col1 ) ) + 13 * col2 FROM tab1 AS cor0
----
-3393
342
534

query I rowsort
SELECT ALL - + ( - - 15 ) AS col2 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT DISTINCT 16 DIV + 48 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT 16 / + 48 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 81 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

query I rowsort
SELECT 24 FROM tab0 cor0 WHERE NULL IS NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT + MAX( ALL + ( - ( 96 ) ) ) * + + 43 AS col0 FROM tab1
----
-4128

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT + MAX ( ALL + ( - ( 96 ) ) ) * + + 43 AS col0 FROM tab1
----
-4128

query I rowsort
SELECT ( + ( - col2 ) ) + + ( + 35 ) FROM tab2
----
-23
-5
12

query I rowsort
SELECT ALL - col2 + 14 + 58 FROM tab2
----
14
32
49

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - 34 * - col2 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT - 18 + + + col0 AS col1 FROM tab1
----
33
67
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT 79 + - - COUNT( 44 ) * + 89 FROM tab0
----
346

skipif mysql # not compatible
query I rowsort label-8372
SELECT 79 + - - COUNT ( 44 ) * + 89 FROM tab0
----
346

query I rowsort
SELECT 97 + - 53 FROM tab1
----
44
44
44

query III rowsort
SELECT * FROM tab2 WHERE + col1 / 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + MIN( DISTINCT - - 40 ) + 33 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + MIN ( DISTINCT - - 40 ) + 33 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + + COUNT( ALL - col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8376
SELECT + + COUNT ( ALL - col2 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT MAX( DISTINCT + + 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-8377
SELECT MAX ( DISTINCT + + 82 ) FROM tab1
----
82

query I rowsort
SELECT + 38 - col0 + - 0 AS col0 FROM tab0
----
-49
-59
23

query I rowsort
SELECT + ( - - col1 ) + - 27 + + 62 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
116
36
56

query I rowsort
SELECT ALL 51 + + ( - col2 ) FROM tab0 cor0
----
-48
4
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * - - col2 col0, - 29 AS col1 FROM tab0 AS cor0
----
-705
-29
-870
-29
-9603
-29

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - col0 ) * + 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL + 63 * + col1 + + ( + col1 + col2 * 17 ) FROM tab0 AS cor0 WHERE NOT ( + col0 * + col2 * - - 54 * - ( - CAST( NULL AS SIGNED ) ) ) <= - 36
----

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + 63 * + col1 + + ( + col1 + col2 * 17 ) FROM tab0 AS cor0 WHERE NOT ( + col0 * + col2 * - - 54 * - ( - CAST ( NULL AS INTEGER ) ) ) <= - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + + 11 + - COUNT( * ) * + 1 - - - 45 FROM tab2 AS cor0 WHERE NOT 82 <= NULL
----
-34

skipif mysql # not compatible
query I rowsort label-8384
SELECT + + 11 + - COUNT ( * ) * + 1 - - - 45 FROM tab2 AS cor0 WHERE NOT 82 <= NULL
----
-34

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 60 ) + - - 57 AND ( + - 81 + + + 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT + col2 DIV + - 81 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT + col2 / + - 81 AS col0 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( - 47 * - col1 ) AND col2
----

query I rowsort
SELECT DISTINCT col0 * + 75 FROM tab2
----
3450
4800
5625

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * - + 10 * - 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + - MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8390
SELECT + - MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 81 * 23 * - 90 * + col0 FROM tab1
----
-14251950
-15257970
-8551170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + - 54 col1 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT - + col0 / - CAST( NULL AS SIGNED ) + - 48 + ( + col2 ) * - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT - + col0 / - CAST ( NULL AS INTEGER ) + - 48 + ( + col2 ) * - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT - col2 + - + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT - col2 + - + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 * + col2 )
----
-156

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 * + col2 )
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT - CAST( + ( + 65 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-8396
SELECT - CAST ( + ( + 65 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT + ( CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8397
SELECT + ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL + - MIN( DISTINCT - 83 ) AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL + - MIN ( DISTINCT - 83 ) AS col1 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL + 74 + - 77 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT col0 * + - col2 AS col0 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT + ( - - 54 ) + + col0, col0 AS col0 FROM tab2
----
100
46
118
64
129
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT - col2 * - + CAST( + + col0 AS SIGNED ) AS col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8402
SELECT - col2 * - + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT 48 * + + col2 FROM tab0
----
2256
4752
480

query I rowsort
SELECT - + col2 * - col2 - + 47 + - col2 FROM tab0 cor0
----
2115
43
9655

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8405
SELECT * FROM tab0 cor0 WHERE ( NOT - + col1 - CAST( NULL AS DECIMAL ) <= col2 )
----

skipif mysql # not compatible
query III rowsort label-8405
SELECT * FROM tab0 cor0 WHERE ( NOT - + col1 - CAST ( NULL AS REAL ) <= col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( col2 / col0 + col0 >= NULL ) )
----

query I rowsort
SELECT + col2 * - - ( - col2 ) * - col0 + + col2 + - + col2 FROM tab1 AS cor0
----
295885
420784
470016

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / - col2 * - 61 < - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 22 col0 FROM tab2
----
46
22
64
22
75
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL - col0 col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + 47 + - ( CAST( - + 70 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8410
SELECT ALL - col0 col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + 47 + - ( CAST ( - + 70 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL - - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + SUM( + - 81 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-8412
SELECT + SUM ( + - 81 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

query I rowsort
SELECT DISTINCT 99 - - col2 + col0 AS col0 FROM tab2
----
168
203
232

query I rowsort
SELECT + ( + 81 ) AS col2 FROM tab0
----
81
81
81

query I rowsort
SELECT ( - col0 ) * - col0 * + 39 + + + col2 AS col2 FROM tab2 cor0
----
159784
219433
82547

query I rowsort
SELECT ALL + col2 * - ( + + 27 ) FROM tab2 AS cor0
----
-1080
-1566
-621

query II rowsort
SELECT DISTINCT - 58 * - col1 AS col2, + 16 - - 8 FROM tab2 AS cor0
----
2958
24
3886
24
4466
24

query I rowsort
SELECT DISTINCT + col0 + - 22 / 93 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 89 + - + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 * col0 + col0 NOT BETWEEN + 47 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8421
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 42 * + col2 - col1 <> CAST( + - col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 42 * + col2 - col1 <> CAST ( + - col1 AS INTEGER )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 45 * + - 67 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( 93 * 11 * - + col1 - + col0 + + col0 + col1 ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + ( - 80 ) - col1 * - ( + + ( 84 ) ) IN ( + 71 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT - CAST( + COUNT( ALL - col2 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - CAST ( + COUNT ( ALL - col2 ) AS INTEGER ) FROM tab1
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT + 68 IS NOT NULL
----

query I rowsort
SELECT - col1 + + col0 + + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * - col1 FROM tab0 WHERE NOT ( NOT NULL < 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT + 51 * - col1 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT + 51 * - col1 * CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT + ( 9 ), col2 * col0 AS col1 FROM tab0
----
9
705
9
870
9
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8431
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) AS col2, 59 DIV + + 97 FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8431
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2, 59 / + + 97 FROM tab2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8432
SELECT - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT - CAST( col1 AS SIGNED ) * - col1 - - + 16 AS col2 FROM tab0
----
17
457
6577

skipif mysql # not compatible
query I rowsort label-8434
SELECT - CAST ( col1 AS INTEGER ) * - col1 - - + 16 AS col2 FROM tab0
----
17
457
6577

query I rowsort
SELECT DISTINCT - 68 * + - 45 AS col2 FROM tab2
----
3060

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 78 / - + col1
----

query I rowsort
SELECT 19 FROM tab0 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT - - col0 + - 45 FROM tab0 AS cor0
----
-30
42
52

query I rowsort
SELECT col0 + + col0 * col2 AS col1 FROM tab0 cor0
----
720
957
9700

query I rowsort
SELECT ALL - col1 * - 48 + - - col2 * - - 65 + + col2 FROM tab2 AS cor0
----
3966
6336
7044

query II rowsort
SELECT + col1 + col0 AS col0, col2 FROM tab2
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT + 7 + COUNT( * ) * - 64 FROM tab1
----
-185

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + 7 + COUNT ( * ) * - 64 FROM tab1
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8443
SELECT - CAST( NULL AS DECIMAL ) + col0 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT - CAST ( NULL AS REAL ) + col0 * - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 72 IS NOT NULL
----

query II rowsort
SELECT - col2 * + + col1, + col1 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT ALL + 34 * col0 AS col0 FROM tab0 cor0
----
2958
3298
510

query I rowsort
SELECT ALL + col1 * - 18 AS col0 FROM tab0 AS cor0
----
-1458
-18
-378

query I rowsort
SELECT col1 * 51 AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT col0 + + col1 + - col2 + col0 + + + 76 * + 0 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
111
114
6

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - col1 + - + 57 * col1 - - - ( + + 36 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - SUM( DISTINCT 89 ) AS col2 FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - SUM ( DISTINCT 89 ) AS col2 FROM tab2 cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT + SUM( DISTINCT + + col2 ) * 49 col2 FROM tab0 AS cor0
----
7644

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8454
SELECT DISTINCT + SUM ( DISTINCT + + col2 ) * 49 col2 FROM tab0 AS cor0
----
7644

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8455
SELECT - col0 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT - col0 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT + COUNT( * ) * - 36 FROM tab0 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + COUNT ( * ) * - 36 FROM tab0 cor0
----
-108

query I rowsort
SELECT + col1 * + + 48 FROM tab0 cor0
----
1008
3888
48

query I rowsort
SELECT + 21 * - - col0 AS col1 FROM tab0 AS cor0
----
1827
2037
315

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 98 / col1 + - 58 IN ( + + col1, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 WHERE 23 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8460
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8461
SELECT ALL - - CAST( + col0 AS SIGNED ) DIV + ( + + 96 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - - CAST ( + col0 AS INTEGER ) / + ( + + 96 ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 59, col1 - + - col0 - + - 5 * + - 0 AS col1 FROM tab1
----
-59
138
-59
65
-59
90

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NOT + - col0 + + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, 73 + + + col2 + - col1 * + 64 FROM tab1
----
-59
-188
-68
-2867
-96
-727

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT ALL 82 DIV + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL 82 / + col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT - MIN( ALL - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT - MIN ( ALL - col0 ) FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 = - - 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 36 AND 93 + - - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT + MAX( DISTINCT + 71 ) col1 FROM tab0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8469
SELECT DISTINCT + MAX ( DISTINCT + 71 ) col1 FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * col2 + col1 col2 FROM tab2 cor0
----
1569
2717
3895

query I rowsort
SELECT ALL 71 * + - col2 FROM tab0 AS cor0
----
-3337
-7029
-710

query I rowsort
SELECT DISTINCT + col2 + + 62 AS col1 FROM tab0 AS cor0
----
109
161
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT MAX( - - ( - - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8473
SELECT MAX ( - - ( - - col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT + + col2 FROM tab2 WHERE + col0 - - col1 + - + col1 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL + ( - 93 ) AS col2, 57 FROM tab1 AS cor0
----
-93
57
-93
57
-93
57

query I rowsort
SELECT ALL + + col1 + 36 FROM tab2 AS cor0
----
103
113
87

query I rowsort
SELECT ALL - + 36 + 64 AS col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT ALL + - 37 * + 50 FROM tab1 AS cor0 WHERE + 1 IS NOT NULL
----
-1850
-1850
-1850

query I rowsort
SELECT DISTINCT 92 + + + col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + col0 + - 32 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 cor0 WHERE - col0 + + col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT + 56 AS col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8482
SELECT + 56 AS col1 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8483
SELECT DISTINCT + col2 / - 63 - - 67 * + CAST( NULL AS DECIMAL ) * - col1 * - - col2, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8483
SELECT DISTINCT + col2 / - 63 - - 67 * + CAST ( NULL AS REAL ) * - col1 * - - col2, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8484
SELECT CAST( ( - + col2 ) AS SIGNED ) - - 41 DIV + col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-8484
SELECT CAST ( ( - + col2 ) AS INTEGER ) - - 41 / + col2 FROM tab2
----
-22
-39
-58

query I rowsort
SELECT ALL col2 - 8 AS col0 FROM tab0
----
2
39
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 97 col2 FROM tab1 AS cor0
----
-102
-111
-144

query I rowsort
SELECT 25 + + - col2 AS col0 FROM tab1 AS cor0
----
-34
-43
-71

query I rowsort
SELECT + ( - 98 ) + + col1 FROM tab1 AS cor0
----
-51
-84
-93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, + ( + + 6 ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT + 23 * + + 77 + + COUNT( * ) FROM tab0 AS cor0
----
1774

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT + 23 * + + 77 + + COUNT ( * ) FROM tab0 AS cor0
----
1774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT DISTINCT - col1 * - + ( CAST( 55 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
2805
3685
4235

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - col1 * - + ( CAST ( 55 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8492
SELECT + + CAST( col0 AS DECIMAL ) * + - col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT + + CAST ( col0 AS REAL ) * + - col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL col1 * - 66 + - col2 FROM tab0 AS cor0
----
-1396
-165
-5393

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT DISTINCT - col1 DIV + + ( + + col2 ) * - + col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - col1 / + + ( + + col2 ) * - + col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + ( + 3 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8496
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 IN ( + + 44, col2 + - CAST( NULL AS SIGNED ), - - col2, - - col2, col1 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-8496
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 IN ( + + 44, col2 + - CAST ( NULL AS INTEGER ), - - col2, - - col2, col1 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 1 ) + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT DISTINCT SUM( ALL - + 66 ) AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT SUM ( ALL - + 66 ) AS col1 FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + - 30 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8499
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - 30 IS NULL
----
-3

query I rowsort
SELECT DISTINCT ( - - 25 ) FROM tab1
----
25

query I rowsort
SELECT ALL col0 * + 89 AS col2 FROM tab0
----
1335
7743
8633

query I rowsort
SELECT ALL 67 * + - 84 AS col2 FROM tab0
----
-5628
-5628
-5628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL + CAST( - + 37 AS SIGNED ) * + 36 FROM tab0
----
-1332
-1332
-1332

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + CAST ( - + 37 AS INTEGER ) * + 36 FROM tab0
----
-1332
-1332
-1332

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + ( + col0 ) ) + - 74 NOT IN ( 13 / - col2 )
----

query I rowsort
SELECT 10 + + - col0 FROM tab0
----
-5
-77
-87

query I rowsort
SELECT ALL - ( - - 15 ) FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT + 69 * COUNT( * ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + 69 * COUNT ( * ) FROM tab0 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 40 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 40 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL <> + 85
----

query I rowsort
SELECT ALL - 35 + + col0 AS col1 FROM tab0
----
-20
52
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT - 35 AS col0, + 40 + - COUNT( * ) FROM tab1
----
-35
37

skipif mysql # not compatible
query II rowsort label-8511
SELECT - 35 AS col0, + 40 + - COUNT ( * ) FROM tab1
----
-35
37

query I rowsort
SELECT ALL 20 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT col1 * + - 66 AS col2 FROM tab2
----
-3366
-4422
-5082

query II rowsort
SELECT DISTINCT + col0, ( - col0 ) - + - col1 FROM tab2 cor0
----
46
5
64
13
75
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - + 23 < col1
----
91
47
68

query III rowsort
SELECT * FROM tab1 cor0 WHERE 7 * - col2 * 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8517
SELECT + col1 + col0, col2 / + ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-8517
SELECT + col1 + col0, col2 / + ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

query I rowsort
SELECT ALL 64 + + + col2 AS col1 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT - col2 + col0 + col0 * - col1 * - col0 FROM tab2 AS cor0
----
107939
315416
376892

query I rowsort
SELECT ALL 18 / 2 + - col2 FROM tab1 AS cor0 WHERE + 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8521
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - - CAST( NULL AS SIGNED ) * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8521
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - - CAST ( NULL AS INTEGER ) * col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT 51 * CAST( + col1 AS SIGNED ) * - col0 + - col1 col2 FROM tab2
----
-119697
-251405
-256342

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8522
SELECT 51 * CAST ( + col1 AS INTEGER ) * - col0 + - col1 col2 FROM tab2
----
-119697
-251405
-256342

query I rowsort
SELECT DISTINCT - 27 * - col0 + + + col1 FROM tab1
----
1391
2300
2504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL MAX( + + col0 ) - + + CAST( NULL AS SIGNED ) - + - 62 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL MAX ( + + col0 ) - + + CAST ( NULL AS INTEGER ) - + - 62 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT - COUNT( - - col0 ) + 27 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8525
SELECT - COUNT ( - - col0 ) + 27 FROM tab0
----
24

query I rowsort
SELECT ALL + 62 - - - 88 FROM tab2
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - - - col1 AS col2, 13 + - col1 col2 FROM tab2
----
-13
-64
-5
-38
8
-54

query II rowsort
SELECT col0 * - + 91, col2 AS col0 FROM tab0
----
-1365
47
-7917
10
-8827
99

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND + col1 / + 25 + + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT ALL + col1 DIV - col2 - - col2 + - col0 AS col0 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + col1 / - col2 - - col2 + - col0 AS col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT ALL + MAX( + col1 ), COUNT( + col2 ) col1 FROM tab0
----
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8531
SELECT ALL + MAX ( + col1 ), COUNT ( + col2 ) col1 FROM tab0
----
81
3

query I rowsort
SELECT - col0 * + - col0 AS col1 FROM tab2 WHERE NULL IN ( - col0, col1, col2 * col2, + col2 * - 17 + 86, 43 )
----

query I rowsort
SELECT + col1 * col1 FROM tab0 AS cor0 WHERE ( - col2 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT DISTINCT - CAST( + ( + COUNT( * ) ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8535
SELECT + 36 DIV - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8535
SELECT + 36 / - COUNT ( * ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL + ( COUNT( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL MAX( - col2 ) * - COUNT( * ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL MAX ( - col2 ) * - COUNT ( * ) AS col1 FROM tab1
----
177

query I rowsort
SELECT DISTINCT 68 * 64 FROM tab1 AS cor0
----
4352

query I rowsort
SELECT + + col1 * col0 * - 42 FROM tab2 AS cor0
----
-206976
-211050
-98532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT DISTINCT + col1 * + col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + col1 * + col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT + + COUNT( * ) AS col2, MAX( + + ( - ( + col1 ) ) ) - - COUNT( * ) * + + ( COUNT( * ) ) FROM tab0 AS cor0
----
3
8

skipif mysql # not compatible
query II rowsort label-8541
SELECT + + COUNT ( * ) AS col2, MAX ( + + ( - ( + col1 ) ) ) - - COUNT ( * ) * + + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3
8

query I rowsort
SELECT + + 42 * - + 17 * - - col0 + + + col1 AS col1 FROM tab0 cor0
----
-10629
-62097
-69257

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + + COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8543
SELECT + + COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT COUNT( * ) col0 FROM tab0 cor0 WHERE NOT 24 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8544
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 cor0 WHERE NOT 24 IS NULL
----
3

query I rowsort
SELECT DISTINCT + col0 * + + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL + 29 * - ( SUM( + col0 ) ) FROM tab2
----
-5365

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + 29 * - ( SUM ( + col0 ) ) FROM tab2
----
-5365

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NOT NULL <> + 55 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT DISTINCT + col1 * - + CAST( - col2 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + col1 * - + CAST ( - col2 AS INTEGER ) FROM tab1
----
1344
295
3196

query II rowsort
SELECT - - 33 * + - 88, col2 AS col1 FROM tab0 AS cor0
----
-2904
10
-2904
47
-2904
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT COUNT( * ) * + 37 DIV - + ( + + 29 ) + 23 AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-8550
SELECT COUNT ( * ) * + 37 / - + ( + + 29 ) + 23 AS col1 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL + 14 * - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-126

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL + 14 * - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-126

query I rowsort
SELECT - 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query II rowsort
SELECT ALL - col1 * - col1 * - - col0 AS col1, - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 8 AND NULL
----

query I rowsort
SELECT DISTINCT + 92 FROM tab0 cor0 WHERE NOT + 29 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT + 42 + - 65 * - COUNT( * ) + + 61 AS col1 FROM tab2 AS cor0
----
298

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + 42 + - 65 * - COUNT ( * ) + + 61 AS col1 FROM tab2 AS cor0
----
298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT - - CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8556
SELECT - - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - MAX( 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8557
SELECT - MAX ( 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT + + ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT + + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - 35 ) + - col2 * - col2 IS NULL
----

query I rowsort
SELECT col0 - - 95 AS col1 FROM tab0
----
110
182
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 70 * - col0 AS col1, 52 col2 FROM tab2
----
3220
52
4480
52
5250
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT + SUM( + 95 ) AS col0 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT + SUM ( + 95 ) AS col0 FROM tab2 AS cor0
----
285

query I rowsort
SELECT ( + 42 ) AS col0 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT ALL - MAX( ALL + + col1 ) AS col2, 95 FROM tab2 AS cor0
----
-77
95

skipif mysql # not compatible
query II rowsort label-8565
SELECT ALL - MAX ( ALL + + col1 ) AS col2, 95 FROM tab2 AS cor0
----
-77
95

query II rowsort
SELECT - + ( + 37 ) AS col1, - 3 - + col0 FROM tab1 AS cor0
----
-37
-54
-37
-88
-37
-94

query I rowsort
SELECT DISTINCT + 69 * 59 AS col2 FROM tab1
----
4071

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8568
SELECT DISTINCT + 63 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
0
3
63

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + 63 / CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
0
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT MAX( ALL + col0 ) + 72 col2 FROM tab1
----
163

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8569
SELECT MAX ( ALL + col0 ) + 72 col2 FROM tab1
----
163

query I rowsort
SELECT DISTINCT + ( + + col2 ) * - 97 + col0 FROM tab2
----
-2185
-3816
-5551

query I rowsort
SELECT ALL 86 * + 73 AS col2 FROM tab1
----
6278
6278
6278

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8572
SELECT DISTINCT col2 DIV + 86 + - 88 + - + CAST( + - col1 AS SIGNED ) col1 FROM tab2 cor0
----
-11
-21
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8572
SELECT DISTINCT col2 / + 86 + - 88 + - + CAST ( + - col1 AS INTEGER ) col1 FROM tab2 cor0
----
-11
-21
-37

query I rowsort
SELECT ALL - - col2 * + col1 + - + col0 FROM tab1 AS cor0
----
1293
210
3105

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) + col1 + - - col2 * col1 AS col1 FROM tab0 AS cor0
----
-639
-9503
3183

query I rowsort
SELECT DISTINCT - + col1 * col0 + + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # DIV for integer division: 
query II rowsort label-8576
SELECT 11 DIV + col1 + - - col2 + - 59 * col2 * col1 * + 48, col2 AS col2 FROM tab2 AS cor0
----
-11005094
58
-3321913
23
-8722520
40

skipif mysql # not compatible
query II rowsort label-8576
SELECT 11 / + col1 + - - col2 + - 59 * col2 * col1 * + 48, col2 AS col2 FROM tab2 AS cor0
----
-11005094
58
-3321913
23
-8722520
40

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE + ( - + 49 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT CAST( + + col2 AS SIGNED ) + - 67 AS col1 FROM tab1 AS cor0
----
-8
1
29

skipif mysql # not compatible
query I rowsort label-8578
SELECT CAST ( + + col2 AS INTEGER ) + - 67 AS col1 FROM tab1 AS cor0
----
-8
1
29

query II rowsort
SELECT DISTINCT col2 - - 76, col0 FROM tab0 AS cor0
----
123
15
175
97
86
87

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 10 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8581
SELECT + col0 AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8581
SELECT + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT SUM( ALL + 81 ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-8582
SELECT SUM ( ALL + 81 ) FROM tab2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT + MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - 57 * + - ( col2 ) AS col2 FROM tab1 AS cor0
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - COUNT( * ) * + + COUNT( * ) + - + 58 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-139

skipif mysql # not compatible
query I rowsort label-8585
SELECT - COUNT ( * ) * + + COUNT ( * ) + - + 58 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-139

query I rowsort
SELECT DISTINCT + col0 * + + col1 + + col2 FROM tab0 WHERE NULL IS NULL
----
1262
1837
196

query I rowsort
SELECT ALL + 40 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 37 AS col2 FROM tab0 AS cor0 WHERE NOT 62 <> 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT 63 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
16
49
58

skipif mysql # not compatible
query I rowsort label-8589
SELECT 63 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
16
49
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL + col2 + - + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + col2 + - + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 17 + col2 AS col1, - 29 AS col0 FROM tab1 AS cor0
----
113
-29
76
-29
85
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COUNT( + - col1 ) + + - 73 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COUNT ( + - col1 ) + + - 73 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ALL + 38 + - + col1 FROM tab1 AS cor0
----
-9
24
33

query II rowsort
SELECT DISTINCT col1 + - - col1, col0 + + col0 AS col2 FROM tab1 AS cor0
----
10
170
28
102
94
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + MAX( DISTINCT - col2 ) + - 21 AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + MAX ( DISTINCT - col2 ) + - 21 AS col2 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT CAST( 75 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8596
SELECT CAST ( 75 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL + 3 * + + MIN( + 87 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL + 3 * + + MIN ( + 87 ) FROM tab2
----
261

query III rowsort
SELECT * FROM tab0 WHERE + - 33 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT SUM( 17 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT SUM ( 17 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL COUNT( * ) + + - 70 col1 FROM tab1
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8601
SELECT ALL COUNT ( * ) + + - 70 col1 FROM tab1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col1 AS col1, - col0 * 36 col2 FROM tab1
----
-1344
-1836
-295
-3060
-3196
-3276

query I rowsort
SELECT + 58 + + 54 + + - 1 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT - + COUNT( * ) * + CAST( NULL AS SIGNED ) * + - CAST( - - 29 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + - CAST ( - - 29 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT DISTINCT + 24 + + 98 + - MAX( col1 ) * + COUNT( + + ( + col1 ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-8605
SELECT DISTINCT + 24 + + 98 + - MAX ( col1 ) * + COUNT ( + + ( + col1 ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-19
3

query II rowsort
SELECT + col0, 55 + + 62 * col2 FROM tab1
----
51
6007
85
3713
91
4271

query II rowsort
SELECT - col1 AS col2, - col2 + - 27 FROM tab2 AS cor0
----
-51
-50
-67
-85
-77
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT - COUNT( * ) * 96 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8608
SELECT - COUNT ( * ) * 96 FROM tab0 AS cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT - col0 * col2 DIV - 17 FROM tab1 AS cor0
----
288
295
364

skipif mysql # not compatible
query I rowsort label-8609
SELECT - col0 * col2 / - 17 FROM tab1 AS cor0
----
288
295
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT DISTINCT + ( CAST( - col2 AS SIGNED ) ) * - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT + ( CAST ( - col2 AS INTEGER ) ) * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL - 33 * - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - 33 * - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - col0 col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT COUNT( * ) * - 76 AS col1 FROM tab1 cor0 WHERE NOT ( + col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8613
SELECT COUNT ( * ) * - 76 AS col1 FROM tab1 cor0 WHERE NOT ( + col0 ) < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT 40 DIV - col0 - 64 FROM tab1 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-8614
SELECT 40 / - col0 - 64 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL + SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT DISTINCT + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8616
SELECT DISTINCT + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8617
SELECT DISTINCT * FROM tab0 WHERE NOT 83 * 15 + - CAST( NULL AS SIGNED ) * 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8617
SELECT DISTINCT * FROM tab0 WHERE NOT 83 * 15 + - CAST ( NULL AS INTEGER ) * 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT ALL SUM( ALL - + 7 ) DIV - 6 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL SUM ( ALL - + 7 ) / - 6 FROM tab0
----
3

query II rowsort
SELECT ALL + 18 * - col0 AS col2, col2 * - col2 FROM tab1
----
-1530
-3481
-1638
-4624
-918
-9216

query I rowsort
SELECT + col1 * + - col0 AS col1 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * + 60 col0 FROM tab1
----
-4440

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT ( MAX( - ( - + col1 ) ) ) FROM tab1 WHERE + 56 + - col0 + + col2 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT ( MAX ( - ( - + col1 ) ) ) FROM tab1 WHERE + 56 + - col0 + + col2 IS NOT NULL
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col1 FROM tab1 cor0
----
25
25
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - MIN( ALL - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - MIN ( ALL - 0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT col1 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT col1 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8627
SELECT DISTINCT col1 + + - CAST( - 97 AS SIGNED ), col0 col2 FROM tab1 AS cor0
----
102
85
111
51
144
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8627
SELECT DISTINCT col1 + + - CAST ( - 97 AS INTEGER ), col0 col2 FROM tab1 AS cor0
----
102
85
111
51
144
91

query I rowsort
SELECT ( - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > - ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - ( + ( + col0 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 11 + col1 FROM tab1 AS cor0
----
16
25
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + - 94 * + + col0 col2 FROM tab2 cor0
----
-4395
-6087
-7121

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT 7 * COUNT( * ) + 71 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-8633
SELECT 7 * COUNT ( * ) + 71 FROM tab0
----
92

query II rowsort
SELECT 3 + - 33 AS col2, + col1 * 26 * + - col2 FROM tab1
----
-30
-34944
-30
-7670
-30
-83096

query I rowsort
SELECT - 19 * ( ( col0 ) ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 93 + col1 AS col2 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 + + 29 NOT BETWEEN - col0 AND - - 65
----
0

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 + + 29 NOT BETWEEN - col0 AND - - 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - ( - - ( - + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - ( - - ( - + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + 11 AS col2 FROM tab0 WHERE NOT ( col2 IN ( - + 25 ) )
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - - - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8643
SELECT ALL col0, CAST( - col1 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 AND ( NOT 29 * 56 <= + + col2 )
----

skipif mysql # not compatible
query II rowsort label-8643
SELECT ALL col0, CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 AND ( NOT 29 * 56 <= + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT - - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8644
SELECT - - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 IS NULL AND + col1 / - ( - col1 ) * - + 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ALL 51 * + COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL 51 * + COUNT ( * ) FROM tab0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IN ( col1 - + - col2 ) )
----

query II rowsort
SELECT ALL 82 * + col1, + col2 FROM tab0 AS cor0
----
1722
10
6642
47
82
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8649
SELECT + + 57 DIV col2 col1, + col0 AS col1 FROM tab2 AS cor0
----
0
75
1
64
2
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8649
SELECT + + 57 / col2 col1, + col0 AS col1 FROM tab2 AS cor0
----
0
75
1
64
2
46

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 70 AND + + 3 - + 16
----

query I rowsort
SELECT - col0 * + 4 AS col1 FROM tab1
----
-204
-340
-364

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8652
SELECT + CAST( NULL AS DECIMAL ) * COUNT( ALL + + col0 ) * + COUNT( * ) * - 33 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT + CAST ( NULL AS REAL ) * COUNT ( ALL + + col0 ) * + COUNT ( * ) * - 33 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT ALL COUNT( * ) AS col2, 2 col1 FROM tab1
----
3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8653
SELECT ALL COUNT ( * ) AS col2, 2 col1 FROM tab1
----
3
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 33 ) col1 FROM tab1
----
33
33
33

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 23 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 34 + + 3 AS col2 FROM tab0, tab1 AS cor0
----
37

query I rowsort
SELECT + - 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT - col2 + - col2, col2 FROM tab0 AS cor0
----
-198
99
-20
10
-94
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT + + CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8661
SELECT + + CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT + - ( - - COUNT( * ) ) * + 16 AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + - ( - - COUNT ( * ) ) * + 16 AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + 82 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col0 * - col1 + + 0 * + col2 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8665
SELECT + 60 AS col1, + CAST( + AVG ( DISTINCT 82 ) AS SIGNED ) * - COUNT( * ) + 96 AS col1 FROM tab2
----
60
-150

skipif mysql # not compatible
query II rowsort label-8665
SELECT + 60 AS col1, + CAST ( + AVG ( DISTINCT 82 ) AS INTEGER ) * - COUNT ( * ) + 96 AS col1 FROM tab2
----
60
-150

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE - col2 = + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL - col0 * - 44 - col2 DIV col2 * + col0 FROM tab1
----
2193
3655
3913

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - col0 * - 44 - col2 / col2 * + col0 FROM tab1
----
2193
3655
3913

query II rowsort
SELECT DISTINCT - col2, 25 / - ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT - 67 * - col1 + - col0 FROM tab1 cor0
----
250
3058
887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8670
SELECT - SUM( - CAST( - col0 AS SIGNED ) ) * + 48 col1 FROM tab2 AS cor0 WHERE ( - col2 IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8670
SELECT - SUM ( - CAST ( - col0 AS INTEGER ) ) * + 48 col1 FROM tab2 AS cor0 WHERE ( - col2 IS NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT col0 + - ( + col2 ) DIV col2 + - 41 AS col2 FROM tab2 AS cor0
----
22
33
4

skipif mysql # not compatible
query I rowsort label-8671
SELECT col0 + - ( + col2 ) / col2 + - 41 AS col2 FROM tab2 AS cor0
----
22
33
4

query I rowsort
SELECT ALL - + 33 * + col1 FROM tab0 AS cor0 WHERE + ( - col2 ) * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + 25 FROM tab0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT MIN( - col0 ) col0 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8674
SELECT MIN ( - col0 ) col0 FROM tab0
----
-97

query I rowsort
SELECT - 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8676
SELECT + MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + col1 * col0 + col1 * col1 - - col1 AS col1 FROM tab1 AS cor0
----
455
6533
924

query II rowsort
SELECT + - col2 AS col2, + col0 + col2 + 50 FROM tab0 AS cor0
----
-10
147
-47
112
-99
246

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col2 - + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL MIN( + - 48 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL MIN ( + - 48 ) FROM tab2 AS cor0
----
-48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, - 17, + ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8682
SELECT + 15 * - CAST( NULL AS SIGNED ) AS col2, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8682
SELECT + 15 * - CAST ( NULL AS INTEGER ) AS col2, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + COUNT( * ) * - 22 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8684
SELECT + COUNT ( * ) * - 22 FROM tab1
----
-66

query I rowsort
SELECT ALL + col0 * - + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col2 * + - col0 * col0 AS col1 FROM tab1
----
-249696
-426275
-563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col1 FROM tab0
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 79 * - - 20 * col0 < col1 * + 55
----

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 58 + + - col0 NOT BETWEEN - 26 AND NULL OR NOT - - col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + - col1 <= col1
----

query I rowsort
SELECT ALL - 95 * + col0 AS col0 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT DISTINCT - col0 * + 3 FROM tab0
----
-261
-291
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT DISTINCT - col1 DIV - - 97 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - col1 / - - 97 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8694
SELECT SUM( ALL - col2 ) DIV SUM( ALL + col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8694
SELECT SUM ( ALL - col2 ) / SUM ( ALL + col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT DISTINCT - 66 + + col2 DIV + col1 AS col2 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT - 66 + + col2 / + col1 AS col2 FROM tab2 cor0
----
-66

query I rowsort
SELECT ALL 87 FROM tab1 AS cor0 WHERE + col2 + col0 * - col0 * + + col2 <> - + 20
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + + + col0 col0 FROM tab1 cor0
----
113
147
153

query I rowsort
SELECT DISTINCT 35 + - - col2 FROM tab0 AS cor0
----
134
45
82

query I rowsort
SELECT ALL + - col1 - - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - col0 + + ( 14 ) * 76 FROM tab1
----
1013
973
979

query I rowsort
SELECT DISTINCT - + 21 / + - 93 AS col2 FROM tab2 WHERE + 21 * - - col2 * + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 37 IN ( 55 )
----

query I rowsort
SELECT DISTINCT + + 66 FROM tab0 AS cor0 WHERE NOT col2 * + + ( - 99 ) > 67
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - COUNT( - col2 ) - + - 99 AS col2 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8704
SELECT - COUNT ( - col2 ) - + - 99 AS col2 FROM tab2 cor0
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND - 33 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 77 * + col2 IS NULL )
----

query I rowsort
SELECT - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 <= - 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( + + 85 ) FROM tab2 AS cor0
----
-85

query II rowsort
SELECT + col1 AS col0, 89 FROM tab0 cor0
----
1
89
21
89
81
89

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE NOT NULL <= + col2 / + - col1
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT NULL < 85 + + + col1
----

query I rowsort
SELECT - 2 * + col2 AS col0 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ( + col2 ) * - 21 FROM tab0 AS cor0
----
-2079
-210
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT - 93 DIV + col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT - 93 / + col2 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8717
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT DISTINCT - col2 * - + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8718
SELECT DISTINCT - col2 * - + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8719
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 93, + col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL + 89 * + COUNT( * ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL + 89 * + COUNT ( * ) FROM tab1 AS cor0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT - + CAST( NULL AS SIGNED ) + + + CAST( - + 8 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT - + CAST ( NULL AS INTEGER ) + + + CAST ( - + 8 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - MIN( ALL - - col1 ) * 61 FROM tab2
----
-3111

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - MIN ( ALL - - col1 ) * 61 FROM tab2
----
-3111

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab2 WHERE + - col0 - - - col2 - col0 * - col0 IS NOT NULL
----
117
125
74

query I rowsort
SELECT ALL 9 * + 69 + - 26 AS col0 FROM tab2
----
595
595
595

query I rowsort
SELECT + ( ( + - col0 ) ) * - col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col0 * + + col1 * - + col1 AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL + COUNT( DISTINCT 86 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + COUNT ( DISTINCT 86 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT + SUM( DISTINCT + 69 ) DIV - 12 + + COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + SUM ( DISTINCT + 69 ) / - 12 + + COUNT ( * ) FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT + SUM( + - col0 ) FROM tab0 cor0 WHERE NOT - 12 * - - col0 * 36 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + SUM ( + - col0 ) FROM tab0 cor0 WHERE NOT - 12 * - - col0 * 36 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8731
SELECT + + CAST( col0 AS SIGNED ) AS col2, - col0 + - - 61 + + col2 * 9 col0 FROM tab0 AS cor0
----
15
469
87
64
97
855

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8731
SELECT + + CAST ( col0 AS INTEGER ) AS col2, - col0 + - - 61 + + col2 * 9 col0 FROM tab0 AS cor0
----
15
469
87
64
97
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + ( - COUNT( - 7 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8732
SELECT + ( - COUNT ( - 7 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8733
SELECT ALL - ( - ( + - 19 ) ) * + - ( + AVG ( DISTINCT + col0 ) ) + + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - ( - ( + - 19 ) ) * + - ( + AVG ( DISTINCT + col0 ) ) + + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + - 95 * + + col2 col2, - col2 + - col0 FROM tab0
----
4512
-62
9504
-196
960
-97

query III rowsort
SELECT * FROM tab2 WHERE + + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL 65 * - 67 * 2 - - - MAX( ALL 59 ) col2 FROM tab2
----
-8769

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8736
SELECT ALL 65 * - 67 * 2 - - - MAX ( ALL 59 ) col2 FROM tab2
----
-8769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL - CAST( - 76 AS SIGNED ) FROM tab1
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - CAST ( - 76 AS INTEGER ) FROM tab1
----
76
76
76

query I rowsort
SELECT col0 * + - col2 FROM tab1 WHERE + - 47 / 72 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT ALL + + COUNT( * ) col2, - 73 FROM tab1 AS cor0
----
3
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8739
SELECT ALL + + COUNT ( * ) col2, - 73 FROM tab1 AS cor0
----
3
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8740
SELECT - - col0 * col2 / CAST( NULL AS SIGNED ) AS col2, - col0 AS col0 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-8740
SELECT - - col0 * col2 / CAST ( NULL AS INTEGER ) AS col2, - col0 AS col0 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT - col1 / - col2 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) = ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + col0 ) * col1 + - 97 AS col1 FROM tab2
----
2249
4831
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT CAST( + 25 AS SIGNED ) AS col0 FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-8744
SELECT CAST ( + 25 AS INTEGER ) AS col0 FROM tab0
----
25
25
25

query I rowsort
SELECT ALL 8 + - col2 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT 49 FROM tab0 WHERE - col1 + - col2 IS NOT NULL
----
49
49
49

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col2 <= col0 / + 6 + - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - 69 FROM tab1 WHERE + 33 / - col0 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + 12 * 3 FROM tab2 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT - MIN( 44 ) AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - MIN ( 44 ) AS col0 FROM tab0
----
-44

query III rowsort
SELECT * FROM tab0 WHERE - col2 - 16 * 20 NOT BETWEEN + col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 45 ) NOT BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 92 + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT 47 / CAST( NULL AS SIGNED ) - + 10 * - 63 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT 47 / CAST ( NULL AS INTEGER ) - + 10 * - 63 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + col1 AS col2 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
141
142
97

query I rowsort
SELECT ( - 51 ) AS col2 FROM tab0 WHERE + col0 * + 35 IS NOT NULL
----
-51
-51
-51

query I rowsort
SELECT - ( + 91 ) FROM tab2
----
-91
-91
-91

query I rowsort
SELECT DISTINCT col2 - - col1 AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT col0 * - ( 79 ) AS col0 FROM tab2
----
-3634
-5056
-5925

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT + COUNT( * ) * 39 AS col0 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-8762
SELECT + COUNT ( * ) * 39 AS col0 FROM tab0
----
117

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( 10 / - 78 + - col0 )
----

query I rowsort
SELECT DISTINCT col0 + + 87 * - col1 FROM tab1 AS cor0
----
-1167
-350
-3998

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT COUNT( * ) + 49 AS col1 FROM tab2 AS cor0 WHERE - col2 + + col0 <> ( NULL )
----
49

skipif mysql # not compatible
query I rowsort label-8765
SELECT COUNT ( * ) + 49 AS col1 FROM tab2 AS cor0 WHERE - col2 + + col0 <> ( NULL )
----
49

query I rowsort
SELECT DISTINCT + 2 * 33 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
4343
491
780

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT 23 + 89 FROM tab1 AS cor0 WHERE NOT col1 <= ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 35 - col1 FROM tab0
----
-2916
-36
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ( + 96 ) * COUNT( * ) FROM tab1 cor0 WHERE - 20 <= col2
----
288

skipif mysql # not compatible
query I rowsort label-8771
SELECT ( + 96 ) * COUNT ( * ) FROM tab1 cor0 WHERE - 20 <= col2
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT col1 FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) = 27
----

skipif mysql # not compatible
query I rowsort label-8772
SELECT col1 FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) = 27
----

query I rowsort
SELECT DISTINCT + + col2 * + 74 AS col0 FROM tab2 AS cor0
----
1702
2960
4292

query I rowsort
SELECT DISTINCT - col1 + + col1 * 95 AS col0 FROM tab1 AS cor0
----
1316
4418
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + COUNT( ALL ( 74 ) ) * + 81 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + COUNT ( ALL ( 74 ) ) * + 81 FROM tab1 AS cor0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT DISTINCT MAX( + ( + col2 ) ) + 35 AS col2 FROM tab0 AS cor0 WHERE NULL <> + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT MAX ( + ( + col2 ) ) + 35 AS col2 FROM tab0 AS cor0 WHERE NULL <> + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 68 + + 33 FROM tab0 AS cor0
----
101

query I rowsort
SELECT col2 + 44 AS col1 FROM tab1 AS cor0
----
103
112
140

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 BETWEEN + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT COUNT( * ) + MAX( col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8780
SELECT COUNT ( * ) + MAX ( col0 ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT DISTINCT - col0 - 97 FROM tab1
----
-148
-182
-188

query I rowsort
SELECT DISTINCT col2 + + 98 * col0 FROM tab1
----
5094
8389
8986

query I rowsort
SELECT + ( + + 12 ) * - col1 FROM tab1
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - MAX( + - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8784
SELECT - MAX ( + - col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8785
SELECT ALL ( - COUNT( * ) ) - 70 DIV 81 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL ( - COUNT ( * ) ) - 70 / 81 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE col0 + 40 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - COUNT( * ) * - - 19 * 56 FROM tab1
----
-3192

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - COUNT ( * ) * - - 19 * 56 FROM tab1
----
-3192

query I rowsort
SELECT ALL - ( + + col1 ) * - col1 AS col2 FROM tab1 cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT - + 50 * + MIN( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-2550

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - + 50 * + MIN ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-2550

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8791
SELECT ALL - + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT ( NULL ) = ( + col2 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) = ( + col2 * col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 + + col2 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT DISTINCT 26 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT 26 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( * ) + 28 FROM tab0 WHERE NOT + 86 < NULL
----
28

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( * ) + 28 FROM tab0 WHERE NOT + 86 < NULL
----
28

query I rowsort
SELECT DISTINCT + ( + 53 ) FROM tab2 cor0
----
53

query I rowsort
SELECT DISTINCT - ( + ( - + col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + 11 * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT + 11 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8801
SELECT - COUNT( * ) col1, - 16 DIV + 59 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8801
SELECT - COUNT ( * ) col1, - 16 / + 59 FROM tab2 cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT + - MIN( DISTINCT + 35 ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8802
SELECT + - MIN ( DISTINCT + 35 ) FROM tab0 AS cor0
----
-35

query I rowsort
SELECT ALL - 98 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98
-98
-98

query I rowsort
SELECT ALL 67 + + col2 AS col2 FROM tab2 AS cor0
----
107
125
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8805
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - MAX( 20 ) FROM tab1 AS cor0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-8805
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - MAX ( 20 ) FROM tab1 AS cor0
----
NULL
-20

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + 55 + 5 NOT BETWEEN col1 AND col0
----
51

query I rowsort
SELECT DISTINCT 97 * + 76 + - + col1 AS col1 FROM tab0
----
7291
7351
7371

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT MAX( ALL 92 ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-8809
SELECT MAX ( ALL 92 ) FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8810
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT + + col0 + - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
111
114
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL SUM( DISTINCT + 97 ) FROM tab0 AS cor0 WHERE ( + col0 = col0 )
----
97

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL SUM ( DISTINCT + 97 ) FROM tab0 AS cor0 WHERE ( + col0 = col0 )
----
97

query I rowsort
SELECT DISTINCT + 4 + - - col2 FROM tab2
----
27
44
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + + col1 col1 FROM tab1
----
16
25
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT - col0 DIV col2 + - + 68 FROM tab2 cor0
----
-69
-69
-70

skipif mysql # not compatible
query I rowsort label-8816
SELECT - col0 / col2 + - + 68 FROM tab2 cor0
----
-69
-69
-70

query I rowsort
SELECT DISTINCT 75 * + col1 AS col1 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT + ( - col1 ) * + - col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT ALL + ( + + CAST( - ( 77 ) AS SIGNED ) ) * - 27 AS col0 FROM tab0 AS cor0
----
2079
2079
2079

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + ( + + CAST ( - ( 77 ) AS INTEGER ) ) * - 27 AS col0 FROM tab0 AS cor0
----
2079
2079
2079

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col1 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT + + 35 + 74 * col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT + + 35 + 74 * col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL + 50 * SUM( ( + - 77 ) ) AS col1 FROM tab0 AS cor0
----
-11550

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + 50 * SUM ( ( + - 77 ) ) AS col1 FROM tab0 AS cor0
----
-11550

query I rowsort
SELECT - 58 - - col2 - 73 AS col0 FROM tab0 AS cor0
----
-121
-32
-84

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab0 cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT 45 + + col1 AS col1 FROM tab0 WHERE ( CAST( col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT 45 + + col1 AS col1 FROM tab0 WHERE ( CAST ( col2 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT COUNT( * ) AS col0, COUNT( * ) + 86 AS col1 FROM tab0
----
3
89

skipif mysql # not compatible
query II rowsort label-8826
SELECT COUNT ( * ) AS col0, COUNT ( * ) + 86 AS col1 FROM tab0
----
3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL MAX( + col2 ) * - - ( - 8 ) AS col0 FROM tab0
----
-792

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL MAX ( + col2 ) * - - ( - 8 ) AS col0 FROM tab0
----
-792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8828
SELECT DISTINCT - 99 * + 40 AS col2, + ( 97 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
-3960
NULL

skipif mysql # not compatible
query II rowsort label-8828
SELECT DISTINCT - 99 * + 40 AS col2, + ( 97 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
-3960
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8829
SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8830
SELECT COUNT( * ), + MAX( - CAST( + col2 AS SIGNED ) ) + MIN( - + col2 ) AS col0 FROM tab1
----
3
-155

skipif mysql # not compatible
query II rowsort label-8830
SELECT COUNT ( * ), + MAX ( - CAST ( + col2 AS INTEGER ) ) + MIN ( - + col2 ) AS col0 FROM tab1
----
3
-155

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * - 17 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 40 ) FROM tab1 AS cor0 WHERE NOT + 71 + 23 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + - 57 FROM tab2
----
1311
2280
3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT + ( + 78 ) DIV COUNT( * ) FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-8836
SELECT + ( + 78 ) / COUNT ( * ) FROM tab1 cor0
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 42 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT DISTINCT + SUM( + 58 ) + - - 40 DIV + 67 AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + SUM ( + 58 ) + - - 40 / + 67 AS col0 FROM tab2 AS cor0
----
174

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 94 <= - col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL CAST( - col0 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL CAST ( - col0 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + 24 * + col1 + - col2 FROM tab0 AS cor0
----
-75
1897
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + + col0 col0 FROM tab0
----
-32
40
50

query I rowsort
SELECT 55 + - col1 - 0 * col0 AS col1 FROM tab2
----
-12
-22
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8845
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 + - + 29 FROM tab2 AS cor0
----
-106
-80
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 85 + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND + 58 * 30
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL = 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT COUNT( * ) * 33 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) * 33 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 + 95 AS col1 FROM tab1 AS cor0
----
-1
27
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 43 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - COUNT( * ) * - - 33 AS col2 FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8855
SELECT - COUNT ( * ) * - - 33 AS col2 FROM tab2 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab0 AS cor0
----
77

query I rowsort
SELECT - + ( - + 81 ) FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT + 37 * 39 FROM tab2 AS cor0
----
1443
1443
1443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT ( COUNT( * ) ) DIV - 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT ( COUNT ( * ) ) / - 70 FROM tab2
----
0

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT 15 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT SUM( DISTINCT + - 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-8863
SELECT SUM ( DISTINCT + - 47 ) FROM tab0
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 83 FROM tab0 WHERE + col2 IS NOT NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT - 26 * COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - 26 * COUNT ( * ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT DISTINCT 87 col0, + SUM( + - col2 ) FROM tab0
----
87
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8867
SELECT DISTINCT 87 col0, + SUM ( + - col2 ) FROM tab0
----
87
-156

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IN ( - + col0, + 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 81 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT + + 49 DIV - - SUM( ALL - + col0 ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT + + 49 / - - SUM ( ALL - + col0 ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 / - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 18 ) col1 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT + MIN( ALL + + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT + MIN ( ALL + + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 98 >= 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * 73 * + 44 AS col0 FROM tab0
----
279444
311564
48180

query I rowsort
SELECT ALL - - col1 - - col0 FROM tab2 WHERE NOT + 88 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * + col1 + - + col1 + - col1 * + col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 + - 54 * + col2 AS col2 FROM tab0 AS cor0
----
-2523
-453
-5249

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT - - col2 AS col2, 80 AS col0 FROM tab2 AS cor0
----
23
80
40
80
58
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT + + 2 AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-8881
SELECT + + 2 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + COUNT( * ) + + - ( ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + COUNT ( * ) + + - ( ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT - - col1 * + 66 * + - CAST( col1 AS SIGNED ) * + 58 - + col2 FROM tab2 AS cor0
----
-17183950
-22696252
-9956651

skipif mysql # not compatible
query I rowsort label-8883
SELECT - - col1 * + 66 * + - CAST ( col1 AS INTEGER ) * + 58 - + col2 FROM tab2 AS cor0
----
-17183950
-22696252
-9956651

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT MIN( DISTINCT - 83 ) * + COUNT( * ) * + - COUNT( * ) - - COUNT( * ) FROM tab0
----
750

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT MIN ( DISTINCT - 83 ) * + COUNT ( * ) * + - COUNT ( * ) - - COUNT ( * ) FROM tab0
----
750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 - + col2 col2 FROM tab1
----
-3540
-4692
-9312

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 IN ( col2, col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 * - col0 + + - 16 FROM tab1 AS cor0
----
4880
4999
6172

query I rowsort
SELECT DISTINCT col1 * - 61 + + - col2 FROM tab0 AS cor0
----
-1291
-160
-4988

query I rowsort
SELECT 14 FROM tab0 WHERE - col2 / + + col1 * - col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT + CAST( + col2 AS SIGNED ) * 23 FROM tab1 AS cor0
----
1357
1564
2208

skipif mysql # not compatible
query I rowsort label-8891
SELECT + CAST ( + col2 AS INTEGER ) * 23 FROM tab1 AS cor0
----
1357
1564
2208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 4 ) AS col2, - col2 col1 FROM tab2
----
4
-23
4
-40
4
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT - COUNT( 25 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - COUNT ( 25 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8896
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( CAST( - 17 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8896
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( CAST ( - 17 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 22 + + 59 / - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT + 77 + - 86 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + 77 + - 86 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 col1 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT 6 + - - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 93 * + col1 AS col2 FROM tab1
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - col2 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 49 * + 89 + + col1 - - col0 AS col0 FROM tab1 cor0
----
-4223
-4271
-4296

query II rowsort
SELECT - - 83 * - + col2 AS col2, - col1 - + - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8905
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 92 * - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 92 * - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 83 + - col2 FROM tab0 AS cor0
----
-130
-182
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT COUNT( ALL - 95 ) + MAX( DISTINCT - ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT COUNT ( ALL - 95 ) + MAX ( DISTINCT - ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL + col1 + + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT + 22 + + col0 * col2 + - col0 FROM tab2
----
1034
2518
4297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 * + + 86 FROM tab2
----
2236
2236
2236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 - - 98 col1 FROM tab2
----
28
28
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL 74 + + - SUM( col1 ) + - + ( - + COUNT( * ) ) * - MIN( DISTINCT + + 56 ) * COUNT( * ) * + 30 AS col0 FROM tab0 AS cor0
----
-15149

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 74 + + - SUM ( col1 ) + - + ( - + COUNT ( * ) ) * - MIN ( DISTINCT + + 56 ) * COUNT ( * ) * + 30 AS col0 FROM tab0 AS cor0
----
-15149

query I rowsort
SELECT DISTINCT + col1 + - 91 * 28 FROM tab1 AS cor0
----
-2501
-2534
-2543

query II rowsort
SELECT + col2 - - col2, - col0 * - 38 - - col1 AS col2 FROM tab2 AS cor0
----
116
2917
46
1799
80
2509

query I rowsort
SELECT + 52 * 75 * - 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1968db0ffc583fa7112c1df3ea548af1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8919
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 * + ( ( CAST( + + col1 AS SIGNED ) ) ) NOT BETWEEN + 99 + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8919
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 * + ( ( CAST ( + + col1 AS INTEGER ) ) ) NOT BETWEEN + 99 + - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8920
SELECT ALL CAST( - - 91 AS SIGNED ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
91
-3

skipif mysql # not compatible
query II rowsort label-8920
SELECT ALL CAST ( - - 91 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
91
-3

query I rowsort
SELECT - + 55 FROM tab0 cor0
----
-55
-55
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 - - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT - CAST( NULL AS SIGNED ) * 70 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT - CAST ( NULL AS INTEGER ) * 70 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT MIN( DISTINCT - - 22 ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8925
SELECT MIN ( DISTINCT - - 22 ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT 10 * - COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8926
SELECT 10 * - COUNT ( * ) AS col1 FROM tab0
----
-30

query II rowsort
SELECT col1, 55 FROM tab2
----
51
55
67
55
77
55

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL + SUM( + 98 ) FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + SUM ( + 98 ) FROM tab2
----
294

query I rowsort
SELECT ALL - 64 FROM tab1, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
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-8933
SELECT ALL ( - ( - COUNT ( * ) ) ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8934
SELECT - CAST( NULL AS SIGNED ) * - col2, col0 + - col2 AS col2 FROM tab1 cor0
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
query II rowsort label-8934
SELECT - CAST ( NULL AS INTEGER ) * - col2, col0 + - col2 AS col2 FROM tab1 cor0
----
NULL
-45
NULL
23
NULL
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + - col1 * + col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT + + col1 * - col0 + - 17 FROM tab0 AS cor0
----
-114
-1232
-1844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - CAST( NULL AS SIGNED ) + - 43 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - CAST ( NULL AS INTEGER ) + - 43 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8939
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8939
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + 19 + + col0 * - - 62 AS col0 FROM tab2
----
2894
4027
4727

query I rowsort
SELECT ALL - col0 + + + 88 * - col1 * - col1 AS col0 FROM tab2
----
228842
394957
521688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8943
SELECT 57 * - col2 - - CAST( NULL AS SIGNED ), 45 col0 FROM tab1
----
NULL
45
NULL
45
NULL
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8943
SELECT 57 * - col2 - - CAST ( NULL AS INTEGER ), 45 col0 FROM tab1
----
NULL
45
NULL
45
NULL
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT ALL - 54 * + ( - col0 ) DIV - - col0 FROM tab2
----
54
54
54

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - 54 * + ( - col0 ) / - - col0 FROM tab2
----
54
54
54

onlyif mysql # DIV for integer division: 
query II rowsort label-8945
SELECT DISTINCT + col0 - - + col2 + + + 56 + + 92 DIV - col1 col0, 25 AS col0 FROM tab2
----
124
25
159
25
188
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8945
SELECT DISTINCT + col0 - - + col2 + + + 56 + + 92 / - col1 col0, 25 AS col0 FROM tab2
----
124
25
159
25
188
25

query I rowsort
SELECT ALL 56 * - col1 AS col0 FROM tab0 cor0 WHERE ( NULL ) >= + ( - 32 )
----

query I rowsort
SELECT DISTINCT + - col1 * - 44 * col0 FROM tab2 AS cor0
----
103224
216832
221100

query II rowsort
SELECT + 82 AS col0, - col2 FROM tab1 cor0
----
82
-59
82
-68
82
-96

query I rowsort
SELECT DISTINCT - - ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT + + COUNT( * ) * + + COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8950
SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( * ) col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 49 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) / + col1 * - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / + col1 * - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT + - ( SUM( col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8953
SELECT + - ( SUM ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT DISTINCT + - col2 * + col0, + col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8955
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col0, - col1 - - 14 DIV + - col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-8955
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col0, - col1 - - 14 / + - col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8956
SELECT col0 DIV 59 + + 91 AS col2 FROM tab1
----
91
92
92

skipif mysql # not compatible
query I rowsort label-8956
SELECT col0 / 59 + + 91 AS col2 FROM tab1
----
91
92
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - ( col0 ) + col2 )
----

query I rowsort
SELECT DISTINCT 75 + 23 FROM tab0 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 57 - - ( + col0 ) * 19 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1617
1787
309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT - 19 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8960
SELECT - 19 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT DISTINCT - ( - col2 ) * col1 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - ( - col2 ) * col1 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 29 * - col2 IS NULL
----

query I rowsort
SELECT ALL + ( + + 52 ) + - col0 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT DISTINCT + col2 + + 15 FROM tab1
----
111
74
83

query III rowsort
SELECT * FROM tab1 WHERE col2 * 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT - SUM( 50 ) AS col0 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8968
SELECT - SUM ( 50 ) AS col0 FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( * ) * + - COUNT( ALL + ( col0 ) ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( * ) * + - COUNT ( ALL + ( col0 ) ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT + CAST( + + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8970
SELECT + CAST ( + + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT - SUM( DISTINCT - - col1 ) * 79 AS col2 FROM tab1 AS cor0
----
-5214

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) * 79 AS col2 FROM tab1 AS cor0
----
-5214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 14 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + COUNT( * ) * + 92 col2 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT + COUNT ( * ) * + 92 col2 FROM tab0 AS cor0
----
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 59 ) * + 75 + + - 8 NOT BETWEEN + + col0 + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col1 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 / + 38 + + 80 + + col0 / + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 35 * - 9 FROM tab0 AS cor0
----
-315

query I rowsort
SELECT - col2 * + + 22 AS col0 FROM tab1 AS cor0
----
-1298
-1496
-2112

query I rowsort
SELECT 69 * - + col1 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + SUM( 15 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + SUM ( 15 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + col0 AS col2 FROM tab1
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT - COUNT( * ) * - 12 * - 28 * - SUM( + - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66528

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - COUNT ( * ) * - 12 * - 28 * - SUM ( + - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8983
SELECT ALL col0 AS col2, CAST( col0 AS SIGNED ) col0 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8983
SELECT ALL col0 AS col2, CAST ( col0 AS INTEGER ) col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 1 * 6 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 30 FROM tab0
----
-2610
-2910
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL MAX( ALL - col2 ) + - - ( 94 ) AS col1 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL MAX ( ALL - col2 ) + - - ( 94 ) AS col1 FROM tab2
----
71

query I rowsort
SELECT ALL col2 + - col1 FROM tab1 WHERE 45 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT + + col1 DIV 30 + - 34 AS col0 FROM tab2 AS cor0
----
-32
-32
-33

skipif mysql # not compatible
query I rowsort label-8988
SELECT + + col1 / 30 + - 34 AS col0 FROM tab2 AS cor0
----
-32
-32
-33

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE col1 IN ( ( + + col0 ) * + + col1 + - col0 * + - 5 - + + col1 / + + col0 * - col0 + - col0 + + + 22 * col0 * - col1, + col0, - + 87 )
----

query I rowsort
SELECT - 98 * + col1 AS col1 FROM tab1 AS cor0
----
-1372
-4606
-490

query I rowsort
SELECT - ( - - 80 ) + - col2 FROM tab0 AS cor0
----
-127
-179
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT - 83 + - COUNT( * ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8992
SELECT - 83 + - COUNT ( * ) FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL COUNT( * ) col0 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-8993
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query II rowsort
SELECT ALL - col1 - 51, + col2 * 49 AS col1 FROM tab2
----
-102
1127
-118
2842
-128
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT - - 11 - CAST( NULL AS SIGNED ) * + - 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8995
SELECT - - 11 - CAST ( NULL AS INTEGER ) * + - 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8996
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8996
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT 39 DIV + + col2 + + col0 FROM tab2 AS cor0
----
47
64
75

skipif mysql # not compatible
query I rowsort label-8997
SELECT 39 / + + col2 + + col0 FROM tab2 AS cor0
----
47
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT DISTINCT - + 97 DIV - ( + COUNT( * ) ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT - + 97 / - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL + 50 + + col0 * 1 * col0 AS col2 FROM tab1 AS cor0
----
2651
7275
8331

query I rowsort
SELECT DISTINCT col1 + - col0 - col2 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT DISTINCT - - ( col0 ) + - 35 FROM tab0 AS cor0
----
-20
52
62

query I rowsort
SELECT 77 * - - col0 * + + 46 * - col0 * - col2 + col0 - + 4 - + + col2 FROM tab1 AS cor0
----
1509866072
1994528555
884423183

query I rowsort
SELECT DISTINCT 71 + + col2 FROM tab2
----
111
129
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + ( col1 ) * - col0 * - - col0 + + + col1 col0 FROM tab0
----
158949
18225
9409

query II rowsort
SELECT 90 AS col1, ( + + col0 ) FROM tab1
----
90
51
90
85
90
91

query I rowsort
SELECT - col2 * - + col0 * col1 FROM tab1 WHERE NOT ( - - col2 ) IS NULL
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT + 90 * + col2 AS col2 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) - + 81 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 81 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT - 52, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-52
3

skipif mysql # not compatible
query II rowsort label-9011
SELECT - 52, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-52
3

query II rowsort
SELECT DISTINCT + 17, + col1 + - - col0 AS col1 FROM tab0 cor0
----
17
108
17
96
17
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT 5 * - COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT 5 * - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT - + 43 / col1 / + col0 * + 15 - col2 IN ( 42, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT - + 43 / col1 / + col0 * + 15 - col2 IN ( 42, + col2 )
----
NULL

query I rowsort
SELECT - + 44 + 59 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - ( - MAX( + col1 ) ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9017
SELECT - ( - MAX ( + col1 ) ) col1 FROM tab0
----
81

query I rowsort
SELECT ALL ( - 22 ) AS col2 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + col1 + + + col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - ( - - col2 ) * + - col1 - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + 46 AS col2, 58 + - + ( - col2 ) col0 FROM tab1 AS cor0
----
-39
117
-45
126
-5
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL COUNT( + col1 ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL COUNT ( + col1 ) * COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT + col0 + 7 - col2 AS col2 FROM tab0
----
-25
5
84

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) * + col0 + - - 21 FROM tab0
----
-1194
-1806
-76

query I rowsort
SELECT ALL - 83 - + - ( - ( + + col2 ) ) AS col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN - + col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - MIN( - 83 ) AS col2 FROM tab1, tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - MIN ( - 83 ) AS col2 FROM tab1, tab2 cor0
----
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 - + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 17 FROM tab2
----
1088
1275
782

query I rowsort
SELECT 38 + - col0 - - col0 + + 8 AS col0 FROM tab1
----
46
46
46

query I rowsort
SELECT + col1 + col0 * col0 * + col2 - - col2 * + col0 + + 64 * + col1 FROM tab1
----
255502
431615
572351

query I rowsort
SELECT + 45 + col1 AS col0 FROM tab0
----
126
46
66

query I rowsort
SELECT ALL 40 AS col1 FROM tab0 WHERE NOT - + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 98 * - col1 AS col1 FROM tab1
----
-1372
-4606
-490

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 89 <= - ( + ( col2 ) )
----

query I rowsort
SELECT DISTINCT - + 28 + - + 84 FROM tab0 cor0
----
-112

query I rowsort
SELECT col1 * - 41 AS col0 FROM tab0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - ( + COUNT( * ) ) - + COUNT( * ) * + 5 AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9037
SELECT - ( + COUNT ( * ) ) - + COUNT ( * ) * + 5 AS col0 FROM tab2
----
-18

query I rowsort
SELECT + + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - 29 - + 93 FROM tab0
----
-122
-122
-122

query I rowsort
SELECT + + 84 FROM tab0 cor0 WHERE ( col1 < NULL )
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT 81 BETWEEN - ( - col2 ) + 22 AND NULL
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9042
SELECT - 26 * - + col0 + col1 * - CAST( NULL AS DECIMAL ) 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-9042
SELECT - 26 * - + col0 + col1 * - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL - + ( + + col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9045
SELECT ALL - 70 DIV + SUM( - col0 ) + - COUNT( * ) - - - CAST( - MIN( ALL + col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - 70 / + SUM ( - col0 ) + - COUNT ( * ) - - - CAST ( - MIN ( ALL + col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT + col0 DIV col0 + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-9046
SELECT + col0 / col0 + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 10 <> 93
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 + 94 FROM tab2 AS cor0
----
46
117
64
134
75
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ( + COUNT( + col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9049
SELECT ( + COUNT ( + col2 ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 12, - 93, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL + MAX( ALL - - 67 ) AS col0 FROM tab1 WHERE NOT ( - col0 ) IN ( + 95, col0 / 89 * - col1, - - 40 - + col1, col1 - - + ( col1 ) )
----
67

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + MAX ( ALL - - 67 ) AS col0 FROM tab1 WHERE NOT ( - col0 ) IN ( + 95, col0 / 89 * - col1, - - 40 - + col1, col1 - - + ( col1 ) )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9052
SELECT DISTINCT col2 DIV - - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT col2 / - - col0 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT ALL + 25 DIV + COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + 25 / + COUNT ( * ) FROM tab2
----
8

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-77
2
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + - col2 - + col0 + - 36 IS NOT NULL AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( + 8 ) FROM tab1 AS cor0
----
-8
-8
-8

query II rowsort
SELECT - 1 * - - col0 * - col1, + 97 AS col0 FROM tab2
----
2346
97
4928
97
5025
97

query I rowsort
SELECT ALL 4 * + 54 * + ( + - 94 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a1d7db19b1918227920675fad3a58cc3

query I rowsort
SELECT DISTINCT - col2 - + 86 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT - - COUNT( DISTINCT - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - - COUNT ( DISTINCT - col2 ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT - col1 + - 83 DIV - col0 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9062
SELECT - col1 + - 83 / - col0 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9063
SELECT + + 88 AS col0, COUNT( * ) FROM tab2 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-9063
SELECT + + 88 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
88
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL + 60 + + + CAST( NULL AS SIGNED ) + - 78 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + 60 + + + CAST ( NULL AS INTEGER ) + - 78 * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col2 ) ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab1
----
-59

query II rowsort
SELECT DISTINCT - col2 * - col2 AS col2, col2 * + 88 FROM tab0
----
100
880
2209
4136
9801
8712

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 + + + col2 * + 99 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col0, 40 col0 FROM tab2 AS cor0
----
0
40
0
40
0
40

query I rowsort
SELECT - col1 * - col1 * col0 + 75 * + col1 AS col2 FROM tab1 cor0
----
11046
204544
2500

query I rowsort
SELECT + 68 + - - col1 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT + 40 + + col0 + col1 FROM tab2 AS cor0
----
137
181
182

query I rowsort
SELECT 80 + - 57 * 94 * - - col1 + - 72 - col0 AS col2 FROM tab0 AS cor0
----
-112597
-434005
-5447

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( - col1 - + + col0 ) < + col0 * - 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT DISTINCT + col2 - + col0 DIV col0 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + col2 - + col0 / col0 FROM tab2
----
22
39
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 - - col2 col2 FROM tab1
----
102
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - MAX( - + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9078
SELECT - MAX ( - + col0 ) FROM tab2
----
46

query I rowsort
SELECT - ( + 86 ) FROM tab0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - ( + + 67 ) * + MIN( ALL + col0 ) FROM tab1 AS cor0
----
-3417

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - ( + + 67 ) * + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
-3417

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT - + col0 DIV + 99 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9082
SELECT - + col0 / + 99 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT 68 * + - COUNT( * ) AS col2 FROM tab0 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-9083
SELECT 68 * + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-204

query I rowsort
SELECT + ( + 21 ) AS col0 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT COUNT( - 91 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT COUNT ( - 91 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col2
----

query I rowsort
SELECT + 73 FROM tab1 AS cor0 WHERE NOT + 86 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT DISTINCT ( - + col1 ) DIV col0 * - col2 AS col0 FROM tab0
----
0
235

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT ( - + col1 ) / col0 * - col2 AS col0 FROM tab0
----
0
235

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9089
SELECT + 1 AS col0, + COUNT( * ) DIV + 46 AS col0 FROM tab1
----
1
0

skipif mysql # not compatible
query II rowsort label-9089
SELECT + 1 AS col0, + COUNT ( * ) / + 46 AS col0 FROM tab1
----
1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col2 * - col0
----

query II rowsort
SELECT - col2 AS col0, 78 - + col0 AS col2 FROM tab1
----
-59
-7
-68
-13
-96
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL - COUNT( * ) * 76 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - COUNT ( * ) * 76 FROM tab2 AS cor0
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col2, ( - - col1 ) FROM tab1 AS cor0
----
88
14
88
47
88
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9096
SELECT ALL - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9096
SELECT ALL - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 39 <> NULL
----

query I rowsort
SELECT col1 * - - ( - 18 ) AS col0 FROM tab2
----
-1206
-1386
-918

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 78 <= + 52 / col0
----

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NULL >= + 61
----

query I rowsort
SELECT DISTINCT - col0 + + + col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL - - 81 AS col0 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + + 85 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9105
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + + 85 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 31 + - + col2 AS col2 FROM tab0
----
-130
-41
-78

query I rowsort
SELECT col2 + - + 9 FROM tab2
----
14
31
49

query I rowsort
SELECT ( - 38 ) * - + 99 + - 77 AS col1 FROM tab0
----
3685
3685
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT - + 63 + + COUNT( * ) AS col1 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - + 63 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-60

query I rowsort
SELECT DISTINCT - col2 * col0 * - ( - col0 ) + + col1 FROM tab2 AS cor0
----
-163763
-326183
-48617

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 50 * + 13 FROM tab2 WHERE ( NOT ( 46 ) > col0 * + 67 )
----
650

query I rowsort
SELECT DISTINCT ( - col1 ) * + - 81 AS col2 FROM tab2 AS cor0
----
4131
5427
6237

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + 38 * + + 19 AS col0 FROM tab0 cor0
----
722
722
722

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 51 + + - 2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT col0 DIV + - ( + col1 ) + col1 AS col0 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-9118
SELECT col0 / + - ( + col1 ) + col1 AS col0 FROM tab0 AS cor0
----
-96
17
81

query II rowsort
SELECT col0 + col2 + - 73, - col0 * 36 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - 61 AS col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

query I rowsort
SELECT col1 * + 19 FROM tab2
----
1273
1463
969

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9123
SELECT + ( + MAX( + - col0 ) ) col0, COUNT( * ) + + COUNT( * ) * + - 93 AS col0 FROM tab0
----
-15
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9123
SELECT + ( + MAX ( + - col0 ) ) col0, COUNT ( * ) + + COUNT ( * ) * + - 93 AS col0 FROM tab0
----
-15
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT col2 DIV col2 * - - col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9124
SELECT col2 / col2 * - - col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT 9 * + - ( + - COUNT( * ) ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT 9 * + - ( + - COUNT ( * ) ) FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT + 3 AS col2, 98 * - - COUNT( * ) + - - 15 AS col2 FROM tab1
----
3
309

skipif mysql # not compatible
query II rowsort label-9127
SELECT + 3 AS col2, 98 * - - COUNT ( * ) + - - 15 AS col2 FROM tab1
----
3
309

query I rowsort
SELECT - + 8 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT * FROM tab2 WHERE + - col1 / + col1 < NULL
----

query I rowsort
SELECT 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - 74 * + col1 AS col2 FROM tab2 AS cor0
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL COUNT( * ) + 9 AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL COUNT ( * ) + 9 AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + - col2 * ( 73 ) AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9134
SELECT DISTINCT - COUNT( ALL - 61 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - COUNT ( ALL - 61 ) / - COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col2 + + ( - + col1 ) * col1 * + col2 AS col0 FROM tab2 AS cor0
----
-237120
-260304
-59800

query I rowsort
SELECT ( + + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT - COUNT( * ) + 76 AS col0 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - COUNT ( * ) + 76 AS col0 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT 46 * COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-9139
SELECT 46 * COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
414

query I rowsort
SELECT DISTINCT col2 + - 55 FROM tab1
----
13
4
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT ALL COUNT( * ) + 48 AS col0, ( + 70 ) + - 94 AS col2 FROM tab1
----
51
-24

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL COUNT ( * ) + 48 AS col0, ( + 70 ) + - 94 AS col2 FROM tab1
----
51
-24

query I rowsort
SELECT ALL + 15 AS col2 FROM tab2
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT ALL + + col1 * - + col2 DIV - col2 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + + col1 * - + col2 / - col2 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 + 54 AS col2 FROM tab0
----
-45
44
7

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab0 WHERE NOT + + col0 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 / + 33 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 16 + + 34 + + col1 FROM tab1 AS cor0
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - + COUNT( * ) + + 56 * COUNT( * ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9148
SELECT - + COUNT ( * ) + + 56 * COUNT ( * ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT + + col2 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9150
SELECT ALL + col0 + col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
174
NULL
194
NULL
30
NULL

skipif mysql # not compatible
query II rowsort label-9150
SELECT ALL + col0 + col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
174
NULL
194
NULL
30
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 + + 99 col1, ( + col0 ) AS col0 FROM tab0 cor0
----
12
87
2
97
84
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 27 * + col2 * - - col1 NOT BETWEEN + - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 41 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( 68 ) IS NOT NULL ) )
----

query I rowsort
SELECT - 41 * + - 87 AS col0 FROM tab2 cor0
----
3567
3567
3567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL + - CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + - CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9156
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT col1, + col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT 42 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT 42 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL 57, - 95 * + col1 + + 39 + 12 AS col0 FROM tab2 AS cor0
----
57
-4794
57
-6314
57
-7264

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - COUNT( * ) * - COUNT( DISTINCT + 21 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9160
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + 21 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ( + 36 ) FROM tab2
----
36
36
36

query I rowsort
SELECT ALL 19 * - 45 FROM tab1
----
-855
-855
-855

query I rowsort
SELECT 21 + - + col2 FROM tab2
----
-19
-2
-37

query I rowsort
SELECT + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query II rowsort
SELECT col0 AS col0, 38 AS col2 FROM tab0
----
15
38
87
38
97
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + 82 + + - MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + 82 + + - MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + 43 * ( COUNT( + - 7 ) ) FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + 43 * ( COUNT ( + - 7 ) ) FROM tab0 AS cor0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT + SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL + + CAST( NULL AS SIGNED ) + - MAX( + col2 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9169
SELECT ALL + + CAST ( NULL AS INTEGER ) + - MAX ( + col2 ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 84 + 76 AS col2 FROM tab2 AS cor0
----
160
160
160

query I rowsort
SELECT DISTINCT - 58 + col2 FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 >= + + col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT COUNT( DISTINCT - col0 ) - + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT COUNT ( DISTINCT - col0 ) - + + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL 28 * - - col0 + + col2 FROM tab2
----
1311
1832
2158

query I rowsort
SELECT ALL - col1 - col2 AS col1 FROM tab1
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT ALL + col2 DIV - 3 AS col1 FROM tab1
----
-19
-22
-32

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + col2 / - 3 AS col1 FROM tab1
----
-19
-22
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT COUNT( ALL + ( - col0 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9177
SELECT COUNT ( ALL + ( - col0 ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT ( col1 ), col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT 77 - 15 AS col0 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT - col2 + + col2 + + col2 * + 3 > + col0 * + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT - col2 + + col2 + + col2 * + 3 > + col0 * + + col0
----
-3

query II rowsort
SELECT DISTINCT + - col0 AS col1, 74 FROM tab1 AS cor0
----
-51
74
-85
74
-91
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + - SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9183
SELECT + - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT + col0 + - - 28 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
103
74
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT COUNT( - - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT COUNT ( - - col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + + COUNT( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + + COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT - - col0 DIV 90 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9188
SELECT - - col0 / 90 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - - 11 * + 76 FROM tab2 AS cor0
----
836
836
836

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 <> + + col0
----

query I rowsort
SELECT + 94 FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9192
SELECT ALL COUNT( * ) AS col1, ( - - 51 ) FROM tab1
----
3
51

skipif mysql # not compatible
query II rowsort label-9192
SELECT ALL COUNT ( * ) AS col1, ( - - 51 ) FROM tab1
----
3
51

query I rowsort
SELECT + col0 * + + col1 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - COUNT( * ) * + 91 col2 FROM tab2
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT ALL - COUNT ( * ) * + 91 col2 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT COUNT( - 29 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT COUNT ( - 29 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - - col1 * + 64 AND NULL
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT + col2 AS col0, - 37 AS col0 FROM tab0 AS cor0
----
10
-37
47
-37
99
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT ALL + + CAST( NULL AS SIGNED ) * - col2 - - col0 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col2 - - col0 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 18 AS col0 FROM tab2 AS cor0
----
22
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT + COUNT( * ) * MIN( col1 ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + COUNT ( * ) * MIN ( col1 ) FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT COUNT( * ) * 72 AS col1 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-9202
SELECT COUNT ( * ) * 72 AS col1 FROM tab1
----
216

query I rowsort
SELECT ( - col1 ) * - col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * 70 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * 70 FROM tab1
----
-207

query I rowsort
SELECT col1 * - 37 AS col0 FROM tab2
----
-1887
-2479
-2849

query I rowsort
SELECT 39 AS col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT + col1 + + 28 FROM tab0
----
109
29
49

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE ( - 15 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT col1 + 86 * col0 FROM tab2
----
4007
5581
6517

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + MAX( ALL 88 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-9212
SELECT + MAX ( ALL 88 ) FROM tab2
----
88

query I rowsort
SELECT col2 + - 12 * - col0 FROM tab2
----
575
808
958

query I rowsort
SELECT ALL + col2 - + col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT + col0 - 93 FROM tab1 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9216
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) >= ( 64 ) * 56 - - 99
----

skipif mysql # not compatible
query III rowsort label-9216
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) >= ( 64 ) * 56 - - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL > ( + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-9217
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL > ( + 97 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9218
SELECT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2 FROM tab0 WHERE NULL <> ( 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col2 FROM tab0 WHERE NULL <> ( 86 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT + 99 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT + 99 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT col1 DIV + 47 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9220
SELECT col1 / + 47 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 0 * col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 94 col0 FROM tab0
----
115
175
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 10 - + 51 * 86 NOT IN ( - ( col1 ) + 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 5 AS col2 FROM tab1
----
235
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - COUNT( * ) + 84 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-9225
SELECT - COUNT ( * ) + 84 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT col2 AS col0 FROM tab0 WHERE 29 * + CAST( col0 AS SIGNED ) NOT IN ( ( + col0 ) + ( col2 ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9226
SELECT col2 AS col0 FROM tab0 WHERE 29 * + CAST ( col0 AS INTEGER ) NOT IN ( ( + col0 ) + ( col2 ) )
----
10
47
99

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 89 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + COUNT( - col2 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col2 / col2
----
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT + COUNT ( - col2 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col2 / col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - col1 col0 FROM tab0 AS cor0
----
-1638
-6318
-78

query I rowsort
SELECT DISTINCT 93 * ( 20 ) FROM tab1 cor0
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT COUNT( * ) * - 97 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-9232
SELECT COUNT ( * ) * - 97 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT col1 + + 15 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT - 81 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT MIN( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT MIN ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9236
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + ( 57 ) + col1 * ( col0 ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9236
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + ( 57 ) + col1 * ( col0 ) <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * 93 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( 82 ) IN ( - col1 - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - ( col0 ) * col0 FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT col1 * col0 * 28 + col1 AS col0 FROM tab1
----
11905
119803
20006

query I rowsort
SELECT ( ( + col0 ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - 81 FROM tab1
----
-34
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - COUNT( * ) - COUNT( * ) FROM tab2 WHERE NOT ( 72 / - col1 ) = + col0
----
-6

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - COUNT ( * ) - COUNT ( * ) FROM tab2 WHERE NOT ( 72 / - col1 ) = + col0
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * col2 IS NULL OR NOT - col0 < + ( 94 ) * col0 - + ( col1 )
----

query I rowsort
SELECT 51 + - col2 * 64 AS col2 FROM tab2
----
-1421
-2509
-3661

query I rowsort
SELECT + col0 * - col1 + - col2 * col2 FROM tab0
----
-1927
-3424
-9898

query I rowsort
SELECT col2 * + 6 FROM tab1 AS cor0 WHERE NULL <= - col1
----

query I rowsort
SELECT DISTINCT + 95 * - AVG ( ALL - col0 * + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + ( 72 ) ) = ( 85 / + col2 + - col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 + 39 col1 FROM tab2 AS cor0
----
49

query I rowsort
SELECT 29 + + + 32 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + col0 - - col2 * - ( col0 ) col1 FROM tab1
----
-4800
-4885
-6052

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT COUNT( ALL col1 ) FROM tab2 WHERE ( + 51 + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT COUNT ( ALL col1 ) FROM tab2 WHERE ( + 51 + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL - 79 FROM tab0 WHERE NOT ( - + col1 * col0 ) BETWEEN + col2 AND + CAST( 28 AS SIGNED ) * - col1
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - 79 FROM tab0 WHERE NOT ( - + col1 * col0 ) BETWEEN + col2 AND + CAST ( 28 AS INTEGER ) * - col1
----
-79
-79
-79

query II rowsort
SELECT ALL + col1 AS col0, ( col0 ) + col2 FROM tab2 AS cor0
----
51
69
67
133
77
104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9256
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * 68 + + col2 * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9256
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * 68 + + col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - + COUNT( * ) + + 85 col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9257
SELECT - + COUNT ( * ) + + 85 col1 FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT + 31 * + ( + SUM( ALL + 80 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
7437

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + 31 * + ( + SUM ( ALL + 80 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
7437

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT COUNT( * ) + - 56 + - 63 FROM tab2 cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9259
SELECT COUNT ( * ) + - 56 + - 63 FROM tab2 cor0
----
-116

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col1 FROM tab1 AS cor0 WHERE 15 * + + 17 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT COUNT( * ) * + - 12 * SUM( 73 ) + COUNT( * ) DIV + 26 AS col1 FROM tab1 AS cor0
----
-7884

skipif mysql # not compatible
query I rowsort label-9262
SELECT COUNT ( * ) * + - 12 * SUM ( 73 ) + COUNT ( * ) / + 26 AS col1 FROM tab1 AS cor0
----
-7884

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL - COUNT( * ) - - 45 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - COUNT ( * ) - - 45 FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT ALL 30 * + col1 + - col1 + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL 30 * + col1 + - col1 + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - 67 AS col2 FROM tab0
----
-148
-68
-88

query I rowsort
SELECT - + 38 AS col2 FROM tab2 WHERE NULL IS NULL
----
-38
-38
-38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 * - col1 < - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - MAX( 98 ) AS col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - MAX ( 98 ) AS col0 FROM tab1
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9269
SELECT ALL - col0 * - + ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - col0 * - + ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT SUM( - ( - col0 ) ) * + 86 AS col0 FROM tab2 AS cor0
----
15910

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT SUM ( - ( - col0 ) ) * + 86 AS col0 FROM tab2 AS cor0
----
15910

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT COUNT( DISTINCT + 73 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT COUNT ( DISTINCT + 73 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL + SUM( ALL 48 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + SUM ( ALL 48 ) FROM tab1
----
144

query I rowsort
SELECT ALL + + col2 + col2 * col2 FROM tab0 WHERE 58 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN ( 63 * + col2 ) AND ( - 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT MIN( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < - col2 + + col1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < - col2 + + col1 + - col1
----
NULL

query II rowsort
SELECT ALL + 43 AS col1, col0 AS col1 FROM tab2 AS cor0
----
43
46
43
64
43
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT - - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - - col2 + + col2 + - - col2 * + col0 FROM tab1 AS cor0
----
5088
5133
6324

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - ( col1 ) AND - ( 71 )
----

query I rowsort
SELECT - 72 * - col2 AS col0 FROM tab2 cor0
----
1656
2880
4176

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT - col2 * col2 FROM tab0 WHERE ( col2 <> + CAST( col1 AS SIGNED ) * 70 - col0 )
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9282
SELECT - col2 * col2 FROM tab0 WHERE ( col2 <> + CAST ( col1 AS INTEGER ) * 70 - col0 )
----
-100
-2209
-9801

query II rowsort
SELECT ALL col2 AS col2, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / col1 = + 35 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE - - ( + 96 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT MAX( ALL + - 4 ) AS col2 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9286
SELECT MAX ( ALL + - 4 ) AS col2 FROM tab0
----
-4

query II rowsort
SELECT ALL - 26 AS col1, ( - col0 ) FROM tab0 AS cor0
----
-26
-15
-26
-87
-26
-97

query I rowsort
SELECT col0 + + + 0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + 63 * AVG ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE col2 * - col2 IN ( + ( + - ( - col1 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9290
SELECT - CAST( NULL AS SIGNED ) + ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT - CAST ( NULL AS INTEGER ) + ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( + col2 ) * + + col0 BETWEEN ( 3 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( + col2 ) * + + col0 BETWEEN ( 3 ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT - + COUNT( * ) + - - 92 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT - + COUNT ( * ) + - - 92 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * - 31 AS col1 FROM tab1
----
-1581
-2635
-2821

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + col0
----

query I rowsort
SELECT + 70 * col1 - + col2 * - 68 + + col1 FROM tab1 cor0
----
4367
7522
7961

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9296
SELECT + + CAST( - col1 AS SIGNED ) DIV + 45 + - 27 + - col1 - + 66 - - 48 * - 39 FROM tab1 AS cor0
----
-1970
-1979
-2013

skipif mysql # not compatible
query I rowsort label-9296
SELECT + + CAST ( - col1 AS INTEGER ) / + 45 + - 27 + - col1 - + 66 - - 48 * - 39 FROM tab1 AS cor0
----
-1970
-1979
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT + 2 DIV - 16 * + 68 * + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + 2 / - 16 * + 68 * + col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT + COUNT( * ) - - SUM( DISTINCT + ( 35 ) ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9298
SELECT + COUNT ( * ) - - SUM ( DISTINCT + ( 35 ) ) FROM tab1 AS cor0
----
38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 46 AND ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 IN ( - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col1 + + + col2 AS col0, col2 AS col0 FROM tab1 AS cor0
----
110
96
115
68
64
59

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT 3 * + col1 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( - col2 + + col2 * + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 * + 88 NOT IN ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, 8 + + col1 FROM tab2
----
51
59
67
75
77
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL + ( + + MIN( ALL - 15 ) ) * - - 83 col1 FROM tab1
----
-1245

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9306
SELECT ALL + ( + + MIN ( ALL - 15 ) ) * - - 83 col1 FROM tab1
----
-1245

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 70 + + ( + col1 ) ) >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + 12 FROM tab1
----
51
12
85
12
91
12

query II rowsort
SELECT 53 AS col1, col0 FROM tab2 AS cor0
----
53
46
53
64
53
75

query II rowsort
SELECT - col1, col1 * - + col1 AS col2 FROM tab0 cor0
----
-1
-1
-21
-441
-81
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ALL - - 35 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - - 35 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT - - col2 * CAST( + + ( + 54 ) AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-166320
-209844
-63342

skipif mysql # not compatible
query I rowsort label-9312
SELECT - - col2 * CAST ( + + ( + 54 ) AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-166320
-209844
-63342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT ALL - ( + - COUNT( * ) ) DIV COUNT( * ) * - 84 AS col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - ( + - COUNT ( * ) ) / COUNT ( * ) * - 84 AS col2 FROM tab0 AS cor0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT 72 DIV - - 84 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT 72 / - - 84 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT DISTINCT col0 DIV + col2 + + 66 FROM tab2 cor0
----
67
68

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT col0 / + col2 + + 66 FROM tab2 cor0
----
67
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - col1 + + col0 / - col2 * - 29 FROM tab2 AS cor0 WHERE - col2 * col1 = + - col1 + + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT DISTINCT + col1 + + col2 DIV 8 * - + 71 * - col0 + 13 FROM tab1 cor0
----
42263
43479
51748

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT + col1 + + col2 / 8 * - + 71 * - col0 + 13 FROM tab1 cor0
----
42263
43479
51748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * + - col2 col1 FROM tab2 cor0
----
-120
-174
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 63 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT - - col1 / col1 + - + CAST( NULL AS SIGNED ) * + - 3 + + ( + - col2 ) + + col0 - + 51 + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT - - col1 / col1 + - + CAST ( NULL AS INTEGER ) * + - 3 + + ( + - col2 ) + + col0 - + 51 + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col2, - col2 col1 FROM tab0 WHERE NOT col1 NOT IN ( - 1, col1 * - 0, + + 20 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9325
SELECT ALL 85 DIV + + SUM( DISTINCT - col2 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9325
SELECT ALL 85 / + + SUM ( DISTINCT - col2 ) col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col1 * + + 0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + - ( col2 ) AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - - 80 col2 FROM tab1
----
4080
4080
4080

query I rowsort
SELECT ALL - - ( + + 85 ) FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + + 73 FROM tab2 cor0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - - col0 + - 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL 78 + - SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
263

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL 78 + - SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
263

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - 90 AND NULL
----

query I rowsort
SELECT col2 - 35 FROM tab2
----
-12
23
5

query I rowsort
SELECT ALL + 45 - + 53 * - + col0 FROM tab0
----
4656
5186
840

query I rowsort
SELECT col0 * + col0 + + col0 FROM tab0 AS cor0 WHERE NOT + 99 * + 47 IS NULL
----
240
7656
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT DISTINCT + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ( + COUNT( * ) ) * COUNT( DISTINCT + - 77 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9338
SELECT ( + COUNT ( * ) ) * COUNT ( DISTINCT + - 77 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2 * + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT ALL MAX( DISTINCT + - col2 ) AS col0, + 64 FROM tab1
----
-59
64

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL MAX ( DISTINCT + - col2 ) AS col0, + 64 FROM tab1
----
-59
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT + col2 DIV ( - + ( ( - 17 ) ) ) FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9341
SELECT + col2 / ( - + ( ( - 17 ) ) ) FROM tab2
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9342
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN - col2 AND 64 - - 93 * + + col2 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9342
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN - col2 AND 64 - - 93 * + + col2 * - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + 81 + - 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 89 * + - col1 * + col0 AS col0 FROM tab0
----
-108135
-162603
-8633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL ( + - ( + col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * + 15 + + + 0 col0 FROM tab0 cor0
----
-1110
-1110
-1110

query I rowsort
SELECT + col0 * + 30 * + 82 + + - col1 AS col1 FROM tab0 AS cor0
----
213999
238619
36819

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT ALL 25 AS col1, MAX( DISTINCT 62 ) FROM tab2
----
25
62

skipif mysql # not compatible
query II rowsort label-9349
SELECT ALL 25 AS col1, MAX ( DISTINCT 62 ) FROM tab2
----
25
62

query I rowsort
SELECT DISTINCT 9 * - 90 AS col2 FROM tab0
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT + - COUNT( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9351
SELECT + - COUNT ( * ) col2, ( 95 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0
95

query I rowsort
SELECT DISTINCT + - col2 * + 97 + + col2 + col0 * col0 FROM tab0 cor0
----
-4287
-95
6609

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT ALL + - col0 DIV - + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + - col0 / - + col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT - COUNT( * ) AS col0, - COUNT( * ) col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9354
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + 97 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + 97 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL col1 + ( + - 76 ) FROM tab1 AS cor0
----
-29
-62
-71

query II rowsort
SELECT DISTINCT + + col1 AS col1, 91 AS col2 FROM tab0 AS cor0
----
1
91
21
91
81
91

query I rowsort
SELECT ALL + col0 + - + ( + - 46 ) AS col0 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT ALL + + 77 * - 3 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT DISTINCT - col2 DIV + + 16 FROM tab1
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT - col2 / + + 16 FROM tab1
----
-3
-4
-6

query I rowsort
SELECT - col2 * + + col2 * - col2 AS col0 FROM tab0
----
1000
103823
970299

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT DISTINCT 82 DIV 43 * + MAX( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT 82 / 43 * + MAX ( - col1 ) FROM tab0
----
-1

query I rowsort
SELECT - ( + col0 ) - - 74 AS col0 FROM tab1
----
-11
-17
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9365
SELECT + COUNT( * ) + - 37 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9365
SELECT + COUNT ( * ) + - 37 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 + + ( + col2 ) col0 FROM tab1 AS cor0
----
15
43
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col2 ) * - + ( + - col0 ) * 46 + + 79 + - 29 col1 FROM tab1 AS cor0
----
225266
230740
284698

query I rowsort
SELECT + 98 + col0 FROM tab0 WHERE col1 BETWEEN + + ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + MAX( + 76 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-9369
SELECT + MAX ( + 76 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76

query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab2 cor0 WHERE 77 + col1 IS NULL
----

query I rowsort
SELECT + 10 * - - 16 FROM tab2 AS cor0
----
160
160
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 26 * - col0 AS col0 FROM tab2 AS cor0
----
-1196
-1664
-1950

query III rowsort
SELECT - 76 AS col2, col2 * - 76, + col0 FROM tab0 AS cor0
----
9 values hashing to 5c9c83296041428e94e713ca31f9678c

query I rowsort
SELECT ALL - 99 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL + + ( ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 98 BETWEEN - + col0 + + - 63 AND - ( col1 ) + + 11 + - + col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, 72 + - + 46 col2 FROM tab0
----
15
26
87
26
97
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9380
SELECT ALL COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9380
SELECT ALL COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + + 73 * - - ( + - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT + COUNT( * ) DIV - 17 * - 34 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT + COUNT ( * ) / - 17 * - 34 FROM tab2
----
0

query I rowsort
SELECT + ( + 84 ) AS col0 FROM tab2
----
84
84
84

query I rowsort
SELECT DISTINCT col1 * - - ( - + col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 / + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - - col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9387
SELECT - CAST( + col1 AS SIGNED ) DIV - 82 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT - CAST ( + col1 AS INTEGER ) / - 82 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL + 80 + - col1 AS col2 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - - COUNT( * ) + + 86 * - 16 + + + COUNT( * ) + + 34 * - 8 FROM tab2 AS cor0
----
-1642

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - - COUNT ( * ) + + 86 * - 16 + + + COUNT ( * ) + + 34 * - 8 FROM tab2 AS cor0
----
-1642

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT col0 DIV col2 + - col0 DIV - 40 AS col1 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT col0 / col2 + - col0 / - 40 AS col1 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT ALL 96 AS col0 FROM tab2 AS cor0 WHERE NULL >= + col0
----

query I rowsort
SELECT + col0 * + 38 * - col0 FROM tab1 cor0 WHERE + col2 BETWEEN + 18 AND col2 + + + col0 / col2
----
-274550
-314678
-98838

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT DISTINCT - 9 * - col0 + - + 1 DIV - 27 FROM tab1
----
459
765
819

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - 9 * - col0 + - + 1 / - 27 FROM tab1
----
459
765
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 22 * - + col0 col2 FROM tab0
----
-1893
-2133
-249

query I rowsort
SELECT + 47 FROM tab1 WHERE NULL > - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT COUNT( * ) + - ( - ( + 26 ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-9397
SELECT COUNT ( * ) + - ( - ( + 26 ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT - COUNT( DISTINCT - - 14 ) + + COUNT( * ) AS col2, ( - COUNT( * ) ) * + ( + + COUNT( * ) ) - + COUNT( * ) AS col0 FROM tab2
----
2
-12

skipif mysql # not compatible
query II rowsort label-9398
SELECT - COUNT ( DISTINCT - - 14 ) + + COUNT ( * ) AS col2, ( - COUNT ( * ) ) * + ( + + COUNT ( * ) ) - + COUNT ( * ) AS col0 FROM tab2
----
2
-12

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 <> + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9400
SELECT DISTINCT - COUNT( * ) AS col0, 98 AS col1 FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-9400
SELECT DISTINCT - COUNT ( * ) AS col0, 98 AS col1 FROM tab1
----
-3
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT DISTINCT - 93 * - - CAST( + 12 AS SIGNED ) * + col0 - + col0 FROM tab2
----
-51382
-71488
-83775

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - 93 * - - CAST ( + 12 AS INTEGER ) * + col0 - + col0 FROM tab2
----
-51382
-71488
-83775

query I rowsort
SELECT ALL + 95 - + col2 FROM tab1
----
-1
27
36

query I rowsort
SELECT - col2 * + - 88 FROM tab0
----
4136
8712
880

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9405
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + ( - 7 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-7

query I rowsort
SELECT col1 * - 33 AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
-1683
-2211
-2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - - col1 * + 1 * - ( col0 ), - 77 AS col2 FROM tab0 AS cor0
----
-1215
-77
-1827
-77
-97
-77

query I rowsort
SELECT ALL 52 FROM tab2 AS cor0 WHERE + ( - 57 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 44
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9412
SELECT CAST( NULL AS DECIMAL ) AS col2, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9412
SELECT CAST ( NULL AS REAL ) AS col2, - COUNT ( * ) FROM tab0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + MAX( DISTINCT + - 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9413
SELECT + MAX ( DISTINCT + - 23 ) FROM tab2
----
-23

query I rowsort
SELECT 78 * - 9 - 11 * col0 - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1277
-1642
-1750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9415
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + 26 FROM tab1
----
NULL
26
NULL
26
NULL
26

skipif mysql # not compatible
query II rowsort label-9415
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 26 FROM tab1
----
NULL
26
NULL
26
NULL
26

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col2 / col2 > 77
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT MAX( ALL + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9418
SELECT MAX ( ALL + col0 ) FROM tab2 cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 23 + col2 * - col2 FROM tab2 cor0
----
-1623
-3387
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 28 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + - 5 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + col2, col1 / 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9423
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT IN ( + CAST( + ( - 11 ) AS SIGNED ), - col2, - 69, + col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-9423
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT IN ( + CAST ( + ( - 11 ) AS INTEGER ), - col2, - 69, + col0 + col1 )
----

query I rowsort
SELECT ALL + + 33 FROM tab1 WHERE NOT NULL <= - 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col1, + col2 col0 FROM tab2 AS cor0
----
2346
23
4928
40
5025
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT + + col0 DIV + - 51 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9426
SELECT + + col0 / + - 51 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col0 FROM tab0 cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9428
SELECT 59 col2, + CAST( NULL AS SIGNED ) + - col2 col1 FROM tab0 AS cor0
----
59
NULL
59
NULL
59
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9428
SELECT 59 col2, + CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab0 AS cor0
----
59
NULL
59
NULL
59
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9430
SELECT + COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col2, col1 * col1 AS col2 FROM tab0 AS cor0
----
10
441
47
6561
99
1

query II rowsort
SELECT ALL + col0 * - col1 AS col0, + 30 FROM tab2
----
-2346
30
-4928
30
-5025
30

query I rowsort
SELECT col1 + - + 59 FROM tab1
----
-12
-45
-54

query I rowsort
SELECT - col1 * 53 + col2 FROM tab0
----
-1103
-4246
46

query I rowsort
SELECT 99 * 23 + - ( col0 ) + + - col1 * - + col2 AS col2 FROM tab2
----
3404
5293
6088

query III rowsort
SELECT * FROM tab0 WHERE - - col1 = - ( 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT - col2 DIV 48 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT - col2 / 48 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + col1
----

skipif mysql # not compatible
query I rowsort label-9439
SELECT + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 51 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 AS col0, + col0 * col2 * col0 + col2 AS col1 FROM tab0
----
10
75700
47
10622
99
931590

query I rowsort
SELECT ALL + 29 FROM tab2 AS cor0 WHERE + col1 - - col1 >= + - col1
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT 30 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9444
SELECT 30 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + + 54 * - col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

query I rowsort
SELECT + 91 AS col2 FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - + 87 * + - ( + col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT DISTINCT - 44 DIV - + col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - 44 / - + col0 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 84 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT DISTINCT + COUNT( * ), COUNT( ALL - + ( - 30 ) ) + ( - COUNT( + col1 ) ) AS col2 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9451
SELECT DISTINCT + COUNT ( * ), COUNT ( ALL - + ( - 30 ) ) + ( - COUNT ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT MIN( 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9452
SELECT MIN ( 17 ) FROM tab2
----
17

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL COUNT( + 52 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL COUNT ( + 52 ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL MIN( col0 ) * + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-459

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL MIN ( col0 ) * + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-459

query I rowsort
SELECT + + 24 FROM tab0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9458
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( + 19 * + 47 + col2 + col1, - CAST( - 85 AS SIGNED ), CAST( + 46 AS SIGNED ) + - col0, - 47 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9458
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( + 19 * + 47 + col2 + col1, - CAST ( - 85 AS INTEGER ), CAST ( + 46 AS INTEGER ) + - col0, - 47 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT ALL - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + 58 + - col2 FROM tab2 AS cor0
----
0
18
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT + CAST( + + 59 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9462
SELECT + CAST ( + + 59 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - col2 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 22 + - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1366
-317
-3218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9465
SELECT COUNT( * ) + - - COUNT( ALL + 40 ) + + + COUNT( ( - - col2 ) ) DIV 55 AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9465
SELECT COUNT ( * ) + - - COUNT ( ALL + 40 ) + + + COUNT ( ( - - col2 ) ) / 55 AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT - col0 * + + CAST( - 12 AS SIGNED ) + - col2 FROM tab0 cor0
----
1034
1065
133

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT - col0 * + + CAST ( - 12 AS INTEGER ) + - col2 FROM tab0 cor0
----
1034
1065
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT + + CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9467
SELECT + + CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + SUM( + - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9468
SELECT + SUM ( + - col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL col0 + - col2 + + + col0 * CAST( + 52 AS SIGNED ) AS col0 FROM tab2
----
2415
3352
3917

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL col0 + - col2 + + + col0 * CAST ( + 52 AS INTEGER ) AS col0 FROM tab2
----
2415
3352
3917

query I rowsort
SELECT 77 * 97 FROM tab2
----
7469
7469
7469

query III rowsort
SELECT * FROM tab0 WHERE - 44 NOT BETWEEN NULL AND - 21 * + 17 - + + 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT + 45 * COUNT( * ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + 45 * COUNT ( * ) AS col2 FROM tab1
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 66 col2 FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT - 92 DIV col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9474
SELECT - 92 / col0 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-32

query I rowsort
SELECT ALL - - 32 FROM tab0 WHERE NOT + col2 IS NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT MAX( ( + + ( + col0 ) ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9478
SELECT MAX ( ( + + ( + col0 ) ) ) FROM tab0
----
97

query I rowsort
SELECT + - 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT - 3 * - 67 - MIN( DISTINCT col1 ) FROM tab2 WHERE NOT - col1 * - 76 - col0 IS NULL
----
150

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT - 3 * - 67 - MIN ( DISTINCT col1 ) FROM tab2 WHERE NOT - col1 * - 76 - col0 IS NULL
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + - 77 * - COUNT( * ) AS col1 FROM tab0 cor0
----
231

skipif mysql # not compatible
query I rowsort label-9481
SELECT + - 77 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
231

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * + - col0 + col2 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - + ( + - SUM( + col1 ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9484
SELECT - + ( + - SUM ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT DISTINCT COUNT( * ), 52 AS col1 FROM tab1
----
3
52

skipif mysql # not compatible
query II rowsort label-9485
SELECT DISTINCT COUNT ( * ), 52 AS col1 FROM tab1
----
3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + MIN( - - 97 ) col2 FROM tab0 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9486
SELECT ALL + MIN ( - - 97 ) col2 FROM tab0 WHERE NOT NULL < col0
----
NULL

query I rowsort
SELECT DISTINCT 6 * - + col2 FROM tab0
----
-282
-594
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9488
SELECT COUNT( * ) DIV 78 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( * ) / 78 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - 50 * - - col0 * + col0 FROM tab2
----
-105800
-204800
-281250

query I rowsort
SELECT + col0 / + col2 - + 53 + + 63 AS col1 FROM tab0 WHERE NULL IN ( + + 58, - col1, + col0 / - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT + 17 DIV col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + 17 / col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT CAST( NULL AS SIGNED ) / col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT CAST ( NULL AS INTEGER ) / col1 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col1 + - 85 * col1 + col1 FROM tab1 AS cor0
----
-1176
-3948
-420

query I rowsort
SELECT DISTINCT 71 + - - 96 AS col1 FROM tab2 AS cor0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9495
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - col1 >= + col0
----

skipif mysql # not compatible
query III rowsort label-9495
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - col1 >= + col0
----

query I rowsort
SELECT ALL + + 79 * col0 FROM tab0 AS cor0
----
1185
6873
7663

query I rowsort
SELECT DISTINCT 54 + col2 AS col2 FROM tab0 WHERE + col2 <= - col2
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / - col2 + 9 BETWEEN col2 AND - col1 + col1 * + 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT DISTINCT + col1 DIV - 13 AS col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + col1 / - 13 AS col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT + col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-9501
SELECT - 19 - + - COUNT( * ) col0, 66 FROM tab2 AS cor0
----
-16
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9501
SELECT - 19 - + - COUNT ( * ) col0, 66 FROM tab2 AS cor0
----
-16
66

query II rowsort
SELECT DISTINCT + - col2 + - - 85 AS col2, - 57 FROM tab0 AS cor0
----
-14
-57
38
-57
75
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9503
SELECT * FROM tab0 WHERE NOT + CAST( + col0 AS DECIMAL ) / col2 + - col0 >= - 94 + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-9503
SELECT * FROM tab0 WHERE NOT + CAST ( + col0 AS REAL ) / col2 + - col0 >= - 94 + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT - CAST( NULL AS SIGNED ) / 45 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9504
SELECT - CAST ( NULL AS INTEGER ) / 45 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT COUNT( DISTINCT + + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT MAX( + 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT MAX ( + 2 ) FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT COUNT( + - ( + + col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9507
SELECT COUNT ( + - ( + + col1 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 * - + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + COUNT( ALL + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9509
SELECT + COUNT ( ALL + col2 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9510
SELECT + 62 * CAST( NULL AS DECIMAL ) / col1, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9510
SELECT + 62 * CAST ( NULL AS REAL ) / col1, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL COUNT( * ) * + 4 AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL COUNT ( * ) * + 4 AS col1 FROM tab1
----
12

query I rowsort
SELECT 84 * - + col0 * + + col1 AS col1 FROM tab2
----
-197064
-413952
-422100

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 17 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9514
SELECT + + CAST( NULL AS DECIMAL ) col0, - ( + 81 ) + + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
-104
NULL
-121
NULL
-139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9514
SELECT + + CAST ( NULL AS REAL ) col0, - ( + 81 ) + + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
-104
NULL
-121
NULL
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL - - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL - - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 90 * + 93 FROM tab1 AS cor0
----
8370

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + col1 + + 63 FROM tab1 AS cor0
----
110
68
77

query I rowsort
SELECT DISTINCT - 16 + - col0 FROM tab0
----
-103
-113
-31

query II rowsort
SELECT + - 75 * col2 AS col0, + col0 FROM tab1 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab2 WHERE NOT + col2 + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 + - ( col2 ) + 70 AS col2 FROM tab2
----
-34
-63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT + MAX( col1 ) * - 34 col0 FROM tab2
----
-2618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9523
SELECT DISTINCT + MAX ( col1 ) * - 34 col0 FROM tab2
----
-2618

onlyif mysql # aggregate syntax: 
query II rowsort label-9524
SELECT ALL + 57 * + + ( - + MAX( ALL - ( col0 ) ) ), - ( + - 86 ) col0 FROM tab1
----
2907
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9524
SELECT ALL + 57 * + + ( - + MAX ( ALL - ( col0 ) ) ), - ( + - 86 ) col0 FROM tab1
----
2907
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9525
SELECT - col0 + + 7 AS col1, + CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
-39
NULL
-57
NULL
-68
NULL

skipif mysql # not compatible
query II rowsort label-9525
SELECT - col0 + + 7 AS col1, + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
-39
NULL
-57
NULL
-68
NULL

query I rowsort
SELECT + col1 + col0 FROM tab0 WHERE - 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9527
SELECT CAST( NULL AS SIGNED ) / - + col0, + col0 * + col0 * - + col1 AS col2 FROM tab1
----
NULL
-36125
NULL
-36414
NULL
-389207

skipif mysql # not compatible
query II rowsort label-9527
SELECT CAST ( NULL AS INTEGER ) / - + col0, + col0 * + col0 * - + col1 AS col2 FROM tab1
----
NULL
-36125
NULL
-36414
NULL
-389207

query II rowsort
SELECT ALL + + 91 + + + 35, - col2 AS col2 FROM tab1 AS cor0
----
126
-59
126
-68
126
-96

query I rowsort
SELECT ALL - - col2 - - 83 FROM tab0 AS cor0
----
130
182
93

query II rowsort
SELECT DISTINCT + col1, - col2 * + + col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT + 98 DIV SUM( ALL - - 8 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9531
SELECT + 98 / SUM ( ALL - - 8 ) FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ALL + 13 * - COUNT( * ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + 13 * - COUNT ( * ) FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9533
SELECT ALL - ( + 15 ), + CAST( - - 78 AS SIGNED ) AS col2 FROM tab2
----
-15
78
-15
78
-15
78

skipif mysql # not compatible
query II rowsort label-9533
SELECT ALL - ( + 15 ), + CAST ( - - 78 AS INTEGER ) AS col2 FROM tab2
----
-15
78
-15
78
-15
78

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 56 <= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - ( + COUNT( + 80 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - ( + COUNT ( + 80 ) ) FROM tab1
----
-3

query II rowsort
SELECT ALL + ( - col2 ) AS col0, + col1 * 99 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL >= 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL col2 * - col2 AS col1 FROM tab0 WHERE - - ( + 47 ) + - CAST( ( 45 ) AS SIGNED ) - col1 > - col1
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL col2 * - col2 AS col1 FROM tab0 WHERE - - ( + 47 ) + - CAST ( ( 45 ) AS INTEGER ) - col1 > - col1
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + - MIN( - 50 ) AS col0 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9541
SELECT + - MIN ( - 50 ) AS col0 FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT - - MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9542
SELECT - - MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT + 69 + CAST( + 34 AS SIGNED ) FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + 69 + CAST ( + 34 AS INTEGER ) FROM tab2 AS cor0
----
103

query I rowsort
SELECT 90 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 45 FROM tab2, tab2 cor0
----
-45

query I rowsort
SELECT + 25 + + col0 FROM tab2 AS cor0
----
100
71
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT - + ( + - col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT - + ( + - col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT COUNT( * ) + + 23 AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9549
SELECT COUNT ( * ) + + 23 AS col0 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9550
SELECT DISTINCT 15 + + - CAST( NULL AS DECIMAL ) + + ( - col0 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9550
SELECT DISTINCT 15 + + - CAST ( NULL AS REAL ) + + ( - col0 ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - MAX( DISTINCT - col0 ) + - - 83 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - MAX ( DISTINCT - col0 ) + - - 83 FROM tab0 AS cor0
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 86 IS NOT NULL
----

query I rowsort
SELECT - col0 - + + 44 AS col0 FROM tab0
----
-131
-141
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ( ( + CAST( + col1 AS SIGNED ) ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9554
SELECT ( ( + CAST ( + col1 AS INTEGER ) ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT - col0 DIV col1 - + ( 33 ) FROM tab1 AS cor0
----
-34
-36
-50

skipif mysql # not compatible
query I rowsort label-9555
SELECT - col0 / col1 - + ( 33 ) FROM tab1 AS cor0
----
-34
-36
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT + + col1 DIV + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9557
SELECT + + col1 / + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - ( - col1 ) * - - col0 - + + 62 col2 FROM tab2 cor0
----
197058
291388
53896

query I rowsort
SELECT DISTINCT + 56 * + + col2 FROM tab1 AS cor0
----
3304
3808
5376

query II rowsort
SELECT ALL + 15, col0 AS col1 FROM tab0
----
15
15
15
87
15
97

query II rowsort
SELECT + 33, - col1 - + - 59 + col2 AS col1 FROM tab2
----
33
22
33
31
33
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT - CAST( 47 AS SIGNED ) AS col0 FROM tab0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-9562
SELECT - CAST ( 47 AS INTEGER ) AS col0 FROM tab0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= - + 34 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - MAX( - + 11 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-9564
SELECT - MAX ( - + 11 ) FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT + COUNT( * ), + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
3
103

skipif mysql # not compatible
query II rowsort label-9565
SELECT + COUNT ( * ), + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
3
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + 56 * + - MIN( - + col0 ) AS col2 FROM tab1
----
5096

skipif mysql # not compatible
query I rowsort label-9566
SELECT + 56 * + - MIN ( - + col0 ) AS col2 FROM tab1
----
5096

query I rowsort
SELECT DISTINCT col1 * - - 2 AS col0 FROM tab0
----
162
2
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 88 col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

query I rowsort
SELECT + + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT + MAX( - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT + MAX ( - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT col2 * col2 DIV 49 * - col1 * 78 * + + col0 FROM tab2
----
-12300288
-1829880
-26652600

skipif mysql # not compatible
query I rowsort label-9573
SELECT col2 * col2 / 49 * - col1 * 78 * + + col0 FROM tab2
----
-12300288
-1829880
-26652600

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - MAX( ALL - 79 ) AS col2 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9574
SELECT - MAX ( ALL - 79 ) AS col2 FROM tab0
----
79

query I rowsort
SELECT DISTINCT + col1 * 58 * + + 43 + - col0 FROM tab0 AS cor0
----
201999
2397
52287

query I rowsort
SELECT ALL - col2 * - + col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 58 + ( 18 ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL + + col0 * col0 + 44 AS col1 FROM tab0 AS cor0
----
269
7613
9453

query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - col0 + + col0 * col1 / + col2 - - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab2 AS cor0 WHERE + 97 - + col1 * + 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9582
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query III rowsort label-9582
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) >= + col2
----

query II rowsort
SELECT DISTINCT col1, 50 * - col1 * - - col0 AS col0 FROM tab2
----
51
-117300
67
-251250
77
-246400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT DISTINCT + SUM( + col0 ) + + COUNT( * ) DIV COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + SUM ( + col0 ) + + COUNT ( * ) / COUNT ( * ) FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT - COUNT( * ) AS col0, + 63 * COUNT( * ) + ( 2 ) AS col2 FROM tab0
----
-3
191

skipif mysql # not compatible
query II rowsort label-9585
SELECT - COUNT ( * ) AS col0, + 63 * COUNT ( * ) + ( 2 ) AS col2 FROM tab0
----
-3
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT col2 * - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT col2 * - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col0 AS col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( + col1 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + MIN( DISTINCT + col1 ) + + SUM( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + MIN ( DISTINCT + col1 ) + + SUM ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9590
SELECT + CAST( NULL AS DECIMAL ) - + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT + CAST ( NULL AS REAL ) - + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + - 63 + col2 FROM tab1
----
-3658
-4216
-5952

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT 39 * + 44 - - + col0 DIV - 66 FROM tab0
----
1715
1715
1716

skipif mysql # not compatible
query I rowsort label-9593
SELECT 39 * + 44 - - + col0 / - 66 FROM tab0
----
1715
1715
1716

query I rowsort
SELECT col1 * - 38 AS col2 FROM tab2
----
-1938
-2546
-2926

query I rowsort
SELECT DISTINCT + 69 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - col0 * - 58 FROM tab2 AS cor0
----
2668
3712
4350

query II rowsort
SELECT ALL - - 49, col1 FROM tab2 cor0
----
49
51
49
67
49
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT - COUNT( * ) * + COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col2 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9601
SELECT DISTINCT - 88 DIV SUM( - 47 ) - ( + 87 ) AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - 88 / SUM ( - 47 ) - ( + 87 ) AS col1 FROM tab0 AS cor0
----
-87

query II rowsort
SELECT + + col2 * 4 AS col2, + col1 FROM tab0 AS cor0
----
188
81
396
1
40
21

query II rowsort
SELECT - 62, - col1 - - col2 AS col1 FROM tab1 AS cor0
----
-62
21
-62
54
-62
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + 44 DIV - + col0 + col1 + 85 + - ( col2 ) + - - col0 AS col2 FROM tab2 AS cor0
----
159
169
186

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 44 / - + col0 + col1 + 85 + - ( col2 ) + - - col0 AS col2 FROM tab2 AS cor0
----
159
169
186

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 81 * + 25 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT DISTINCT 13 DIV - col2 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT 13 / - col2 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col0, - 45 col1 FROM tab1
----
4896
-45
5015
-45
6188
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT + 32 * + col1 DIV - col1 AS col2 FROM tab1
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9608
SELECT + 32 * + col1 / - col1 AS col2 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT ALL + - ( + col2 ) + + - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT + ( + 9 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT + ( - ( - ( + - 42 ) ) ) FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + col0 * col0 + + 1 + col0 FROM tab1 AS cor0
----
2653
7311
8373

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab1
----
77

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9616
SELECT ALL + 79, - col2 * 53 * ( - + col0 ) DIV + 28 AS col1 FROM tab0 AS cor0
----
79
1334
79
1646
79
18177

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL + 79, - col2 * 53 * ( - + col0 ) / + 28 AS col1 FROM tab0 AS cor0
----
79
1334
79
1646
79
18177

query I rowsort
SELECT - 20 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-20
-20
-20

query II rowsort
SELECT + + col1 AS col2, 54 * + col1 * + + 93 - 19 FROM tab0 AS cor0
----
1
5003
21
105443
81
406763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col2 FROM tab0 AS cor0
----
94

query III rowsort
SELECT * FROM tab2 WHERE + - 70 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 2 * col1 - - + col0 AS col1 FROM tab0
----
129
177
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT 91 - + - COUNT( * ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9622
SELECT 91 - + - COUNT ( * ) AS col1 FROM tab2
----
94

query I rowsort
SELECT 29 + col2 + - - 93 FROM tab2
----
145
162
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + ( - + ( + - col0 ) ) BETWEEN + ( + 11 ) AND - ( + - 12 ) + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + ( - + ( + - col0 ) ) BETWEEN + ( + 11 ) AND - ( + - 12 ) + + col1
----
NULL

query I rowsort
SELECT col1 * - 36 + + + 42 AS col1 FROM tab2
----
-1794
-2370
-2730

query I rowsort
SELECT ALL col2 * + + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT - COUNT( * ) + + + COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-9627
SELECT - COUNT ( * ) + + + COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + col0 + - 88 AS col1 FROM tab2 AS cor0
----
-13
-24
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9629
SELECT ALL ( - COUNT( col0 ) ) AS col0, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-9629
SELECT ALL ( - COUNT ( col0 ) ) AS col0, COUNT ( * ) FROM tab2
----
-3
3

query I rowsort
SELECT ALL + ( - 13 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9631
SELECT - MAX( ALL + + CAST( col0 AS SIGNED ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9631
SELECT - MAX ( ALL + + CAST ( col0 AS INTEGER ) ) FROM tab0
----
-97

query I rowsort
SELECT ALL - 49 * 29 AS col2 FROM tab0 AS cor0
----
-1421
-1421
-1421

query II rowsort
SELECT - 24 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-24
-51
-24
-67
-24
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
-59

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - ( - - col1 ) + - + 52 + - col1 / - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + 26 col2, - col0 * - + col2 + - col1 FROM tab2
----
1326
1007
1742
4283
2002
2483

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL MAX( ALL - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL MAX ( ALL - - col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL - COUNT( * ) * + 80 AS col0 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - COUNT ( * ) * + 80 AS col0 FROM tab1
----
-240

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( + col2 ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1 * + col2, col0 FROM tab0
----
210
87
3807
15
99
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + + col2 + + - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT DISTINCT col2 * + col2 * - col2 DIV - col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT col2 * + col2 * - col2 / - col2 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT DISTINCT col1 DIV + 20 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT col1 / + 20 FROM tab2
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL COUNT( * ) * 95 + COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL COUNT ( * ) * 95 + COUNT ( * ) FROM tab1
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 58 + col1 - - col0 * + 90 col2 FROM tab0 AS cor0
----
2805
3105
561

query I rowsort
SELECT - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - 15 * + + 48 AS col0 FROM tab2
----
-720
-720
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL ( + COUNT( * ) ) * 99 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL ( + COUNT ( * ) ) * 99 FROM tab1
----
297

query II rowsort
SELECT DISTINCT + col0 * - col1, - col0 * + 2 AS col2 FROM tab1
----
-425
-170
-4277
-182
-714
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT + col0 DIV + ( - col2 ) FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + col0 / + ( - col2 ) FROM tab0 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + 7 + COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9652
SELECT + 7 + COUNT ( * ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + 3 + - ( - col1 ) * - 22 + - col2 AS col0 FROM tab1 cor0
----
3315
3525
8815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9654
SELECT ALL + + COUNT( * ) DIV + 14 AS col2 FROM tab1 WHERE NOT ( ( + + col1 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + + COUNT ( * ) / + 14 AS col2 FROM tab1 WHERE NOT ( ( + + col1 ) IS NULL )
----
0

query I rowsort
SELECT + 11 FROM tab2 WHERE + + 75 < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT + col1 * + col2 DIV - + col2 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9656
SELECT + col1 * + col2 / - + col2 AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT + COUNT( * ) + + + 96 + - COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + COUNT ( * ) + + + 96 + - COUNT ( * ) FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT ALL + MAX( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE ( - 45 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL + COUNT( * ) FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + COUNT ( * ) FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> + col2 - - col1
----

query I rowsort
SELECT + 44 * + 34 FROM tab2 AS cor0
----
1496
1496
1496

query I rowsort
SELECT col2 + + 75 AS col2 FROM tab0
----
122
174
85

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT ( col2 + + 3 * col0 ) <> - col1 * + col0
----

query I rowsort
SELECT col2 + + 89 FROM tab1
----
148
157
185

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 95 ) IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - col2 + - col1 * - 24 NOT BETWEEN + ( col0 ) / 26 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 36 <= ( 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + COUNT( * ) * COUNT( * ) + - MIN( + col1 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9669
SELECT + COUNT ( * ) * COUNT ( * ) + - MIN ( + col1 ) FROM tab2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT CAST( NULL AS SIGNED ) + + col0 / 76 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT CAST ( NULL AS INTEGER ) + + col0 / 76 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + COUNT( * ) * 76 + COUNT( * ) * 46 AS col2 FROM tab1
----
366

skipif mysql # not compatible
query I rowsort label-9671
SELECT + COUNT ( * ) * 76 + COUNT ( * ) * 46 AS col2 FROM tab1
----
366

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE col0 IN ( 16 * + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col0 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 26 / + col1 AS col1 FROM tab2 WHERE NOT - col2 NOT IN ( ( - 4 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 73 ) IN ( 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - ( col2 ) AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT COUNT( * ) * + 30 + + MIN( ALL ( col1 ) ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9678
SELECT COUNT ( * ) * + 30 + + MIN ( ALL ( col1 ) ) AS col0 FROM tab0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) BETWEEN ( col0 ) AND + 60 + col0 * + col1
----
46
51
23
64
77
40

query I rowsort
SELECT 59 * col1 + + ( - col0 ) AS col2 FROM tab2
----
2963
3878
4479

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + SUM( col0 ) FROM tab1 WHERE NOT ( 80 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT + SUM ( col0 ) FROM tab1 WHERE NOT ( 80 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( col2 + 72 ) IN ( + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT COUNT( ALL + ( + 25 ) ) * AVG ( + ( - 52 ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT COUNT ( ALL + ( + 25 ) ) * AVG ( + ( - 52 ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - 6 ) + + col2 < col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT 23 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT 23 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 + + col0 AS col0 FROM tab2
----
-1
-12
-30

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) <> ( ( + 77 ) * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col0 NOT BETWEEN ( 60 * col0 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( 11 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( + 93 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - 60 + COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 60 + COUNT ( * ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 <= - col1 + - col2
----

query I rowsort
SELECT DISTINCT + 7 FROM tab1 AS cor0 WHERE 70 * 26 BETWEEN ( col2 ) AND 58 * col0
----
7

query I rowsort
SELECT - 41 * + col0 + + col1 * col1 AS col1 FROM tab0 cor0
----
-3126
-3976
5946

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 < col1
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 < col1
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col2 ) < col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT col1 / - 55 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT col1 / - 55 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 65 AS col0 FROM tab1 AS cor0
----
-124
-133
-161

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE 19 >= + 17
----
117
125
74

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( - 92 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE ( - col1 * + 27 ) NOT IN ( col2 / - 34 + - col1 * - col1 )
----
-51
-85
-91

query I rowsort
SELECT - 11 FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query III rowsort
SELECT * FROM tab1 WHERE - ( 80 ) IS NULL
----

query I rowsort
SELECT - ( col1 ) * col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT + COUNT( - CAST( 52 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( - CAST ( 52 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT MIN( ALL + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9707
SELECT MIN ( ALL + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT ALL - col1 DIV + ( + col2 ) + col2 * + col0 AS col2 FROM tab2 AS cor0
----
1056
2559
4349

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - col1 / + ( + col2 ) + col2 * + col0 AS col2 FROM tab2 AS cor0
----
1056
2559
4349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) * + 2 col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL - ( + 70 ) AS col0 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9712
SELECT * FROM tab1 AS cor0 WHERE col0 * + CAST( 71 * + col0 AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9712
SELECT * FROM tab1 AS cor0 WHERE col0 * + CAST ( 71 * + col0 AS INTEGER ) < ( NULL )
----

query I rowsort
SELECT - + 75 - col2 FROM tab1 AS cor0
----
-134
-143
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - COUNT( * ) - SUM( 77 ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9714
SELECT - COUNT ( * ) - SUM ( 77 ) FROM tab0 AS cor0
----
-234

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * 30 BETWEEN ( - col1 ) AND + 48 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT ALL col2 DIV col0 + - col1 AS col0 FROM tab0 AS cor0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL col2 / col0 + - col1 AS col0 FROM tab0 AS cor0
----
-21
-78
0

query I rowsort
SELECT col1 * + col0 AS col0 FROM tab0 cor0 WHERE ( col2 ) <= col1 * 50 - 10
----
1215
1827

query I rowsort
SELECT col1 - - 18 AS col0 FROM tab1
----
23
32
65

query I rowsort
SELECT ALL + col1 - - + col0 - + col2 AS col0 FROM tab2
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT SUM( ALL col0 ) * + COUNT( * ) AS col1 FROM tab2 WHERE ( 90 * - col2 ) IS NOT NULL
----
555

skipif mysql # not compatible
query I rowsort label-9720
SELECT SUM ( ALL col0 ) * + COUNT ( * ) AS col1 FROM tab2 WHERE ( 90 * - col2 ) IS NOT NULL
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT 51 - - ( COUNT( * ) ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT 51 - - ( COUNT ( * ) ) AS col2 FROM tab1
----
54

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( 42 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 30 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT ( 83 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT + col0 DIV col0 + + col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-9725
SELECT + col0 / col0 + + col0 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + - SUM( - + col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9726
SELECT + - SUM ( - + col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT + ( - - 79 ) AS col2 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + - col1 * + 5 + col2 FROM tab2 AS cor0
----
-232
-277
-345

query I rowsort
SELECT - col2 + + 38 * col1 FROM tab2 AS cor0 WHERE NOT col2 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9730
SELECT DISTINCT * FROM tab2 WHERE CAST( + col0 AS SIGNED ) + - col1 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-9730
SELECT DISTINCT * FROM tab2 WHERE CAST ( + col0 AS INTEGER ) + - col1 BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT DISTINCT 20 / 64 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - CAST( NULL AS SIGNED ) * 72 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9731
SELECT DISTINCT 20 / 64 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - CAST ( NULL AS INTEGER ) * 72 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL MIN( ALL + 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL MIN ( ALL + 8 ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + - MIN( 15 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9734
SELECT + - MIN ( 15 ) FROM tab2 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 + 64 + 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 89 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
-89
10
-89
47
-89
99

query I rowsort
SELECT 85 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( col1 )
----
0

query I rowsort
SELECT DISTINCT + ( - col2 ) + 0 AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT - 25 * col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > NULL AND NOT NULL >= ( + col0 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 89 )
----

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab1 WHERE NOT - col2 * - 17 - col1 * col1 BETWEEN ( NULL ) AND col0
----
-425
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT - col0 + + - 97 DIV 7 + 88 FROM tab2
----
0
11
29

skipif mysql # not compatible
query I rowsort label-9744
SELECT - col0 + + - 97 / 7 + 88 FROM tab2
----
0
11
29

query I rowsort
SELECT ALL + col1 + col0 + col1 * - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1279
-205
-3058

query I rowsort
SELECT 28 + + - col1 FROM tab1
----
-19
14
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT - COUNT( * ) + + - 20 AS col1, - 87 FROM tab1
----
-23
-87

skipif mysql # not compatible
query II rowsort label-9747
SELECT - COUNT ( * ) + + - 20 AS col1, - 87 FROM tab1
----
-23
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL + SUM( DISTINCT 51 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + SUM ( DISTINCT 51 ) AS col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT - CAST( + AVG ( ALL + col2 ) AS SIGNED ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT - CAST ( + AVG ( ALL + col2 ) AS INTEGER ) FROM tab2
----
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col0 <> NULL
----

query I rowsort
SELECT ALL 8 + + col0 - + + col1 FROM tab2 cor0
----
-5
16
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) >= 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = + 72
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 - - col2 col0 FROM tab2
----
32
49
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, col0 col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT 85 * + 81 + col0 * + ( + col0 ) DIV + 1 FROM tab2
----
10981
12510
9001

skipif mysql # not compatible
query I rowsort label-9757
SELECT 85 * + 81 + col0 * + ( + col0 ) / + 1 FROM tab2
----
10981
12510
9001

query I rowsort
SELECT - 76 + - 77 + + col2 * + + col0 AS col2 FROM tab2
----
2407
4197
905

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9760
SELECT * FROM tab0 AS cor0 WHERE col0 + - CAST( - - col2 AS SIGNED ) BETWEEN ( - + 79 * col1 ) AND - col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-9760
SELECT * FROM tab0 AS cor0 WHERE col0 + - CAST ( - - col2 AS INTEGER ) BETWEEN ( - + 79 * col1 ) AND - col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT DISTINCT CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) + - col1 col0 FROM tab0 cor0
----
-108
-96
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9761
SELECT DISTINCT CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) + - col1 col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL MAX( - 37 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL MAX ( - 37 ) FROM tab0 AS cor0
----
-37

query I rowsort
SELECT ALL - 37 + - + col0 FROM tab2 AS cor0
----
-101
-112
-83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - col0
----

query II rowsort
SELECT DISTINCT + + 88 * 1 * - - col0 AS col0, - col1 FROM tab0 AS cor0
----
1320
-81
7656
-21
8536
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT ALL - col2 + + 76 DIV - - col2 FROM tab2 AS cor0
----
-20
-39
-57

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - col2 + + 76 / - - col2 FROM tab2 AS cor0
----
-20
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT 40 + - 7 + + 10 * COUNT( * ) - MAX( + 71 ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT 40 + - 7 + + 10 * COUNT ( * ) - MAX ( + 71 ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9769
SELECT DISTINCT - COUNT( * ) col1, + CAST( NULL AS SIGNED ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9769
SELECT DISTINCT - COUNT ( * ) col1, + CAST ( NULL AS INTEGER ) + + 6 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
0
NULL

query II rowsort
SELECT ALL + col1 AS col2, + 34 FROM tab2
----
51
34
67
34
77
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT + COUNT( + CAST( + - col2 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9772
SELECT + COUNT ( + CAST ( + - col2 AS INTEGER ) ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NULL IN ( - col2 + + 56 + + - col1 - - col2 * - col1 )
----

query I rowsort
SELECT ALL + ( - 3 ) * col1 - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
10
154
2068

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 NOT BETWEEN + + 47 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL - MIN( + col2 ) + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - MIN ( + col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 > - col2 + - col2 * + col0 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 > - col2 + - col2 * + col0 * - col2
----
3

query I rowsort
SELECT - col0 * - 14 FROM tab0
----
1218
1358
210

query I rowsort
SELECT + col1 * 94 FROM tab0
----
1974
7614
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 15 AS col2, - col1 col2 FROM tab1
----
15
-14
15
-47
15
-5

query I rowsort
SELECT ALL + col2 + + + col1 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL - 5 AS col2 FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT - + SUM( + + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - + SUM ( + + col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * 80 + col1 <= - + 54 / col2 * - col2 + + + col1
----

query I rowsort
SELECT + ( + 2 ) + col0 + - col1 + + 61 + - + col1 * + + col2 AS col2 FROM tab0 AS cor0
----
-3810
-81
60

query I rowsort
SELECT col2 * col0 + col1 + - col0 * + 93 + - 32 FROM tab2 AS cor0
----
-2590
-3201
-3347

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT col0 DIV + ( col0 ) + + 14 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT col0 / + ( col0 ) + + 14 FROM tab1
----
15

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL MIN( ALL 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL MIN ( ALL 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

query I rowsort
SELECT ALL - 79 - + + col0 FROM tab1 AS cor0
----
-130
-164
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col0 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT - ( col2 ) - + col2 * - + col2 AS col1 FROM tab1 AS cor0
----
3422
4556
9120

query I rowsort
SELECT DISTINCT - 10 * 83 AS col2 FROM tab1 AS cor0
----
-830

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( - + 33 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT - 99 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9799
SELECT ALL - COUNT( - - col0 ) * + 93 DIV + ( COUNT( * ) ) AS col1, COUNT( * ) col0 FROM tab2
----
-93
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9799
SELECT ALL - COUNT ( - - col0 ) * + 93 / + ( COUNT ( * ) ) AS col1, COUNT ( * ) col0 FROM tab2
----
-93
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT - 6 col0, + COUNT( * ) FROM tab0
----
-6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9800
SELECT - 6 col0, + COUNT ( * ) FROM tab0
----
-6
3

query I rowsort
SELECT ALL + 13 * + col2 AS col2 FROM tab2
----
299
520
754

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT ALL + col0 * - col0 DIV + col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + col0 * - col0 / + col0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 0 * col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT + 68 DIV - 3 col0 FROM tab2 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9804
SELECT + 68 / - 3 col0 FROM tab2 AS cor0
----
-22
-22
-22

query II rowsort
SELECT ALL + - col1 AS col1, 47 + col0 AS col0 FROM tab2 AS cor0
----
-51
93
-67
122
-77
111

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT + + col2 * + col2 + + col1 BETWEEN - 88 + + ( col1 ) AND + col1 + - + 71
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9807
SELECT * FROM tab0 AS cor0 WHERE CAST( 84 AS SIGNED ) IN ( 54 )
----

skipif mysql # not compatible
query III rowsort label-9807
SELECT * FROM tab0 AS cor0 WHERE CAST ( 84 AS INTEGER ) IN ( 54 )
----

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE col1 * + col0 - - + col0 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - ( - + col0 ) + col1 * 70 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3662
4840
5518

query I rowsort
SELECT + col2 * + col1 + - ( + 51 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
1122
3029
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - 48 * COUNT( * ) * - ( + 23 ) + 55 AS col1 FROM tab1
----
3367

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 48 * COUNT ( * ) * - ( + 23 ) + 55 AS col1 FROM tab1
----
3367

query II rowsort
SELECT ALL - 7 * 5 AS col0, - 64 - col1 FROM tab0
----
-35
-145
-35
-65
-35
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT col0 DIV + 6 + - + col0 * + - col0 AS col0 FROM tab1
----
2609
7239
8296

skipif mysql # not compatible
query I rowsort label-9814
SELECT col0 / + 6 + - + col0 * + - col0 AS col0 FROM tab1
----
2609
7239
8296

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT ( + col2 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - + 71 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 72 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL + + SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + + SUM ( col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9819
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - ( + col0 ), col0 + - CAST( + col1 AS SIGNED ) * + - 90 / - 83, + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9819
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - ( + col0 ), col0 + - CAST ( + col1 AS INTEGER ) * + - 90 / - 83, + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9821
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 / - CAST( + 76 AS SIGNED ) BETWEEN ( + - col1 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-9821
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 / - CAST ( + 76 AS INTEGER ) BETWEEN ( + - col1 ) AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 36 < + col0 + + 71 - - col1
----

query II rowsort
SELECT ALL - - col1 AS col1, - 47 AS col0 FROM tab2 AS cor0
----
51
-47
67
-47
77
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + MAX( + - 55 ) AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9824
SELECT + MAX ( + - 55 ) AS col1 FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT - COUNT( ALL + CAST( + - col2 AS SIGNED ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9825
SELECT - COUNT ( ALL + CAST ( + - col2 AS INTEGER ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9826
SELECT COUNT( * ) DIV - 21 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9826
SELECT COUNT ( * ) / - 21 col1 FROM tab2
----
0

query I rowsort
SELECT 90 * + col2 AS col0 FROM tab1
----
5310
6120
8640

query I rowsort
SELECT DISTINCT + 47 * 78 * ( - col0 ) AS col0 FROM tab0
----
-318942
-355602
-54990

query I rowsort
SELECT ALL - 93 * col2 FROM tab2 cor0
----
-2139
-3720
-5394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - COUNT( DISTINCT + 16 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9831
SELECT - COUNT ( DISTINCT + 16 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9832
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + + col0 AS SIGNED ) > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9832
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + + col0 AS INTEGER ) > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT - ( - CAST( NULL AS SIGNED ) ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 63 + 56 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d2a0ef1182e6bf2495fa932b2816ad80

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT ALL col1 + + - col2 DIV - - col2 AS col2 FROM tab2 cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL col1 + + - col2 / - - col2 AS col2 FROM tab2 cor0
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT - COUNT( * ) * + 91 + + + ( 5 ) AS col2 FROM tab1 AS cor0
----
-268

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - COUNT ( * ) * + 91 + + + ( 5 ) AS col2 FROM tab1 AS cor0
----
-268

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT - COUNT( * ) AS col0, MIN( + - col1 ) FROM tab2 AS cor0
----
-3
-77

skipif mysql # not compatible
query II rowsort label-9838
SELECT - COUNT ( * ) AS col0, MIN ( + - col1 ) FROM tab2 AS cor0
----
-3
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT COUNT( * ) * + + 67 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-9840
SELECT COUNT ( * ) * + + 67 FROM tab0
----
201

query I rowsort
SELECT + col0 FROM tab2 WHERE - col1 > 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT 63 - - - CAST( + + col1 AS SIGNED ) FROM tab0
----
-18
42
62

skipif mysql # not compatible
query I rowsort label-9842
SELECT 63 - - - CAST ( + + col1 AS INTEGER ) FROM tab0
----
-18
42
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT ALL + col0 + + + ( CAST( 7 AS SIGNED ) ) * - col1 AS col2 FROM tab1
----
-238
-47
50

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + col0 + + + ( CAST ( 7 AS INTEGER ) ) * - col1 AS col2 FROM tab1
----
-238
-47
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + - 53 + col1 NOT BETWEEN + col0 / - - col1 * 1 + + - ( + - 62 ) / + col0 + + col0 AND NULL AND + col0 <> ( + col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 3 + col2 * col1 * + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
123203
225391
26982

query I rowsort
SELECT + 96 AS col0 FROM tab0 WHERE + col1 <> + col2
----
96
96
96

query I rowsort
SELECT ALL 44 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query II rowsort
SELECT DISTINCT + 9 - + + col1 + - 34 * - col1 * - col2 AS col2, + col1 AS col1 FROM tab2
----
-104788
77
-132182
67
-39924
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - COUNT( * ) + 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-9850
SELECT - COUNT ( * ) + 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9851
SELECT CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + + col0 * - col1 * - - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT - - 71 AS col2 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + ( - + 48 ) * + - col2 AS col1 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT ALL col1 * col1 * + 24 * - col1 * col0 FROM tab0
----
-191318760
-19336968
-2328

query I rowsort
SELECT DISTINCT - 86 * col0 AS col2 FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT DISTINCT col1 * + 16 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT + COUNT( * ) * - MIN( DISTINCT + 90 ) AS col1, - 2 AS col1 FROM tab2
----
-270
-2

skipif mysql # not compatible
query II rowsort label-9858
SELECT + COUNT ( * ) * - MIN ( DISTINCT + 90 ) AS col1, - 2 AS col1 FROM tab2
----
-270
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT col1 DIV col2 DIV col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT col1 / col2 / col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + - 88 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 47 AS col1 FROM tab2 AS cor0
----
-47
-47
-47

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 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 83 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9865
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT ALL - 14 DIV 40 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - 14 / 40 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 * + col0 / + col0 = - col2 - ( - - col0 ) + col1 / - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + ( col2 ) AS col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query III rowsort label-9869
SELECT + - col2 * - col1 + col1 DIV - - col0 AS col0, + 76 AS col2, + col0 AS col2 FROM tab2 cor0
----
9 values hashing to 200fca005a4988ca43f784480b22fc68

skipif mysql # not compatible
query III rowsort label-9869
SELECT + - col2 * - col1 + col1 / - - col0 AS col0, + 76 AS col2, + col0 AS col2 FROM tab2 cor0
----
9 values hashing to 200fca005a4988ca43f784480b22fc68

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( NULL ) = - col1 + - 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT ALL 69 - - + col1 DIV - - ( - - col0 ) FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL 69 - - + col1 / - - ( - - col0 ) FROM tab1 AS cor0
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT DISTINCT 96 / - + 59 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT 96 / - + 59 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT MAX( ALL col0 ) * 43 FROM tab1
----
3913

skipif mysql # not compatible
query I rowsort label-9873
SELECT MAX ( ALL col0 ) * 43 FROM tab1
----
3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 3 col0 FROM tab1
----
48
82
88

query I rowsort
SELECT col1 * + + 79 FROM tab2
----
4029
5293
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + col2 col2 FROM tab0
----
198
20
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IS NOT NULL AND NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - - MIN( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - - MIN ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + 15 - - COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 15 - - COUNT ( * ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT DISTINCT 2 DIV 38 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT 2 / 38 FROM tab0
----
0

query I rowsort
SELECT + - 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT COUNT( ALL + 95 ) * + + COUNT( col0 ) AS col1, - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-9884
SELECT COUNT ( ALL + 95 ) * + + COUNT ( col0 ) AS col1, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT SUM( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT SUM ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + 91 * 29 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 BETWEEN ( NULL ) AND + ( col0 )
----
2639

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 + + col2 <= - + 29 * - - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col0 ) * 9 AS col1 FROM tab2 AS cor0
----
-414
-576
-675

query II rowsort
SELECT ALL - 59 AS col0, + col2 FROM tab1 AS cor0
----
-59
59
-59
68
-59
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 + + col2 * col0 + + col0 + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT SUM( ALL col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9891
SELECT SUM ( ALL col1 ) FROM tab1 cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9892
SELECT - 22 DIV - 48 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9892
SELECT - 22 / - 48 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT IN ( - col2, - col2 * - CAST( NULL AS SIGNED ), col2 * + 30 )
----

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT IN ( - col2, - col2 * - CAST ( NULL AS INTEGER ), col2 * + 30 )
----

query I rowsort
SELECT DISTINCT + ( + - 46 ) AS col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT COUNT( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - 66 ) IN ( + + col1 * - + 7 * col1 - ( - col1 ) - 12 * + - col1, + col0, - col1, 8 + - + 59 * - col2 * 13 * - col0 )
----

query II rowsort
SELECT - col0 + + col0, col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT - 25 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-25

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 58 + col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT COUNT( - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9900
SELECT COUNT ( - col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ( - 36 ) FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT - col2 * + 25 AS col2 FROM tab2 AS cor0
----
-1000
-1450
-575

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - 1 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - 51 + + COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - 51 + + COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ( - - 86 ) - + 79 FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE - - col2 + - col0 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL + COUNT( * ) * COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
12

query III rowsort
SELECT * FROM tab1 WHERE + + 64 * - ( - col1 ) IS NULL
----

query I rowsort
SELECT - 0 + + col2 * - col1 * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + - col0 * + 24 BETWEEN + + col1 AND + 73
----
3

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + - col0 * + 24 BETWEEN + + col1 AND + 73
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + 12 * + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + 12 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9912
SELECT DISTINCT ( - MAX( ALL + - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT ( - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL - + CAST( NULL AS SIGNED ) * 80 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - + CAST ( NULL AS INTEGER ) * 80 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 * - + ( + col0 ) FROM tab0 cor0
----
-1140
-6612
-7372

query II rowsort
SELECT ALL - col1 AS col2, - 72 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT col1 * - 69 IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT DISTINCT + 47 DIV + COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT + 47 / + COUNT ( * ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT - 7 * - COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - 7 * - COUNT ( * ) FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT + COUNT( - 43 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT + COUNT ( - 43 ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + + 19 BETWEEN 59 + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 20 + - + col1 FROM tab1
----
-27
15
6

query I rowsort
SELECT ( - col2 ) * col0 * + col1 + - + 40 + + 4 FROM tab2
----
-197156
-291486
-53994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9926
SELECT ALL - MIN( + 55 ) AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-9926
SELECT ALL - MIN ( + 55 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL + MAX( 43 ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + MAX ( 43 ) AS col2 FROM tab0
----
43

query I rowsort
SELECT + + 75 * + + col0 + + 34 * + + 6 + - col0 AS col2 FROM tab2 WHERE NOT 20 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT - 3 + - + COUNT( col1 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT - 3 + - + COUNT ( col1 ) FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT - + 2 DIV col1 + - col2 * + col0 - col0 col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9930
SELECT - + 2 / col1 + - col2 * + col0 - col0 col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query II rowsort
SELECT 97 AS col2, - col0 FROM tab0 AS cor0
----
97
-15
97
-87
97
-97

query I rowsort
SELECT ALL - col0 + + col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT COUNT( * ) + 54 FROM tab2, tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT COUNT ( * ) + 54 FROM tab2, tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT + COUNT( * ) * - + ( + 93 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-837

skipif mysql # not compatible
query I rowsort label-9934
SELECT + COUNT ( * ) * - + ( + 93 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + ( + col2 ) * + col1 col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT + COUNT( * ) AS col0, 35 * + 26 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9
910

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9936
SELECT + COUNT ( * ) AS col0, 35 * + 26 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9
910

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 50 NOT IN ( + col2 + + 60 )
----
3

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 50 NOT IN ( + col2 + + 60 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT ALL - - 71 DIV + col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - - 71 / + col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 46 + - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 46 + - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 87 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col1 NOT BETWEEN NULL AND + + ( col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT - + 27 * COUNT( * ) * - 87 FROM tab1 AS cor0
----
7047

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT - + 27 * COUNT ( * ) * - 87 FROM tab1 AS cor0
----
7047

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + 95 AS col0 FROM tab0 cor0
----
14
74
94

query I rowsort
SELECT ALL + col2 - 78 FROM tab2 AS cor0
----
-20
-38
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col1, col1 col1 FROM tab1
----
51
14
51
47
51
5

query II rowsort
SELECT - col1 AS col2, + col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + SUM( + 92 ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-9949
SELECT + SUM ( + 92 ) FROM tab2
----
276

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - + 20 + + - col0 + - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT MIN( - col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9951
SELECT DISTINCT MIN ( - col0 ) col1 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT DISTINCT col1, ( + col0 ) + 47 * - col0 * - - 81 - + 65 AS col0 FROM tab1 AS cor0
----
14
-194171
47
-346411
5
-323575

query II rowsort
SELECT DISTINCT col0 - - - col2, - col1 + - - col1 AS col0 FROM tab2 AS cor0 WHERE - 48 / + - col1 < ( + col2 )
----
17
0
23
0
24
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9954
SELECT DISTINCT + 29 DIV - 55 + ( 26 ), - col1 AS col2 FROM tab2 cor0
----
26
-51
26
-67
26
-77

skipif mysql # not compatible
query II rowsort label-9954
SELECT DISTINCT + 29 / - 55 + ( 26 ), - col1 AS col2 FROM tab2 cor0
----
26
-51
26
-67
26
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT DISTINCT + col0 + - + col2 - + 83 * col2 + + col0 DIV col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-126
-539
-8023

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + col0 + - + col2 - + 83 * col2 + + col0 / col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-126
-539
-8023

query I rowsort
SELECT DISTINCT - + 9 AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9957
SELECT - col0 * CAST( col2 AS SIGNED ) DIV + col0 - + - col2 col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9957
SELECT - col0 * CAST ( col2 AS INTEGER ) / + col0 - + - col2 col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
0
0

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE NOT - col2 IS NULL
----
46
64
75

query II rowsort
SELECT + 80, 99 + - + col0 AS col0 FROM tab1
----
80
14
80
48
80
8

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE - + col1 + - - ( - 53 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + 69 * - 79 FROM tab0
----
-5451
-5451
-5451

query I rowsort
SELECT - col2 * + col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT - MAX( DISTINCT + + col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9964
SELECT DISTINCT - MAX ( DISTINCT + + col2 ) col0 FROM tab2
----
-58

query I rowsort
SELECT + - col0 + + - 70 AS col2 FROM tab2 AS cor0
----
-116
-134
-145

query I rowsort
SELECT col2 * - col2 + - - 94 + + - 43 FROM tab2 AS cor0
----
-1549
-3313
-478

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT ALL - - 38 DIV - col0 * 40 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - - 38 / - col0 * 40 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + - 24 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + - 24 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 97 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col0 * - col1 + col2 + - col1 FROM tab0 AS cor0 WHERE NULL <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT DISTINCT 15 - + col0 + + 47 DIV col1 - + col0 col1 FROM tab2
----
-113
-135
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9972
SELECT DISTINCT 15 - + col0 + + 47 / col1 - + col0 col1 FROM tab2
----
-113
-135
-77

query I rowsort
SELECT DISTINCT + 70 + + - col0 * + col0 FROM tab2
----
-2046
-4026
-5555

query I rowsort
SELECT ALL - 46 * + 57 FROM tab0
----
-2622
-2622
-2622

query I rowsort
SELECT - - 56 + - + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9976
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) + MIN( DISTINCT + - 26 ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) + MIN ( DISTINCT + - 26 ) AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE 5 <= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT + col2 - + - col1 + col0 + - col1 + - col0 * col0 + col2 DIV - + col1 FROM tab1 AS cor0
----
-2460
-7092
-8123

skipif mysql # not compatible
query I rowsort label-9979
SELECT + col2 - + - col1 + col0 + - col1 + - col0 * col0 + col2 / - + col1 FROM tab1 AS cor0
----
-2460
-7092
-8123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT ALL - 77 + - CAST( NULL AS SIGNED ) * col1 * + - col1 + + + 1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - 77 + - CAST ( NULL AS INTEGER ) * col1 * + - col1 + + + 1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + col2 * col1 + 47 <> - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, + 96 + col1 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 BETWEEN 86 AND - - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT MIN( DISTINCT 80 ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT MIN ( DISTINCT 80 ) AS col2 FROM tab1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 50 col2 FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT ALL - col1 * + 16 FROM tab0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT - + 36 * - COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9987
SELECT - + 36 * - COUNT ( * ) FROM tab2 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) * - + 26 + + col0 AS col0 FROM tab2
----
1372
1817
2066

query I rowsort
SELECT ALL 7 * + 65 AS col2 FROM tab1
----
455
455
455

query I rowsort
SELECT ALL + + col2 * + 15 FROM tab1 AS cor0
----
1020
1440
885

query I rowsort
SELECT ALL + ( + 27 ) + + col2 + - - 2 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9993
SELECT - CAST( NULL AS DECIMAL ) * - - 70 * - + 28, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-9993
SELECT - CAST ( NULL AS REAL ) * - - 70 * - + 28, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT + col2 DIV + col2 + col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + col2 / + col2 + col2 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL + 22 + CAST( - COUNT( * ) AS SIGNED ) + + 13 * + 76 FROM tab2 AS cor0
----
1007

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + 22 + CAST ( - COUNT ( * ) AS INTEGER ) + + 13 * + 76 FROM tab2 AS cor0
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + SUM( - 77 ) AS col0 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9996
SELECT + SUM ( - 77 ) AS col0 FROM tab1 AS cor0
----
-231

query I rowsort
SELECT ALL + - col0 + - - col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT - col2 * + 53 AS col0 FROM tab0 cor0
----
-2491
-5247
-530

query I rowsort
SELECT 3 * - 80 + - + col2 AS col2 FROM tab0
----
-250
-287
-339

